diff options
author | Abseil Team <absl-team@google.com> | 2023-08-10 18:26:23 (GMT) |
---|---|---|
committer | Copybara-Service <copybara-worker@google.com> | 2023-08-10 18:27:05 (GMT) |
commit | 7e33b6a1c497ced1e98fc60175aeb4678419281c (patch) | |
tree | 92a825cef8ff89ea7e56bbd76047bebb115b8840 /docs | |
parent | 89b25572dbd7668499d2cfd01dea905f8c44e019 (diff) | |
download | googletest-7e33b6a1c497ced1e98fc60175aeb4678419281c.zip googletest-7e33b6a1c497ced1e98fc60175aeb4678419281c.tar.gz googletest-7e33b6a1c497ced1e98fc60175aeb4678419281c.tar.bz2 |
Specify SetUpTestSuite is required to be public.
PiperOrigin-RevId: 555578256
Change-Id: I9366fc99ae953c29e468fcddb4be203c9c05661b
Diffstat (limited to 'docs')
-rw-r--r-- | docs/advanced.md | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/docs/advanced.md b/docs/advanced.md index 3871db1..344d541 100644 --- a/docs/advanced.md +++ b/docs/advanced.md @@ -899,10 +899,10 @@ also supports per-test-suite set-up/tear-down. To use it: variables to hold the shared resources. 2. Outside your test fixture class (typically just below it), define those member variables, optionally giving them initial values. -3. In the same test fixture class, define a `static void SetUpTestSuite()` - function (remember not to spell it as **`SetupTestSuite`** with a small - `u`!) to set up the shared resources and a `static void TearDownTestSuite()` - function to tear them down. +3. In the same test fixture class, define a public member function `static void + SetUpTestSuite()` (remember not to spell it as **`SetupTestSuite`** with a + small `u`!) to set up the shared resources and a `static void + TearDownTestSuite()` function to tear them down. That's it! GoogleTest automatically calls `SetUpTestSuite()` before running the *first test* in the `FooTest` test suite (i.e. before creating the first |