summaryrefslogtreecommitdiffstats
path: root/googletest/test/gtest_unittest.cc
diff options
context:
space:
mode:
authorRobert Luberda <robert@debian.org>2019-10-09 19:48:00 (GMT)
committerRobert Luberda <robert@debian.org>2019-10-11 21:45:31 (GMT)
commit3cddd56e195b516f449bea6dcd3edd4494195631 (patch)
tree43d4759ae7f635c361ebc9262d26b7cdfd6cc529 /googletest/test/gtest_unittest.cc
parentba513d2c9525a7c986c115ed5d603f2cf17c6016 (diff)
downloadgoogletest-3cddd56e195b516f449bea6dcd3edd4494195631.zip
googletest-3cddd56e195b516f449bea6dcd3edd4494195631.tar.gz
googletest-3cddd56e195b516f449bea6dcd3edd4494195631.tar.bz2
Add more override keywordsrefs/pull/2507/head
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/gtest_unittest.cc')
-rw-r--r--googletest/test/gtest_unittest.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/googletest/test/gtest_unittest.cc b/googletest/test/gtest_unittest.cc
index 8312bd1..d17a155 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();
}