summaryrefslogtreecommitdiff
path: root/src/gtest-internal-inl.h
diff options
context:
space:
mode:
authorzhanyong.wan <zhanyong.wan@861a406c-534a-0410-8894-cb66d6ee9925>2009-06-19 00:24:28 +0000
committerzhanyong.wan <zhanyong.wan@861a406c-534a-0410-8894-cb66d6ee9925>2009-06-19 00:24:28 +0000
commit4e7e2fcd7ac837bf81d8f120a9a30785d83b3897 (patch)
tree2f098d474cb2f1fc56bcd67a7ef31fe0886da3da /src/gtest-internal-inl.h
parent6d63ee6720540cadb8919037c5d41a6413cc9101 (diff)
downloadgtest-4e7e2fcd7ac837bf81d8f120a9a30785d83b3897.tar.gz
gtest-4e7e2fcd7ac837bf81d8f120a9a30785d83b3897.tar.bz2
gtest-4e7e2fcd7ac837bf81d8f120a9a30785d83b3897.tar.xz
Fixes broken gtest_unittest on Cygwin and cleans it up (by Vlad Losev); fixes the wrong usage of os.environ.clear() in gtest_output_test.py (by Vlad Losev); fixes the logic for detecting Symbian (by Zhanyong Wan); moves TestProperty for event listener (by Vlad Losev).
git-svn-id: http://googletest.googlecode.com/svn/trunk@269 861a406c-534a-0410-8894-cb66d6ee9925
Diffstat (limited to 'src/gtest-internal-inl.h')
-rw-r--r--src/gtest-internal-inl.h35
1 files changed, 0 insertions, 35 deletions
diff --git a/src/gtest-internal-inl.h b/src/gtest-internal-inl.h
index 26d1bd1..94c9d7e 100644
--- a/src/gtest-internal-inl.h
+++ b/src/gtest-internal-inl.h
@@ -450,41 +450,6 @@ static void Delete(T * x) {
delete x;
}
-// A copyable object representing a user specified test property which can be
-// output as a key/value string pair.
-//
-// Don't inherit from TestProperty as its destructor is not virtual.
-class TestProperty {
- public:
- // C'tor. TestProperty does NOT have a default constructor.
- // Always use this constructor (with parameters) to create a
- // TestProperty object.
- TestProperty(const char* key, const char* value) :
- key_(key), value_(value) {
- }
-
- // Gets the user supplied key.
- const char* key() const {
- return key_.c_str();
- }
-
- // Gets the user supplied value.
- const char* value() const {
- return value_.c_str();
- }
-
- // Sets a new value, overriding the one supplied in the constructor.
- void SetValue(const char* new_value) {
- value_ = new_value;
- }
-
- private:
- // The key supplied by the user.
- String key_;
- // The value supplied by the user.
- String value_;
-};
-
// A predicate that checks the key of a TestProperty against a known key.
//
// TestPropertyKeyIs is copyable.