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.cc5360 shared_resource_ = "123"; in SetUpTestCase()
5381 shared_resource_ = nullptr; in TearDownTestCase()
5395 static const char* shared_resource_; member in testing::SetUpTestCaseTest
5399 const char* SetUpTestCaseTest::shared_resource_ = nullptr; member in testing::SetUpTestCaseTest
5402 TEST_F(SetUpTestCaseTest, Test1) { EXPECT_STRNE(nullptr, shared_resource_); } in TEST_F()
5405 TEST_F(SetUpTestCaseTest, Test2) { EXPECT_STREQ("123", shared_resource_); } in TEST_F()
5419 shared_resource_ = "123"; in SetUpTestSuite()
5440 shared_resource_ = nullptr; in TearDownTestSuite()
5454 static const char* shared_resource_; member in testing::SetUpTestSuiteTest
5458 const char* SetUpTestSuiteTest::shared_resource_ = nullptr; member in testing::SetUpTestSuiteTest
[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 ...