Home
last modified time | relevance | path

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

12345

/ndk/sources/third_party/googletest/googletest/include/gtest/
Dgtest-spi.h40 namespace testing {
144 ::testing::TestPartResultArray gtest_failures;\
145 ::testing::internal::SingleFailureChecker gtest_checker(\
146 &gtest_failures, ::testing::TestPartResult::kFatalFailure, (substr));\
148 ::testing::ScopedFakeTestPartResultReporter gtest_reporter(\
149 ::testing::ScopedFakeTestPartResultReporter:: \
153 } while (::testing::internal::AlwaysFalse())
161 ::testing::TestPartResultArray gtest_failures;\
162 ::testing::internal::SingleFailureChecker gtest_checker(\
163 &gtest_failures, ::testing::TestPartResult::kFatalFailure, (substr));\
[all …]
Dgtest-typed-test.h46 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;
166 typedef ::testing::internal::TypeList< Types >::type \
179 ::testing::internal::TypeParameterizedTest< \
181 ::testing::internal::TemplateSel< \
220 static ::testing::internal::TypedTestCasePState \
241 typedef ::testing::internal::Templates<__VA_ARGS__>::type gtest_AllTests_; \
252 ::testing::internal::TypeParameterizedTestCase<CaseName, \
[all …]
Dgtest.h83 namespace testing {
1327 return ::testing::PrintToString(value); in Format()
1348 return ::testing::PrintToString(static_cast<const void*>(value)); \
1367 return ::testing::PrintToString(value); \
1838 ::testing::TestPartResult::kNonFatalFailure)
1947 EXPECT_PRED_FORMAT2(::testing::internal:: \
1951 EXPECT_PRED_FORMAT2(::testing::internal::CmpHelperNE, expected, actual)
1953 EXPECT_PRED_FORMAT2(::testing::internal::CmpHelperLE, val1, val2)
1955 EXPECT_PRED_FORMAT2(::testing::internal::CmpHelperLT, val1, val2)
1957 EXPECT_PRED_FORMAT2(::testing::internal::CmpHelperGE, val1, val2)
[all …]
/ndk/sources/third_party/googletest/googletest/include/gtest/internal/
Dgtest-death-test-internal.h44 namespace testing {
169 ::testing::internal::FormatFileLocation(__FILE__, __LINE__).c_str(), \
172 death_test->Abort(::testing::internal::DeathTest::TEST_THREW_EXCEPTION); \
174 death_test->Abort(::testing::internal::DeathTest::TEST_THREW_EXCEPTION); \
187 if (::testing::internal::AlwaysTrue()) { \
188 const ::testing::internal::RE& gtest_regex = (regex); \
189 ::testing::internal::DeathTest* gtest_dt; \
190 if (!::testing::internal::DeathTest::Create(#statement, &gtest_regex, \
195 ::testing::internal::scoped_ptr< ::testing::internal::DeathTest> \
198 case ::testing::internal::DeathTest::OVERSEE_TEST: \
[all …]
Dgtest-internal.h78 namespace testing {
132 (sizeof(::testing::internal::IsNullLiteralHelper(x)) == 1)
702 typename ::testing::internal::RemoveReference<T>::type
733 typename ::testing::internal::RemoveConst<T>::type
750 typename ::testing::internal::AddReference<T>::type
1014 ::testing::internal::AssertHelper(result_type, file, line, message) \
1015 = ::testing::Message()
1021 return GTEST_MESSAGE_(message, ::testing::TestPartResult::kFatalFailure)
1024 GTEST_MESSAGE_(message, ::testing::TestPartResult::kNonFatalFailure)
1027 GTEST_MESSAGE_(message, ::testing::TestPartResult::kSuccess)
[all …]
/ndk/sources/third_party/googletest/googletest/test/
Dgtest_output_test_.cc53 using testing::ScopedFakeTestPartResultReporter;
54 using testing::TestPartResultArray;
56 using testing::internal::Notification;
57 using testing::internal::ThreadWithParam;
60 namespace posix = ::testing::internal::posix;
61 using testing::internal::scoped_ptr;
80 if (testing::Test::HasFatalFailure()) return; in TryTestSubroutine()
94 class FailingParamTest : public testing::TestWithParam<int> {};
104 testing::Values(2));
170 SCOPED_TRACE(testing::Message() << "n = " << n); in SubWithTrace()
[all …]
Dgtest-death-test_test.cc38 using testing::internal::AlwaysFalse;
39 using testing::internal::AlwaysTrue;
70 namespace posix = ::testing::internal::posix;
72 using testing::Message;
73 using testing::internal::DeathTest;
74 using testing::internal::DeathTestFactory;
75 using testing::internal::FilePath;
76 using testing::internal::GetLastErrnoDescription;
77 using testing::internal::GetUnitTestImpl;
78 using testing::internal::InDeathTestChild;
[all …]
Dgtest_repeat_test.cc47 namespace testing { namespace
55 using testing::GTEST_FLAG(death_test_style);
56 using testing::GTEST_FLAG(filter);
57 using testing::GTEST_FLAG(repeat);
67 if (::testing::internal::IsTrue(expected_val != actual_val)) {\
72 ::testing::internal::posix::Abort();\
74 } while (::testing::internal::AlwaysFalse())
83 class MyEnvironment : public testing::Environment {
116 EXPECT_DEATH_IF_SUPPORTED(::testing::internal::posix::Abort(), ""); in TEST()
119 EXPECT_DEATH_IF_SUPPORTED(::testing::internal::posix::Abort(), ""); in TEST()
[all …]
Dgtest_xml_output_unittest_.cc43 using ::testing::InitGoogleTest;
44 using ::testing::TestEventListeners;
45 using ::testing::TestWithParam;
46 using ::testing::UnitTest;
47 using ::testing::Test;
48 using ::testing::Values;
127 testing::Test::RecordProperty(key, value); in ExternalUtilityThatCallsRecordProperty()
132 testing::Test::RecordProperty(key, value); in ExternalUtilityThatCallsRecordProperty()
154 typedef testing::Types<int, long> TypedTestTypes;
166 typedef testing::Types<int, long> TypeParameterizedTestCaseTypes;
[all …]
Dgtest-listener_test.cc39 using ::testing::AddGlobalTestEnvironment;
40 using ::testing::Environment;
41 using ::testing::InitGoogleTest;
42 using ::testing::Test;
43 using ::testing::TestCase;
44 using ::testing::TestEventListener;
45 using ::testing::TestInfo;
46 using ::testing::TestPartResult;
47 using ::testing::UnitTest;
52 namespace testing { namespace
[all …]
Dgtest_shuffle_test_.cc38 using ::testing::EmptyTestEventListener;
39 using ::testing::InitGoogleTest;
40 using ::testing::Message;
41 using ::testing::Test;
42 using ::testing::TestEventListeners;
43 using ::testing::TestInfo;
44 using ::testing::UnitTest;
45 using ::testing::internal::scoped_ptr;
Dgtest_list_tests_unittest_.cc62 class FooTest : public testing::Test {
94 class ValueParamTest : public testing::TestWithParam<MyType> {
105 testing::Values(MyType("one line"),
117 class TypedTest : public testing::Test {
124 typedef testing::Types<VeryLooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo…
138 class TypeParamTest : public testing::Test {
154 ::testing::InitGoogleTest(&argc, argv); in main()
Dgtest_environment_test.cc42 namespace testing { namespace
53 class MyEnvironment : public testing::Environment {
119 testing::internal::posix::Abort(); in Check()
131 testing::internal::GetUnitTestImpl()->ClearAdHocTestResult(); in RunAllTests()
138 testing::InitGoogleTest(&argc, argv); in main()
143 Check(testing::AddGlobalTestEnvironment(env) == env, in main()
181 testing::GTEST_FLAG(filter) = "-*"; in main()
Dgtest-death-test_ex_test.cc57 << (testing::GTEST_FLAG(catch_exceptions) ? "enabled" : "disabled"); in TEST()
83 << (testing::GTEST_FLAG(catch_exceptions) ? "enabled" : "disabled"); in TEST()
90 testing::InitGoogleTest(&argc, argv); in main()
91 testing::GTEST_FLAG(catch_exceptions) = GTEST_ENABLE_CATCH_EXCEPTIONS_ != 0; in main()
Dgtest_filter_unittest_.cc47 class FooTest : public testing::Test {
121 class ParamTest : public testing::TestWithParam<int> {
130 INSTANTIATE_TEST_CASE_P(SeqP, ParamTest, testing::Values(1, 2));
131 INSTANTIATE_TEST_CASE_P(SeqQ, ParamTest, testing::Values(5, 6));
137 ::testing::InitGoogleTest(&argc, argv); in main()
Dgtest-message_test.cc40 using ::testing::Message;
67 EXPECT_PRED_FORMAT2(testing::IsSubstring, "1.234560", s.c_str()); in TEST()
68 EXPECT_PRED_FORMAT2(testing::IsSubstring, " 2.345669", s.c_str()); in TEST()
76 EXPECT_PRED_FORMAT2(testing::IsSubstring, "1260570880.45", s.c_str()); in TEST()
77 EXPECT_PRED_FORMAT2(testing::IsSubstring, " 1260572265.19", s.c_str()); in TEST()
151 EXPECT_EQ("Hello", testing::internal::StringStreamToString(&ss)); in TEST()
Dgtest-param-test_test.cc57 using ::testing::AddGlobalTestEnvironment;
58 using ::testing::Bool;
59 using ::testing::Message;
60 using ::testing::Range;
61 using ::testing::TestWithParam;
62 using ::testing::Values;
63 using ::testing::ValuesIn;
66 using ::testing::Combine;
72 using ::testing::internal::ParamGenerator;
73 using ::testing::internal::UnitTestOptions;
[all …]
Dgtest_unittest.cc41 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(random_seed) in TEST()
50 || testing::GTEST_FLAG(repeat) > 0 in TEST()
[all …]
Dgtest-param-test_test.h46 class ExternalInstantiationTest : public ::testing::TestWithParam<int> {
52 : public ::testing::TestWithParam<int> {
Dgtest_env_var_test_.cc45 namespace testing { namespace
117 testing::InitGoogleTest(&argc, argv); in main()
124 testing::PrintFlag(argv[1]); in main()
Dgtest-param-test2_test.cc41 using ::testing::Values;
42 using ::testing::internal::ParamGenerator;
/ndk/sources/third_party/googletest/googletest/samples/
Dsample10_unittest.cc39 using ::testing::EmptyTestEventListener;
40 using ::testing::InitGoogleTest;
41 using ::testing::Test;
42 using ::testing::TestCase;
43 using ::testing::TestEventListeners;
44 using ::testing::TestInfo;
45 using ::testing::TestPartResult;
46 using ::testing::UnitTest;
Dsample9_unittest.cc39 using ::testing::EmptyTestEventListener;
40 using ::testing::InitGoogleTest;
41 using ::testing::Test;
42 using ::testing::TestCase;
43 using ::testing::TestEventListeners;
44 using ::testing::TestInfo;
45 using ::testing::TestPartResult;
46 using ::testing::UnitTest;
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/diagnostics/syserr/syserr.errcode/syserr.errcode.constructors/
DErrorCodeEnum.pass.cpp19 enum testing enum
27 template <> struct is_error_code_enum<testing> : public std::true_type {};
32 make_error_code(testing x) in make_error_code()
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/diagnostics/syserr/syserr.errcode/syserr.errcode.modifiers/
DErrorCodeEnum.pass.cpp19 enum testing enum
27 template <> struct is_error_code_enum<testing> : public std::true_type {};
32 make_error_code(testing x) in make_error_code()

12345