mirror of
https://git.mirrors.martin98.com/https://github.com/google/googletest.git
synced 2025-08-12 09:39:00 +08:00
gtest: Remove incorrect documentation of private headers as PIMPL idiom
PiperOrigin-RevId: 753626014 Change-Id: I3ef90e13b08d5a22d3b220a4e8fbb78df92deb0a
This commit is contained in:
parent
04ee1b4f2a
commit
90a4152114
@ -1471,10 +1471,7 @@ To test them, we use the following special techniques:
|
||||
|
||||
Another way to test private members is to refactor them into an
|
||||
implementation class, which is then declared in a `*-internal.h` file. Your
|
||||
clients aren't allowed to include this header but your tests can. Such is
|
||||
called the
|
||||
[Pimpl](https://www.gamedev.net/articles/programming/general-and-gameplay-programming/the-c-pimpl-r1794/)
|
||||
(Private Implementation) idiom.
|
||||
clients aren't allowed to include this header but your tests can.
|
||||
|
||||
Or, you can declare an individual test as a friend of your class by adding
|
||||
this line in the class body:
|
||||
|
Loading…
x
Reference in New Issue
Block a user