Home
last modified time | relevance | path

Searched refs:testing (Results 1 – 22 of 22) sorted by relevance

/bionic/tests/
Derror_test.cpp59 ASSERT_EXIT(error(22, 0, "x%c", 'y'), ::testing::ExitedWithCode(22), "xy"); in TEST()
63 …ASSERT_EXIT(error(22, EBADF, "x%c", 'y'), ::testing::ExitedWithCode(22), ": xy: Bad file descripto… in TEST()
67 …ASSERT_EXIT(error_at_line(22, 0, "a.c", 123, "x%c", 'y'), ::testing::ExitedWithCode(22), ":a.c:123… in TEST()
71 …ASSERT_EXIT(error_at_line(22, EBADF, "a.c", 123, "x%c", 'y'), ::testing::ExitedWithCode(22), ":a.c… in TEST()
DBionicDeathTest.h24 class BionicDeathTest : public testing::Test {
30 ::testing::FLAGS_gtest_death_test_style = "threadsafe"; in SetUp()
Dgtest_main.cpp39 namespace testing { namespace
55 using testing::internal::GTestColor;
56 using testing::internal::COLOR_DEFAULT;
57 using testing::internal::COLOR_RED;
58 using testing::internal::COLOR_GREEN;
59 using testing::internal::COLOR_YELLOW;
60 using testing::internal::ColoredPrintf;
199 class TestResultPrinter : public testing::EmptyTestEventListener {
202 virtual void OnTestStart(const testing::TestInfo& test_info) { in OnTestStart()
205 virtual void OnTestPartResult(const testing::TestPartResult& result);
[all …]
Datexit_test.cpp107 ASSERT_EXIT(atexit_main(), testing::ExitedWithCode(0), "123456"); in TEST()
Dstack_protector_test.cpp130 ASSERT_EXIT(do_modify_stack_chk_guard(), testing::KilledBySignal(SIGABRT), ""); in TEST_F()
Dsys_resource_test.cpp31 class SysResourceTest : public ::testing::Test {
Dmath_data_test.h117 ::testing::AssertionResult operator()(const char* /* expected_expression */,
122 return ::testing::AssertionSuccess();
131 return ::testing::AssertionFailure()
D__cxa_thread_atexit_test.cpp73 ASSERT_EXIT(thread_atexit_main(), testing::ExitedWithCode(0), "d-tor for main thread called."); in TEST()
Ddlext_test.cpp46 ASSERT_PRED_FORMAT2(::testing::IsSubstring, needle, haystack)
65 class DlExtTest : public ::testing::Test {
Dpthread_test.cpp355 ASSERT_EXIT(TestBug37410::main(), ::testing::ExitedWithCode(0), ""); in TEST_F()
1049 class pthread_CondWakeupTest : public ::testing::Test {
1560 ASSERT_EXIT(pthread_mutex_lock(null_value), testing::KilledBySignal(SIGSEGV), ""); in TEST_F()
1569 ASSERT_EXIT(pthread_mutex_unlock(null_value), testing::KilledBySignal(SIGSEGV), ""); in TEST_F()
Dfortify_test.cpp32 #define ASSERT_FORTIFY(expr) ASSERT_EXIT(expr, testing::KilledBySignal(SIGABRT), "FORTIFY")
34 #define ASSERT_FORTIFY(expr) ASSERT_EXIT(expr, testing::KilledBySignal(SIGABRT), "")
Dstdlib_test.cpp243 ASSERT_EXIT(TestBug57421_main(), ::testing::ExitedWithCode(0), ""); in TEST_F()
Dunistd_test.cpp473 ASSERT_EXIT(abort(), testing::KilledBySignal(SIGABRT), ""); in TEST_F()
Ddlfcn_test.cpp32 ASSERT_PRED_FORMAT2(::testing::IsSubstring, needle, haystack)
/bionic/benchmarks/
Dmain.cpp27 if (::testing::Benchmark::List().empty()) { in main()
51 if (::testing::Benchmark::RunAll(regs) == 0) { in main()
54 for (const auto& benchmark : ::testing::Benchmark::List()) { in main()
Dpthread_benchmark.cpp174 ::testing::Benchmark* benchmark = reinterpret_cast<::testing::Benchmark*>(arg); in RunThread()
192 ::testing::Benchmark* benchmark = reinterpret_cast<::testing::Benchmark*>(arg); in ExitThread()
Dstdio_benchmark.cpp30 void ReadWriteTest(::testing::Benchmark* benchmark, int iters, int chunk_size, Fn f, bool buffered)… in ReadWriteTest()
DBenchmark.cpp33 namespace testing { namespace
/bionic/benchmarks/benchmark/
DBenchmark.h26 namespace testing {
158 BENCHMARK_START(f, ::testing::BenchmarkWithoutArg) \
161 static ::testing::Benchmark* __benchmark_##f = new f()
164 BENCHMARK_START(f, ::testing::BenchmarkWithArg<arg_type>) \
167 static ::testing::BenchmarkWithArg<arg_type>* __benchmark_##f = (new f())
/bionic/tools/relocation_packer/src/
Ddebug_unittest.cc102 ::testing::FLAGS_gtest_death_test_style = "threadsafe"; in TEST()
110 ::testing::FLAGS_gtest_death_test_style = "threadsafe"; in TEST()
117 ::testing::FLAGS_gtest_death_test_style = "threadsafe"; in TEST()
/bionic/linker/tests/
Dlinker_block_allocator_test.cpp127 testing::FLAGS_gtest_death_test_style = "threadsafe"; in TEST()
128 ASSERT_EXIT(protect_all(), testing::KilledBySignal(SIGSEGV), "trying to access protected page"); in TEST()
/bionic/libm/
DNOTICE82 The argument reduction and testing for exceptional cases was