/external/gtest/test/ |
D | gtest_nc.cc | 48 testing::InitGoogleTest(&argc, argv); in main() 63 class MyTest : public testing::Test { 74 class MyTest : public testing::Test { 77 testing::Test::Setup(); // Tries to call SetUp() in the parent class. in SetUp() 87 class MyEnvironment : public testing::Environment { 98 class MyEnvironment : public testing::Environment { 102 testing::Environment::Setup(); in SetUp() 113 class FooTest : public testing::Test { 117 class BarTest : public testing::Test { 123 INSTANTIATE_TYPED_TEST_CASE_P(My, FooTest, testing::Types<int>); [all …]
|
D | gtest-death-test_test.cc | 63 using testing::Message; 65 using testing::internal::DeathTest; 66 using testing::internal::DeathTestFactory; 67 using testing::internal::FilePath; 68 using testing::internal::GetLastSystemErrorMessage; 69 using testing::internal::ParseNaturalNumber; 70 using testing::internal::String; 72 namespace testing { namespace 103 class TestForDeathTest : public testing::Test { 204 EXPECT_TRUE(testing::ExitedWithCode(0)(0)); in TEST() [all …]
|
D | gtest_output_test_.cc | 60 using testing::ScopedFakeTestPartResultReporter; 61 using testing::TestPartResultArray; 63 using testing::internal::String; 82 if (testing::Test::HasFatalFailure()) return; in TryTestSubroutine() 148 SCOPED_TRACE(testing::Message() << "n = " << n); in SubWithTrace() 177 SCOPED_TRACE(testing::Message() << "i = " << i); in TEST() 248 class NonFatalFailureInFixtureConstructorTest : public testing::Test { 273 class FatalFailureInFixtureConstructorTest : public testing::Test { 308 class NonFatalFailureInSetUpTest : public testing::Test { 333 class FatalFailureInSetUpTest : public testing::Test { [all …]
|
D | gtest_repeat_test.cc | 47 namespace testing { namespace 55 using testing::GTEST_FLAG(death_test_style); 56 using testing::GTEST_FLAG(filter); 57 using testing::GTEST_FLAG(repeat); 83 class MyEnvironment : public testing::Environment { 129 class MyParamTest : public testing::TestWithParam<int> {}; 139 testing::Range(0, kNumberOfParamTests)); 232 testing::InitGoogleTest(&argc, argv); in main() 233 testing::AddGlobalTestEnvironment(new MyEnvironment); in main()
|
D | gtest_xml_output_unittest_.cc | 43 class SuccessfulTest : public testing::Test { 51 class FailedTest : public testing::Test { 58 class DisabledTest : public testing::Test { 79 class PropertyRecordingTest : public testing::Test { 106 testing::Test::RecordProperty(key, value); in ExternalUtilityThatCallsRecordProperty() 111 testing::Test::RecordProperty(key, value); in ExternalUtilityThatCallsRecordProperty()
|
D | gtest_unittest.cc | 41 bool dummy = testing::GTEST_FLAG(also_run_disabled_tests) in TEST() 42 || testing::GTEST_FLAG(break_on_failure) in TEST() 43 || testing::GTEST_FLAG(catch_exceptions) in TEST() 44 || testing::GTEST_FLAG(color) != "unknown" in TEST() 45 || testing::GTEST_FLAG(filter) != "unknown" in TEST() 46 || testing::GTEST_FLAG(list_tests) in TEST() 47 || testing::GTEST_FLAG(output) != "unknown" in TEST() 48 || testing::GTEST_FLAG(print_time) in TEST() 49 || testing::GTEST_FLAG(repeat) > 0 in TEST() 50 || testing::GTEST_FLAG(show_internal_stack_frames) in TEST() [all …]
|
D | gtest_filter_unittest_.cc | 48 class FooTest : public testing::Test { 130 class ParamTest : public testing::TestWithParam<int> { 139 INSTANTIATE_TEST_CASE_P(SeqP, ParamTest, testing::Values(1, 2)); 140 INSTANTIATE_TEST_CASE_P(SeqQ, ParamTest, testing::Values(5, 6)); 147 testing::InitGoogleTest(&argc, argv); in main()
|
D | gtest-test-part_test.cc | 8 using testing::Test; 9 using testing::TestPartResult; 10 using testing::TestPartResultArray; 12 using testing::TPRT_FATAL_FAILURE; 13 using testing::TPRT_NONFATAL_FAILURE; 14 using testing::TPRT_SUCCESS;
|
D | gtest_environment_test.cc | 38 namespace testing { namespace 49 class MyEnvironment : public testing::Environment { 132 testing::InitGoogleTest(&argc, argv); in main() 137 Check(testing::AddGlobalTestEnvironment(env) == env, in main() 175 testing::GTEST_FLAG(filter) = "-*"; in main()
|
D | gtest-param-test_test.cc | 55 using ::testing::AddGlobalTestEnvironment; 56 using ::testing::Bool; 57 using ::testing::Message; 58 using ::testing::Range; 59 using ::testing::TestWithParam; 60 using ::testing::Values; 61 using ::testing::ValuesIn; 64 using ::testing::Combine; 70 using ::testing::internal::ParamGenerator; 71 using ::testing::internal::UnitTestOptions; [all …]
|
D | gtest_pred_impl_unittest.cc | 101 testing::AssertionResult PredFormatFunction1(const char* e1, in PredFormatFunction1() 104 return testing::AssertionSuccess(); in PredFormatFunction1() 106 testing::Message msg; in PredFormatFunction1() 110 return testing::AssertionFailure(msg); in PredFormatFunction1() 116 testing::AssertionResult operator()(const char* e1, in operator ()() 124 class Predicate1Test : public testing::Test { 490 testing::AssertionResult PredFormatFunction2(const char* e1, in PredFormatFunction2() 495 return testing::AssertionSuccess(); in PredFormatFunction2() 497 testing::Message msg; in PredFormatFunction2() 501 return testing::AssertionFailure(msg); in PredFormatFunction2() [all …]
|
D | gtest_color_test_.cc | 40 namespace testing { namespace 46 using testing::internal::ShouldUseColor; 56 testing::InitGoogleTest(&argc, argv); in main()
|
D | gtest-message_test.cc | 40 using ::testing::Message; 41 using ::testing::internal::StrStream; 45 static testing::internal::String result; in ToCString() 149 EXPECT_STREQ("Hello", testing::internal::StrStreamToString(&ss).c_str()); in TEST()
|
D | gtest_env_var_test_.cc | 45 namespace testing { namespace 117 testing::InitGoogleTest(&argc, argv); in main() 124 testing::PrintFlag(argv[1]); in main()
|
D | gtest-typed-test_test.cc | 38 using testing::Test; 87 using testing::Types; 171 using testing::Types; 172 using testing::internal::TypedTestCasePState;
|
D | gtest-param-test_test.h | 46 class ExternalInstantiationTest : public ::testing::TestWithParam<int> {}; 51 : public ::testing::TestWithParam<int> {};
|
D | gtest-param-test2_test.cc | 41 using ::testing::Values; 42 using ::testing::internal::ParamGenerator;
|
/external/gtest/include/gtest/ |
D | gtest-spi.h | 40 namespace testing { 144 ::testing::TestPartResultArray gtest_failures;\ 145 ::testing::internal::SingleFailureChecker gtest_checker(\ 146 >est_failures, ::testing::TPRT_FATAL_FAILURE, (substr));\ 148 ::testing::ScopedFakeTestPartResultReporter gtest_reporter(\ 149 ::testing::ScopedFakeTestPartResultReporter:: \ 161 ::testing::TestPartResultArray gtest_failures;\ 162 ::testing::internal::SingleFailureChecker gtest_checker(\ 163 >est_failures, ::testing::TPRT_FATAL_FAILURE, (substr));\ 165 ::testing::ScopedFakeTestPartResultReporter gtest_reporter(\ [all …]
|
D | gtest.h | 94 namespace testing { 1128 EXPECT_PRED_FORMAT2(::testing::internal:: \ 1132 EXPECT_PRED_FORMAT2(::testing::internal::CmpHelperNE, expected, actual) 1134 EXPECT_PRED_FORMAT2(::testing::internal::CmpHelperLE, val1, val2) 1136 EXPECT_PRED_FORMAT2(::testing::internal::CmpHelperLT, val1, val2) 1138 EXPECT_PRED_FORMAT2(::testing::internal::CmpHelperGE, val1, val2) 1140 EXPECT_PRED_FORMAT2(::testing::internal::CmpHelperGT, val1, val2) 1143 ASSERT_PRED_FORMAT2(::testing::internal:: \ 1147 ASSERT_PRED_FORMAT2(::testing::internal::CmpHelperNE, val1, val2) 1149 ASSERT_PRED_FORMAT2(::testing::internal::CmpHelperLE, val1, val2) [all …]
|
D | gtest-typed-test.h | 46 class FooTest : public testing::Test { 57 typedef testing::Types<char, int, unsigned int> MyTypes; 106 class FooTest : public testing::Test { 140 typedef testing::Types<char, int, unsigned int> MyTypes; 163 typedef ::testing::internal::TypeList<Types>::type \ 176 ::testing::internal::TypeParameterizedTest< \ 178 ::testing::internal::TemplateSel< \ 217 static ::testing::internal::TypedTestCasePState \ 238 typedef ::testing::internal::Templates<__VA_ARGS__>::type gtest_AllTests_; \ 246 ::testing::internal::TypeParameterizedTestCase<CaseName, \ [all …]
|
D | gtest-death-test.h | 43 namespace testing { 169 ASSERT_EXIT(statement, ::testing::internal::ExitedUnsuccessfully, regex) 174 EXPECT_EXIT(statement, ::testing::internal::ExitedUnsuccessfully, regex)
|
/external/gtest/include/gtest/internal/ |
D | gtest-death-test-internal.h | 46 namespace testing { 161 const ::testing::internal::RE& gtest_regex = (regex); \ 162 ::testing::internal::DeathTest* gtest_dt; \ 163 if (!::testing::internal::DeathTest::Create(#statement, >est_regex, \ 168 ::testing::internal::scoped_ptr< ::testing::internal::DeathTest> \ 171 case ::testing::internal::DeathTest::OVERSEE_TEST: \ 176 case ::testing::internal::DeathTest::EXECUTE_TEST: { \ 177 ::testing::internal::DeathTest::ReturnSentinel \ 180 gtest_dt->Abort(::testing::internal::DeathTest::TEST_DID_NOT_DIE); \ 187 fail(::testing::internal::DeathTest::LastMessage())
|
D | gtest-internal.h | 100 namespace testing { 165 (sizeof(::testing::internal::IsNullLiteralHelper(x)) == 1) 759 ::testing::internal::AssertHelper(result_type, __FILE__, __LINE__, message) \ 760 = ::testing::Message() 763 return GTEST_MESSAGE_(message, ::testing::TPRT_FATAL_FAILURE) 766 GTEST_MESSAGE_(message, ::testing::TPRT_NONFATAL_FAILURE) 769 GTEST_MESSAGE_(message, ::testing::TPRT_SUCCESS) 775 if (::testing::internal::AlwaysTrue()) { statement; } 847 ::testing::internal::HasNewFatalFailureHelper gtest_fatal_failure_checker; \ 870 static ::testing::TestInfo* const test_info_;\ [all …]
|
D | gtest-port.h | 461 namespace testing { 597 ::testing::internal::GTestLog(\ 598 ::testing::internal::GTEST_##severity, __FILE__, __LINE__, \ 599 (::testing::Message() << (msg)).GetString().c_str()) 856 ::testing::internal::GTestCheckProvider(\ 865 extern ::testing::internal::Int32 GTEST_FLAG(name) 867 extern ::testing::internal::String GTEST_FLAG(name) 873 ::testing::internal::Int32 GTEST_FLAG(name) = (default_val) 875 ::testing::internal::String GTEST_FLAG(name) = (default_val)
|
/external/gtest/samples/ |
D | sample8_unittest.cc | 83 using ::testing::TestWithParam; 84 using ::testing::Bool; 85 using ::testing::Values; 86 using ::testing::Combine;
|