Googletest export
Use InitGoogleTest() instead of InitGoogle() in code example PiperOrigin-RevId: 308070819
This commit is contained in:
parent
b0e53e2d64
commit
d7ca9af004
@ -863,7 +863,7 @@ restored afterwards, so you need not do that yourself. For example:
|
|||||||
|
|
||||||
```c++
|
```c++
|
||||||
int main(int argc, char** argv) {
|
int main(int argc, char** argv) {
|
||||||
InitGoogle(argv[0], &argc, &argv, true);
|
::testing::InitGoogleTest(&argc, argv);
|
||||||
::testing::FLAGS_gtest_death_test_style = "fast";
|
::testing::FLAGS_gtest_death_test_style = "fast";
|
||||||
return RUN_ALL_TESTS();
|
return RUN_ALL_TESTS();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user