diff options
-rw-r--r-- | googletest/docs/advanced.md | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/googletest/docs/advanced.md b/googletest/docs/advanced.md index ac7e689..edf3c08 100644 --- a/googletest/docs/advanced.md +++ b/googletest/docs/advanced.md @@ -1222,15 +1222,15 @@ First, you subclass the `::testing::Environment` class to define a test environment, which knows how to set-up and tear-down: ```c++ -class Environment { +class Environment : public ::testing::Environment { public: virtual ~Environment() {} // Override this to define how to set up the environment. - virtual void SetUp() {} + void SetUp() override {} // Override this to define how to tear down the environment. - virtual void TearDown() {} + void TearDown() override {} }; ``` |