diff options
author | Robert Luberda <robert@debian.org> | 2019-10-09 21:48:00 +0200 |
---|---|---|
committer | Robert Luberda <robert@debian.org> | 2019-10-11 23:45:31 +0200 |
commit | 3cddd56e195b516f449bea6dcd3edd4494195631 (patch) | |
tree | 43d4759ae7f635c361ebc9262d26b7cdfd6cc529 /googletest/test | |
parent | ba513d2c9525a7c986c115ed5d603f2cf17c6016 (diff) | |
download | googletest-3cddd56e195b516f449bea6dcd3edd4494195631.tar.gz googletest-3cddd56e195b516f449bea6dcd3edd4494195631.tar.bz2 googletest-3cddd56e195b516f449bea6dcd3edd4494195631.zip |
Add more override keywords
Mark more functions with "override" keyword, just like
it was done in commit 2460f97152c.
This should prevent compiler from complaining while compiling both
user code, and the googletest code itself with the -Wsuggest-override
option turned on; with the exception of:
* calls to new MOCK_METHOD() in test/gmock-function-mocker_test.cc
* calls to old MOCK_METHODx()/MOCK_CONST_METHODx() in other
unit test files.
Closes #2493
Diffstat (limited to 'googletest/test')
-rw-r--r-- | googletest/test/gtest_unittest.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/googletest/test/gtest_unittest.cc b/googletest/test/gtest_unittest.cc index 8312bd10..d17a1554 100644 --- a/googletest/test/gtest_unittest.cc +++ b/googletest/test/gtest_unittest.cc @@ -6170,7 +6170,7 @@ TEST_F(ParseFlagsTest, WideStrings) { #if GTEST_USE_OWN_FLAGFILE_FLAG_ class FlagfileTest : public ParseFlagsTest { public: - virtual void SetUp() { + void SetUp() override { ParseFlagsTest::SetUp(); testdata_path_.Set(internal::FilePath( @@ -6180,7 +6180,7 @@ class FlagfileTest : public ParseFlagsTest { EXPECT_TRUE(testdata_path_.CreateFolder()); } - virtual void TearDown() { + void TearDown() override { testing::internal::posix::RmDir(testdata_path_.c_str()); ParseFlagsTest::TearDown(); } |