From 90a41521142c978131f38c6da07b4eb96a9f1ff6 Mon Sep 17 00:00:00 2001 From: Abseil Team Date: Thu, 1 May 2025 09:49:56 -0700 Subject: [PATCH] gtest: Remove incorrect documentation of private headers as PIMPL idiom PiperOrigin-RevId: 753626014 Change-Id: I3ef90e13b08d5a22d3b220a4e8fbb78df92deb0a --- docs/advanced.md | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/docs/advanced.md b/docs/advanced.md index 9b1220a1e..35a237df8 100644 --- a/docs/advanced.md +++ b/docs/advanced.md @@ -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: