Skip to content

Commit c875c4e

Browse files
Abseil Teamcopybara-github
authored andcommitted
Adjust includes to use <> instead of "", consistent with quickstart pages.
Right now, gtest documentation uses different #include syntax. The quickstart pages (e.g., http://google.github.io/googletest/quickstart-bazel.html#create-and-run-a-binary) are checked in with `#include <gtest/gtest.h>` However, other documentation (such as the primer) uses `#include "gtest/gtest.h"` (e.g., https://google.github.io/googletest/primer.html#writing-the-main-function). PiperOrigin-RevId: 551878641 Change-Id: Iab93cc1da3ef4870a07b624071b75d6e9d3568c1
1 parent 40412d8 commit c875c4e

File tree

6 files changed

+8
-8
lines changed

6 files changed

+8
-8
lines changed

docs/gmock_cheat_sheet.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ class Foo {
2020
(note that `~Foo()` **must** be virtual) we can define its mock as
2121
2222
```cpp
23-
#include "gmock/gmock.h"
23+
#include <gmock/gmock.h>
2424
2525
class MockFoo : public Foo {
2626
public:

docs/gmock_cook_book.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3194,7 +3194,7 @@ You can unlock this power by running your test with the `--gmock_verbose=info`
31943194
flag. For example, given the test program:
31953195

31963196
```cpp
3197-
#include "gmock/gmock.h"
3197+
#include <gmock/gmock.h>
31983198

31993199
using ::testing::_;
32003200
using ::testing::HasSubstr;

docs/gmock_for_dummies.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ follow:
164164
After the process, you should have something like:
165165
166166
```cpp
167-
#include "gmock/gmock.h" // Brings in gMock.
167+
#include <gmock/gmock.h> // Brings in gMock.
168168
169169
class MockTurtle : public Turtle {
170170
public:
@@ -224,8 +224,8 @@ Here's an example:
224224

225225
```cpp
226226
#include "path/to/mock-turtle.h"
227-
#include "gmock/gmock.h"
228-
#include "gtest/gtest.h"
227+
#include <gmock/gmock.h>
228+
#include <gtest/gtest.h>
229229

230230
using ::testing::AtLeast; // #1
231231

docs/primer.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -395,7 +395,7 @@ You can start from this boilerplate:
395395
```c++
396396
#include "this/package/foo.h"
397397

398-
#include "gtest/gtest.h"
398+
#include <gtest/gtest.h>
399399

400400
namespace my {
401401
namespace project {

docs/reference/assertions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ For example, the following code verifies that the string `value1` starts with
8888
10:
8989

9090
```cpp
91-
#include "gmock/gmock.h"
91+
#include <gmock/gmock.h>
9292

9393
using ::testing::AllOf;
9494
using ::testing::Gt;

googletest/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ We list the most frequently used macros below. For a complete list, see file
145145
### Multi-threaded Tests
146146

147147
GoogleTest is thread-safe where the pthread library is available. After
148-
`#include "gtest/gtest.h"`, you can check the
148+
`#include <gtest/gtest.h>`, you can check the
149149
`GTEST_IS_THREADSAFE` macro to see whether this is the case (yes if the macro is
150150
`#defined` to 1, no if it's undefined.).
151151

0 commit comments

Comments
 (0)