Commit c205468b authored by Gennadiy Civil's avatar Gennadiy Civil
Browse files

Merge pull request #2338 from kuzkry:environment-documentation

PiperOrigin-RevId: 260559531
parents 05747d2e 2fa7be93
...@@ -1222,15 +1222,15 @@ First, you subclass the `::testing::Environment` class to define a test ...@@ -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: environment, which knows how to set-up and tear-down:
```c++ ```c++
class Environment { class Environment : public ::testing::Environment {
public: public:
virtual ~Environment() {} virtual ~Environment() {}
// Override this to define how to set up the 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. // Override this to define how to tear down the environment.
virtual void TearDown() {} void TearDown() override {}
}; };
``` ```
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment