diff --git a/docs/gmock_cheat_sheet.md b/docs/gmock_cheat_sheet.md index 2fb0403e..ddafaaa2 100644 --- a/docs/gmock_cheat_sheet.md +++ b/docs/gmock_cheat_sheet.md @@ -20,7 +20,7 @@ class Foo { (note that `~Foo()` **must** be virtual) we can define its mock as ```cpp -#include "gmock/gmock.h" +#include class MockFoo : public Foo { public: diff --git a/docs/gmock_cook_book.md b/docs/gmock_cook_book.md index e319bf63..da10918c 100644 --- a/docs/gmock_cook_book.md +++ b/docs/gmock_cook_book.md @@ -3194,7 +3194,7 @@ You can unlock this power by running your test with the `--gmock_verbose=info` flag. For example, given the test program: ```cpp -#include "gmock/gmock.h" +#include using ::testing::_; using ::testing::HasSubstr; diff --git a/docs/gmock_for_dummies.md b/docs/gmock_for_dummies.md index b7264d35..43f907aa 100644 --- a/docs/gmock_for_dummies.md +++ b/docs/gmock_for_dummies.md @@ -164,7 +164,7 @@ follow: After the process, you should have something like: ```cpp -#include "gmock/gmock.h" // Brings in gMock. +#include // Brings in gMock. class MockTurtle : public Turtle { public: @@ -224,8 +224,8 @@ Here's an example: ```cpp #include "path/to/mock-turtle.h" -#include "gmock/gmock.h" -#include "gtest/gtest.h" +#include +#include using ::testing::AtLeast; // #1 diff --git a/docs/primer.md b/docs/primer.md index c3aee3cc..f2a97a72 100644 --- a/docs/primer.md +++ b/docs/primer.md @@ -395,7 +395,7 @@ You can start from this boilerplate: ```c++ #include "this/package/foo.h" -#include "gtest/gtest.h" +#include namespace my { namespace project { diff --git a/docs/reference/assertions.md b/docs/reference/assertions.md index 1cdff266..aa1dbc04 100644 --- a/docs/reference/assertions.md +++ b/docs/reference/assertions.md @@ -88,7 +88,7 @@ For example, the following code verifies that the string `value1` starts with 10: ```cpp -#include "gmock/gmock.h" +#include using ::testing::AllOf; using ::testing::Gt; diff --git a/googletest/README.md b/googletest/README.md index 6bbd7f87..815f3fc0 100644 --- a/googletest/README.md +++ b/googletest/README.md @@ -145,7 +145,7 @@ We list the most frequently used macros below. For a complete list, see file ### Multi-threaded Tests GoogleTest is thread-safe where the pthread library is available. After -`#include "gtest/gtest.h"`, you can check the +`#include `, you can check the `GTEST_IS_THREADSAFE` macro to see whether this is the case (yes if the macro is `#defined` to 1, no if it's undefined.).