Home
last modified time | relevance | path

Searched refs:shared_resource_ (Results 1 – 2 of 2) sorted by relevance

/freebsd/contrib/googletest/googletest/test/
H A Dgtest_unittest.cc5356 shared_resource_ = "123"; in SetUpTestCase()
5377 shared_resource_ = nullptr; in TearDownTestCase()
5391 static const char* shared_resource_; member in testing::SetUpTestCaseTest
5395 const char* SetUpTestCaseTest::shared_resource_ = nullptr; member in testing::SetUpTestCaseTest
5401 TEST_F(SetUpTestCaseTest, Test2) { EXPECT_STREQ("123", shared_resource_); } in TEST_F()
5415 shared_resource_ = "123"; in SetUpTestSuite()
5436 shared_resource_ = nullptr; in TearDownTestSuite()
5450 static const char* shared_resource_; member in testing::SetUpTestSuiteTest
5454 const char* SetUpTestSuiteTest::shared_resource_ = nullptr; member in testing::SetUpTestSuiteTest
5458 EXPECT_STRNE(nullptr, shared_resource_); in TEST_F()
[all …]
/freebsd/contrib/googletest/docs/
H A Dadvanced.md934 shared_resource_ = new ...;
936 // If `shared_resource_` is **not deleted** in `TearDownTestSuite()`,
940 // if (shared_resource_ == nullptr) {
941 // shared_resource_ = new ...;
949 delete shared_resource_;
950 shared_resource_ = nullptr;
960 static T* shared_resource_;
963 T* FooTest::shared_resource_ = nullptr;
966 ... you can refer to shared_resource_ here ...
970 ... you can refer to shared_resource_ here ...