summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorkosak@google.com <kosak@google.com@861a406c-534a-0410-8894-cb66d6ee9925>2015-07-14 22:44:39 +0000
committerkosak@google.com <kosak@google.com@861a406c-534a-0410-8894-cb66d6ee9925>2015-07-14 22:44:39 +0000
commitf3aba5a9f6b3e975740de5a117935243cb18671c (patch)
treec248402689dcf4ec01c363b362f96b0e67013ad2 /src
parenteb80d05869807682f8f59b8f3251384a39adf16a (diff)
downloadgoogletest-f3aba5a9f6b3e975740de5a117935243cb18671c.tar.gz
Move the selection of the flag saver implementation into gtest-port.h and
custom/gtest-port.h. git-svn-id: http://googletest.googlecode.com/svn/trunk@723 861a406c-534a-0410-8894-cb66d6ee9925
Diffstat (limited to 'src')
-rw-r--r--src/gtest.cc9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/gtest.cc b/src/gtest.cc
index 6dea6c6..bb00879 100644
--- a/src/gtest.cc
+++ b/src/gtest.cc
@@ -2179,14 +2179,15 @@ int TestResult::test_property_count() const {
// Creates a Test object.
-// The c'tor saves the values of all Google Test flags.
+// The c'tor saves the states of all flags.
Test::Test()
- : gtest_flag_saver_(new internal::GTestFlagSaver) {
+ : gtest_flag_saver_(new GTEST_FLAG_SAVER_) {
}
-// The d'tor restores the values of all Google Test flags.
+// The d'tor restores the states of all flags. The actual work is
+// done by the d'tor of the gtest_flag_saver_ field, and thus not
+// visible here.
Test::~Test() {
- delete gtest_flag_saver_;
}
// Sets up the test fixture.