@@ -8458,7 +8458,7 @@ class TestFactoryBase {
8458
8458
template <class TestClass>
8459
8459
class TestFactoryImpl : public TestFactoryBase {
8460
8460
public:
8461
- virtual Test* CreateTest() { return new TestClass; }
8461
+ virtual Test* CreateTest() override { return new TestClass; }
8462
8462
};
8463
8463
8464
8464
#if GTEST_OS_WINDOWS
@@ -11927,7 +11927,7 @@ class ParameterizedTestFactory : public internal::TestFactoryBase {
11927
11927
typedef typename TestClass::ParamType ParamType;
11928
11928
explicit ParameterizedTestFactory(ParamType parameter) :
11929
11929
parameter_(parameter) {}
11930
- virtual Test* CreateTest() {
11930
+ virtual Test* CreateTest() override {
11931
11931
TestClass::SetParam(¶meter_);
11932
11932
return new TestClass();
11933
11933
}
@@ -11968,7 +11968,7 @@ class TestMetaFactory
11968
11968
11969
11969
TestMetaFactory() {}
11970
11970
11971
- virtual TestFactoryBase* CreateTestFactory(ParamType parameter) {
11971
+ virtual TestFactoryBase* CreateTestFactory(ParamType parameter) override {
11972
11972
return new ParameterizedTestFactory<TestCase>(parameter);
11973
11973
}
11974
11974
@@ -12030,9 +12030,9 @@ class ParameterizedTestCaseInfo : public ParameterizedTestCaseInfoBase {
12030
12030
: test_case_name_(name), code_location_(code_location) {}
12031
12031
12032
12032
// Test case base name for display purposes.
12033
- virtual const std::string& GetTestCaseName() const { return test_case_name_; }
12033
+ virtual const std::string& GetTestCaseName() const override { return test_case_name_; }
12034
12034
// Test case id to verify identity.
12035
- virtual TypeId GetTestCaseTypeId() const { return GetTypeId<TestCase>(); }
12035
+ virtual TypeId GetTestCaseTypeId() const override { return GetTypeId<TestCase>(); }
12036
12036
// TEST_P macro uses AddTestPattern() to record information
12037
12037
// about a single test in a LocalTestInfo structure.
12038
12038
// test_case_name is the base name of the test case (without invocation
@@ -12061,7 +12061,7 @@ class ParameterizedTestCaseInfo : public ParameterizedTestCaseInfoBase {
12061
12061
// This method should not be called more then once on any single
12062
12062
// instance of a ParameterizedTestCaseInfoBase derived class.
12063
12063
// UnitTest has a guard to prevent from calling this method more then once.
12064
- virtual void RegisterTests() {
12064
+ virtual void RegisterTests() override {
12065
12065
for (typename TestInfoContainer::iterator test_it = tests_.begin();
12066
12066
test_it != tests_.end(); ++test_it) {
12067
12067
linked_ptr<TestInfo> test_info = *test_it;
0 commit comments