Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
yangql
googletest
Commits
c205468b
Commit
c205468b
authored
Jul 29, 2019
by
Gennadiy Civil
Browse files
Merge pull request #2338 from kuzkry:environment-documentation
PiperOrigin-RevId: 260559531
parents
05747d2e
2fa7be93
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
googletest/docs/advanced.md
googletest/docs/advanced.md
+3
-3
No files found.
googletest/docs/advanced.md
View file @
c205468b
...
...
@@ -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
{}
};
```
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment