Googletest export

Revert CL that updated example for SetUpTestSuite/TearDownTestSuite to initialize static member variables inline.

It seems that non-const static data members for some reason still must be initialized out-of-line.

PiperOrigin-RevId: 408913846
This commit is contained in:
Abseil Team 2021-11-10 13:21:58 -05:00 committed by dinord
parent 7f2288476b
commit 9ca071b6e5

View File

@ -926,9 +926,11 @@ class FooTest : public testing::Test {
void TearDown() override { ... }
// Some expensive resource shared by all tests.
static T* shared_resource_ = nullptr;
static T* shared_resource_;
};
T* FooTest::shared_resource_ = nullptr;
TEST_F(FooTest, Test1) {
... you can refer to shared_resource_ here ...
}