diff options
author | Gennadiy Civil <misterg@google.com> | 2019-07-29 20:43:23 (GMT) |
---|---|---|
committer | Gennadiy Civil <misterg@google.com> | 2019-07-29 20:43:23 (GMT) |
commit | c205468b65a5b6f3239c4e68af860f6c82895f9d (patch) | |
tree | 9c10212736ca901ee70630c57f8aa18af5b3b371 /googletest/docs/advanced.md | |
parent | 05747d2ee7d873338117c2fb98b3edb2df5572be (diff) | |
parent | 2fa7be93268d6c29e89717ee50e41cbc29589655 (diff) | |
download | googletest-c205468b65a5b6f3239c4e68af860f6c82895f9d.zip googletest-c205468b65a5b6f3239c4e68af860f6c82895f9d.tar.gz googletest-c205468b65a5b6f3239c4e68af860f6c82895f9d.tar.bz2 |
Merge pull request #2338 from kuzkry:environment-documentation
PiperOrigin-RevId: 260559531
Diffstat (limited to 'googletest/docs/advanced.md')
-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 {} }; ``` |