aboutsummaryrefslogtreecommitdiffstats
path: root/src/gtest-internal-inl.h
diff options
context:
space:
mode:
authorshiqian <shiqian@861a406c-534a-0410-8894-cb66d6ee9925>2008-08-06 21:44:19 +0000
committershiqian <shiqian@861a406c-534a-0410-8894-cb66d6ee9925>2008-08-06 21:44:19 +0000
commitd5f13d4a257b6bfc43068f3a918989cf89af75ec (patch)
treefae369ee214062805989e6506d40f297c85b22c9 /src/gtest-internal-inl.h
parent9b093c1779eb48a55db026cfd525f4cf1bbd4749 (diff)
downloadgoogletest-d5f13d4a257b6bfc43068f3a918989cf89af75ec.tar.gz
googletest-d5f13d4a257b6bfc43068f3a918989cf89af75ec.tar.bz2
googletest-d5f13d4a257b6bfc43068f3a918989cf89af75ec.zip
Changes test creation functions to factories. By Vlad Losev.
Diffstat (limited to 'src/gtest-internal-inl.h')
-rw-r--r--src/gtest-internal-inl.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/gtest-internal-inl.h b/src/gtest-internal-inl.h
index 5546a77a..77571918 100644
--- a/src/gtest-internal-inl.h
+++ b/src/gtest-internal-inl.h
@@ -542,7 +542,7 @@ class TestInfoImpl {
public:
TestInfoImpl(TestInfo* parent, const char* test_case_name,
const char* name, TypeId fixture_class_id,
- TestMaker maker);
+ internal::TestFactoryBase* factory);
~TestInfoImpl();
// Returns true if this test should run.
@@ -595,7 +595,8 @@ class TestInfoImpl {
const TypeId fixture_class_id_; // ID of the test fixture class
bool should_run_; // True iff this test should run
bool is_disabled_; // True iff this test is disabled
- const TestMaker maker_; // The function that creates the test object
+ internal::TestFactoryBase* const factory_; // The factory that creates
+ // the test object
// This field is mutable and needs to be reset before running the
// test for the second time.