diff options
author | kosak@google.com <kosak@google.com@861a406c-534a-0410-8894-cb66d6ee9925> | 2015-07-14 22:44:39 +0000 |
---|---|---|
committer | kosak@google.com <kosak@google.com@861a406c-534a-0410-8894-cb66d6ee9925> | 2015-07-14 22:44:39 +0000 |
commit | f3aba5a9f6b3e975740de5a117935243cb18671c (patch) | |
tree | c248402689dcf4ec01c363b362f96b0e67013ad2 /src | |
parent | eb80d05869807682f8f59b8f3251384a39adf16a (diff) | |
download | googletest-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.cc | 9 |
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. |