Home
last modified time | relevance | path

Searched refs:GetInstance (Results 1 – 25 of 28) sorted by relevance

12

/freebsd/contrib/googletest/googletest/test/
H A Dgtest-typed-test_test.cc182 EXPECT_STREQ(::testing::UnitTest::GetInstance() in TYPED_TEST()
188 EXPECT_STREQ(::testing::UnitTest::GetInstance() in TYPED_TEST()
298 EXPECT_STREQ(::testing::UnitTest::GetInstance() in TYPED_TEST_P()
304 EXPECT_STREQ(::testing::UnitTest::GetInstance() in TYPED_TEST_P()
402 return testing::UnitTest::GetInstance()->current_test_info()->name(); in GetTestName()
H A Dgoogletest-listener-test.cc267 UnitTest::GetInstance()->listeners().Append( in main()
269 UnitTest::GetInstance()->listeners().Append( in main()
271 UnitTest::GetInstance()->listeners().Append( in main()
506 if (UnitTest::GetInstance()->Failed()) ret_val = 1; in main()
H A Dgtest-unittest-api_test.cc58 UnitTest& unit_test = *UnitTest::GetInstance(); in GetSortedTestSuites()
73 UnitTest& unit_test = *UnitTest::GetInstance(); in FindTestSuite()
109 const auto& unit_test = UnitTest::GetInstance(); in TEST()
227 const auto& unit_test = UnitTest::GetInstance(); in TearDown()
H A Dgoogletest-param-test-test.cc840 ::testing::UnitTest::GetInstance()->current_test_info(); in TEST_P()
861 ::testing::UnitTest::GetInstance()->current_test_info(); in TEST_P()
875 ::testing::UnitTest::GetInstance()->current_test_info(); in TEST_F()
884 const auto& ins = testing::UnitTest::GetInstance(); in TEST()
960 const auto& unit_test = ::testing::UnitTest::GetInstance(); in TEST()
983 ::testing::UnitTest::GetInstance()->current_test_info(); in TEST_P()
1008 ::testing::UnitTest::GetInstance()->current_test_info(); in TEST_P()
1038 ::testing::UnitTest::GetInstance()->current_test_info(); in TEST_P()
1066 ::testing::UnitTest::GetInstance()->current_test_info(); in TEST_P()
H A Dgtest_stress_test.cc110 const TestInfo* const info = UnitTest::GetInstance()->current_test_info(); in CheckTestFailureCount()
134 const TestInfo* const info = UnitTest::GetInstance()->current_test_info(); in TEST()
H A Dgtest_assert_by_exception_test.cc100 testing::UnitTest::GetInstance()->listeners().Append(new ThrowListener); in main()
H A Dgtest_unittest.cc1998 ASSERT_TRUE(UnitTest::GetInstance()->original_working_dir() != nullptr); in TEST()
1999 EXPECT_STRNE(UnitTest::GetInstance()->original_working_dir(), ""); in TEST()
2003 EXPECT_LT(0, UnitTest::GetInstance()->start_timestamp()); in TEST()
2004 EXPECT_LE(UnitTest::GetInstance()->start_timestamp(), GetTimeInMillis()); in TEST()
2019 const TestInfo* test_info = UnitTest::GetInstance()->current_test_info(); in ExpectNonFatalFailureRecordingPropertyWithReservedKeyForCurrentTest()
2028 UnitTest::GetInstance()->current_test_suite(); in ExpectNonFatalFailureRecordingPropertyWithReservedKeyForCurrentTestSuite()
2037 UnitTest::GetInstance()->ad_hoc_test_result(), key); in ExpectNonFatalFailureRecordingPropertyWithReservedKeyOutsideOfTestSuite()
2063 UnitTest::GetInstance()->current_test_suite(); in SetUpTestSuite()
6356 const TestInfo* test_info = UnitTest::GetInstance()->current_test_info(); in SetUpTestSuite()
6364 const TestInfo* test_info = UnitTest::GetInstance()->current_test_info(); in TearDownTestSuite()
[all …]
H A Dgoogletest-shuffle-test_.cc94 TestEventListeners& listeners = UnitTest::GetInstance()->listeners(); in main()
H A Dgtest_xml_output_unittest_.cc190 TestEventListeners& listeners = UnitTest::GetInstance()->listeners(); in main()
H A Dgoogletest-failfast-unittest_.cc164 ::testing::UnitTest::GetInstance()->listeners().Append(new MyTestListener()); in main()
/freebsd/contrib/googletest/googletest/include/gtest/
H A Dgtest-param-test.h460 ::testing::UnitTest::GetInstance() \
519 ::testing::UnitTest::GetInstance() \
H A Dgtest.h1118 static UnitTest* GetInstance();
1346 return UnitTest::GetInstance()->AddEnvironment(env); in AddGlobalTestEnvironment()
2334 inline int RUN_ALL_TESTS() { return ::testing::UnitTest::GetInstance()->Run(); } in RUN_ALL_TESTS()
/freebsd/contrib/llvm-project/lldb/include/lldb/Host/
H A DFileCache.h29 static FileCache &GetInstance();
/freebsd/contrib/googletest/googletest/samples/
H A Dsample10_unittest.cc119 TestEventListeners& listeners = UnitTest::GetInstance()->listeners(); in main()
H A Dsample9_unittest.cc107 UnitTest& unit_test = *UnitTest::GetInstance(); in main()
/freebsd/contrib/googletest/googletest/src/
H A Dgtest.cc476 UnitTest::GetInstance()->AddTestPartResult( in operator =()
480 ? UnitTest::GetInstance()->impl()->CurrentOsStackTraceExceptTop(1) in operator =()
523 return UnitTest::GetInstance()->impl()->ignored_parameterized_test_suites(); in GetIgnoredParameterizedTestSuites()
704 UnitTest::GetInstance()->original_working_dir()), in GetAbsolutePathToOutputFile()
711 internal::FilePath(UnitTest::GetInstance()->original_working_dir()), in GetAbsolutePathToOutputFile()
2506 UnitTest::GetInstance()->RecordProperty(key, value); in RecordProperty()
2515 UnitTest::GetInstance()->AddTestPartResult( in ReportFailureInUnknownLocation()
2833 TestEventListener* repeater = UnitTest::GetInstance()->listeners().repeater(); in Run()
2840 UnitTest::GetInstance()->set_current_test_info(this); in Run()
2846 UnitTest::GetInstance()->UponLeavingGTest(); in Run()
[all …]
H A Dgtest-death-test.cc823 UnitTest::GetInstance()->original_working_dir(), &startup_info, in AssumeRole()
1193 UnitTest::GetInstance()->original_working_dir(); in ExecDeathTestChildMain()
1270 UnitTest::GetInstance()->original_working_dir(); in ExecDeathTestSpawnChild()
/freebsd/contrib/llvm-project/lldb/source/Host/common/
H A DFileCache.cpp19 FileCache &FileCache::GetInstance() { in GetInstance() function in FileCache
/freebsd/contrib/googletest/googlemock/test/
H A Dgmock_stress_test.cc208 const TestInfo* const info = UnitTest::GetInstance()->current_test_info(); in TEST()
/freebsd/contrib/llvm-project/lldb/source/Plugins/Platform/POSIX/
H A DPlatformPOSIX.cpp223 user_id_t fd_dst = FileCache::GetInstance().OpenFile( in GetFile()
244 if (FileCache::GetInstance().WriteFile(fd_dst, offset, in GetFile()
259 !FileCache::GetInstance().CloseFile(fd_dst, error)) { in GetFile()
/freebsd/contrib/llvm-project/lldb/source/Target/
H A DPlatform.cpp642 return FileCache::GetInstance().OpenFile(file_spec, flags, mode, error); in OpenFile()
648 return FileCache::GetInstance().CloseFile(fd, error); in CloseFile()
665 return FileCache::GetInstance().ReadFile(fd, offset, dst, dst_len, error); in ReadFile()
675 return FileCache::GetInstance().WriteFile(fd, offset, src, src_len, error); in WriteFile()
/freebsd/contrib/llvm-project/compiler-rt/lib/rtsan/tests/
H A Drtsan_test_interceptors.cpp47 ::testing::UnitTest::GetInstance()->current_test_info(); in SetUp()
/freebsd/contrib/llvm-project/llvm/lib/MC/
H A DMCContext.cpp364 unsigned MCContext::GetInstance(unsigned LocalLabelVal) { in GetInstance() function in MCContext
386 unsigned Instance = GetInstance(LocalLabelVal); in getDirectionalLocalSymbol()
/freebsd/contrib/googletest/googlemock/src/
H A Dgmock-spec-builders.cc698 UnitTest::GetInstance()->current_test_info(); in RegisterUseByOnCallOrExpectCall()
/freebsd/contrib/googletest/docs/reference/
H A Dtesting.md788 `UnitTest::GetInstance()` is first called. This instance is never deleted.
794 ##### GetInstance {#UnitTest::GetInstance}
796 `static UnitTest* UnitTest::GetInstance()`

12