Skip to content

Commit 1dccc5d

Browse files
Benoit FANCHONkris-jusiak
authored andcommitted
Code review
1 parent 1416d01 commit 1dccc5d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/GTest-friend.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
There already are many good resources which explains why you shouldn't test private parts of your implementation and how to avoid it.
22

3-
If you want to make make your classes friend with their test, here are some ways to achieve it:
3+
If you want to make your classes friend with their test, there are some ways to achieve it:
44

55
* <font size="1">Add `#define private public` & `#define protected public` before including production headers to your test sources. But I never said this.</font>
66

@@ -11,14 +11,14 @@ If you want to make make your classes friend with their test, here are some ways
1111
```#include <GUnit/Detail/StringUtils.h>
1212
// Forward declare some GUnit classes
1313
template <typename ...> struct GTEST;
14-
14+
1515
class SomeClass {
1616
friend struct GTEST<SomeTest, testing::detail::string<> >;
1717
};
1818
1919
GTEST(SomeTest) { ... }
2020
```
21-
* You can also declare friend with the test class `GTEST("SomeTest")`, it is more cumbersome :
21+
* You can also declare friend with the test class `GTEST("SomeTest")`, though it is more cumbersome :
2222
```#include <GUnit/Detail/StringUtils.h>
2323
// Forward declare some GUnit classes
2424
template <typename ...> struct GTEST;

0 commit comments

Comments
 (0)