Home
last modified time | relevance | path

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

12345678910>>...15

/device/generic/vulkan-cereal/third-party/googletest/googletest/include/gtest/
Dgtest-spi.h41 namespace testing {
147 ::testing::TestPartResultArray gtest_failures;\
148 ::testing::internal::SingleFailureChecker gtest_checker(\
149 &gtest_failures, ::testing::TestPartResult::kFatalFailure, (substr));\
151 ::testing::ScopedFakeTestPartResultReporter gtest_reporter(\
152 ::testing::ScopedFakeTestPartResultReporter:: \
156 } while (::testing::internal::AlwaysFalse())
164 ::testing::TestPartResultArray gtest_failures;\
165 ::testing::internal::SingleFailureChecker gtest_checker(\
166 &gtest_failures, ::testing::TestPartResult::kFatalFailure, (substr));\
[all …]
Dgtest-typed-test.h48 class FooTest : public testing::Test {
59 typedef testing::Types<char, int, unsigned int> MyTypes;
126 class FooTest : public testing::Test {
160 typedef testing::Types<char, int, unsigned int> MyTypes;
192 typedef ::testing::internal::GenerateTypeList<Types>::type \
194 typedef ::testing::internal::NameGeneratorSelector<__VA_ARGS__>::type \
209 GTEST_ATTRIBUTE_UNUSED_ = ::testing::internal::TypeParameterizedTest< \
211 ::testing::internal::TemplateSel<GTEST_TEST_CLASS_NAME_(CaseName, \
215 ::testing::internal::CodeLocation( \
219 ::testing::internal::GenerateNames< \
[all …]
Dgtest-param-test.h55 class FooTest : public ::testing::TestWithParam<const char*> {
157 class BaseTest : public ::testing::Test {
162 class DerivedTest : public BaseTest, public ::testing::WithParamInterface<int> {
184 namespace testing {
421 ::testing::UnitTest::GetInstance() \
425 ::testing::internal::CodeLocation(__FILE__, __LINE__)) \
428 new ::testing::internal::TestMetaFactory<GTEST_TEST_CLASS_NAME_( \
430 ::testing::internal::CodeLocation(__FILE__, __LINE__)); \
460 static ::testing::internal::ParamGenerator<test_suite_name::ParamType> \
465 const ::testing::TestParamInfo<test_suite_name::ParamType>& info) { \
[all …]
Dgtest_pred_impl.h46 namespace testing {
82 if (const ::testing::AssertionResult gtest_ar = (expression)) \
101 << e1 << " evaluates to " << ::testing::PrintToString(v1); in AssertPred1Helper()
113 GTEST_ASSERT_(::testing::AssertPred1Helper(#pred, \
147 << e1 << " evaluates to " << ::testing::PrintToString(v1) << "\n" in AssertPred2Helper()
148 << e2 << " evaluates to " << ::testing::PrintToString(v2); in AssertPred2Helper()
160 GTEST_ASSERT_(::testing::AssertPred2Helper(#pred, \
199 << e1 << " evaluates to " << ::testing::PrintToString(v1) << "\n" in AssertPred3Helper()
200 << e2 << " evaluates to " << ::testing::PrintToString(v2) << "\n" in AssertPred3Helper()
201 << e3 << " evaluates to " << ::testing::PrintToString(v3); in AssertPred3Helper()
[all …]
Dgtest.h160 namespace testing {
1736 ::testing::TestPartResult::kNonFatalFailure)
1744 ::testing::TestPartResult::kFatalFailure)
1865 EXPECT_PRED_FORMAT2(::testing::internal::EqHelper::Compare, val1, val2)
1867 EXPECT_PRED_FORMAT2(::testing::internal::CmpHelperNE, val1, val2)
1869 EXPECT_PRED_FORMAT2(::testing::internal::CmpHelperLE, val1, val2)
1871 EXPECT_PRED_FORMAT2(::testing::internal::CmpHelperLT, val1, val2)
1873 EXPECT_PRED_FORMAT2(::testing::internal::CmpHelperGE, val1, val2)
1875 EXPECT_PRED_FORMAT2(::testing::internal::CmpHelperGT, val1, val2)
1878 ASSERT_PRED_FORMAT2(::testing::internal::EqHelper::Compare, val1, val2)
[all …]
/device/generic/vulkan-cereal/third-party/googletest/googletest/test/
Dgoogletest-output-test_.cc47 using testing::ScopedFakeTestPartResultReporter;
48 using testing::TestPartResultArray;
50 using testing::internal::Notification;
51 using testing::internal::ThreadWithParam;
54 namespace posix = ::testing::internal::posix;
73 if (testing::Test::HasFatalFailure()) return; in TryTestSubroutine()
87 class FailingParamTest : public testing::TestWithParam<int> {};
97 testing::Values(2));
101 class EmptyBasenameParamInst : public testing::TestWithParam<int> {};
105 INSTANTIATE_TEST_SUITE_P(, EmptyBasenameParamInst, testing::Values(1));
[all …]
Dgoogletest-param-test-test.cc51 using ::testing::AddGlobalTestEnvironment;
52 using ::testing::Bool;
53 using ::testing::Combine;
54 using ::testing::Message;
55 using ::testing::Range;
56 using ::testing::TestWithParam;
57 using ::testing::Values;
58 using ::testing::ValuesIn;
60 using ::testing::internal::ParamGenerator;
61 using ::testing::internal::UnitTestOptions;
[all …]
Dgoogletest-death-test-test.cc38 using testing::internal::AlwaysFalse;
39 using testing::internal::AlwaysTrue;
63 namespace posix = ::testing::internal::posix;
65 using testing::ContainsRegex;
66 using testing::Matcher;
67 using testing::Message;
68 using testing::internal::DeathTest;
69 using testing::internal::DeathTestFactory;
70 using testing::internal::FilePath;
71 using testing::internal::GetLastErrnoDescription;
[all …]
Dgtest_xml_output_unittest_.cc41 using ::testing::InitGoogleTest;
42 using ::testing::TestEventListeners;
43 using ::testing::TestWithParam;
44 using ::testing::UnitTest;
45 using ::testing::Test;
46 using ::testing::Values;
143 testing::Test::RecordProperty(key, value); in ExternalUtilityThatCallsRecordProperty()
148 testing::Test::RecordProperty(key, value); in ExternalUtilityThatCallsRecordProperty()
169 typedef testing::Types<int, long> TypedTestTypes;
180 typedef testing::Types<int, long> TypeParameterizedTestSuiteTypes; // NOLINT
[all …]
Dgoogletest-failfast-unittest_.cc46 class HasFixtureTest : public testing::Test {};
116 class HasParametersTest : public testing::TestWithParam<int> {};
123 testing::Values(1, 2));
125 class MyTestListener : public ::testing::EmptyTestEventListener {
126 void OnTestSuiteStart(const ::testing::TestSuite& test_suite) override { in OnTestSuiteStart()
130 void OnTestStart(const ::testing::TestInfo& test_info) override { in OnTestStart()
136 const ::testing::TestPartResult& test_part_result) override { in OnTestPartResult()
141 void OnTestEnd(const ::testing::TestInfo& test_info) override { in OnTestEnd()
146 void OnTestSuiteEnd(const ::testing::TestSuite& test_suite) override { in OnTestSuiteEnd()
164 ::testing::InitGoogleTest(&argc, argv); in main()
[all …]
Dgoogletest-listener-test.cc40 using ::testing::AddGlobalTestEnvironment;
41 using ::testing::Environment;
42 using ::testing::InitGoogleTest;
43 using ::testing::Test;
44 using ::testing::TestSuite;
45 using ::testing::TestEventListener;
46 using ::testing::TestInfo;
47 using ::testing::TestPartResult;
48 using ::testing::UnitTest;
53 namespace testing { namespace
[all …]
Dgtest_list_output_unittest_.cc47 class FooTestFixture : public ::testing::Test {};
51 class ValueParamTest : public ::testing::TestWithParam<int> {};
54 INSTANTIATE_TEST_SUITE_P(ValueParam, ValueParamTest, ::testing::Values(33, 42));
57 class TypedTest : public ::testing::Test {};
58 typedef testing::Types<int, bool> TypedTestTypes;
64 class TypeParameterizedTestSuite : public ::testing::Test {};
69 typedef testing::Types<int, bool> TypeParameterizedTestSuiteTypes; // NOLINT
74 ::testing::InitGoogleTest(&argc, argv); in main()
Dgtest_unittest.cc72 namespace testing { namespace
192 using testing::AssertionFailure;
193 using testing::AssertionResult;
194 using testing::AssertionSuccess;
195 using testing::DoubleLE;
196 using testing::EmptyTestEventListener;
197 using testing::Environment;
198 using testing::FloatLE;
199 using testing::IsNotSubstring;
200 using testing::IsSubstring;
[all …]
/device/generic/vulkan-cereal/third-party/googletest/googlemock/test/
Dgmock_link_test.h130 using testing::_;
131 using testing::A;
132 using testing::Action;
133 using testing::AllOf;
134 using testing::AnyOf;
135 using testing::Assign;
136 using testing::ContainerEq;
137 using testing::DoAll;
138 using testing::DoDefault;
139 using testing::DoubleEq;
[all …]
/device/generic/vulkan-cereal/third-party/angle/src/tests/preprocessor_tests/
Dnumber_test.cpp15 #define CLOSED_RANGE(x, y) testing::Range(x, static_cast<char>((y) + 1))
18 public testing::WithParamInterface<const char *>
25 using testing::_; in TEST_P()
31 INSTANTIATE_TEST_SUITE_P(InvalidIntegers, InvalidNumberTest, testing::Values("1a", "08", "0xG"));
35 testing::Values("1eg", "0.a", "0.1.2", ".0a", ".0.1"));
38 class IntegerTest : public SimplePreprocessorTest, public testing::WithParamInterface<IntegerParams>
55 testing::Combine(testing::Values(""), CLOSED_RANGE('0', '9')));
59 testing::Combine(testing::Values("0"), CLOSED_RANGE('0', '7')));
63 testing::Combine(testing::Values("0x", "0X"), CLOSED_RANGE('0', '9')));
67 testing::Combine(testing::Values("0x", "0X"), CLOSED_RANGE('a', 'f')));
[all …]
Didentifier_test.cpp15 #define CLOSED_RANGE(x, y) testing::Range(x, static_cast<char>((y) + 1))
31 class SingleLetterIdentifierTest : public IdentifierTest, public testing::WithParamInterface<char>
42 INSTANTIATE_TEST_SUITE_P(Underscore, SingleLetterIdentifierTest, testing::Values('_'));
52 public testing::WithParamInterface<IdentifierParams>
68 testing::Combine(testing::Values('_'), testing::Values('_')));
73 testing::Combine(testing::Values('_'), CLOSED_RANGE('a', 'z')));
78 testing::Combine(testing::Values('_'), CLOSED_RANGE('A', 'Z')));
83 testing::Combine(testing::Values('_'), CLOSED_RANGE('0', '9')));
88 testing::Combine(CLOSED_RANGE('a', 'z'), testing::Values('_')));
93 testing::Combine(CLOSED_RANGE('a', 'z'), CLOSED_RANGE('a', 'z')));
[all …]
Dversion_test.cpp21 using testing::_; in TEST_F()
35 using testing::_; in TEST_F()
58 using testing::_; in TEST_F()
71 using testing::_; in TEST_F()
88 using testing::_; in TEST_F()
105 using testing::_; in TEST_F()
120 using testing::_; in TEST_F()
133 using testing::_; in TEST_F()
148 using testing::_; in TEST_F()
161 using testing::_; in TEST_F()
[all …]
Dpragma_test.cpp21 using testing::_; in TEST_F()
35 using testing::_; in TEST_F()
48 using testing::_; in TEST_F()
61 using testing::_; in TEST_F()
74 using testing::_; in TEST_F()
103 using testing::_; in TEST_F()
116 using testing::_; in TEST_F()
125 class InvalidPragmaTest : public PragmaTest, public testing::WithParamInterface<const char *>
133 using testing::_; in TEST_P()
145 testing::Values("#pragma 1\n", // Invalid name.
/device/generic/vulkan-cereal/third-party/googletest/googletest/include/gtest/internal/
Dgtest-death-test-internal.h50 namespace testing {
172 ::testing::internal::RE regex) { in MakeDeathTestMatcher()
201 ::testing::internal::FormatFileLocation(__FILE__, __LINE__).c_str(), \
204 death_test->Abort(::testing::internal::DeathTest::TEST_THREW_EXCEPTION); \
206 death_test->Abort(::testing::internal::DeathTest::TEST_THREW_EXCEPTION); \
219 if (::testing::internal::AlwaysTrue()) { \
220 ::testing::internal::DeathTest* gtest_dt; \
221 if (!::testing::internal::DeathTest::Create( \
223 ::testing::internal::MakeDeathTestMatcher(regex_or_matcher), \
228 std::unique_ptr< ::testing::internal::DeathTest> gtest_dt_ptr(gtest_dt); \
[all …]
/device/generic/vulkan-cereal/stream-servers/tests/
DGLSnapshotTesting.cpp47 testing::AssertionResult compareValue(T expected, in compareValue()
51 return testing::AssertionFailure() in compareValue()
53 << testing::PrintToString(actual) << "\n\t expected:\t" in compareValue()
54 << testing::PrintToString(expected) << "\t"; in compareValue()
56 return testing::AssertionSuccess(); in compareValue()
59 template testing::AssertionResult compareValue<GLboolean>(GLboolean,
62 template testing::AssertionResult compareValue<GLint>(GLint,
65 template testing::AssertionResult compareValue<GLfloat>(GLfloat,
69 testing::AssertionResult compareGlobalGlBoolean(const GLESv2Dispatch* gl, in compareGlobalGlBoolean()
80 testing::AssertionResult compareGlobalGlInt(const GLESv2Dispatch* gl, in compareGlobalGlInt()
[all …]
DGLSnapshotPixelOperations_unittest.cpp65 public ::testing::WithParamInterface<std::vector<GLint>> {
88 ::testing::Values(kGLES2TestScissorBox));
111 public ::testing::WithParamInterface<GLenum> {
115 public ::testing::WithParamInterface<GLuint> {
147 ::testing::ValuesIn(kGLES2StencilFuncs));
151 ::testing::ValuesIn(kGLES2TestStencilMasks));
175 public ::testing::WithParamInterface<GLenum> {
180 public ::testing::WithParamInterface<GLenum> {};
184 public ::testing::WithParamInterface<GLenum> {};
206 ::testing::ValuesIn(kGLES2StencilOps));
[all …]
/device/generic/vulkan-cereal/third-party/angle/src/tests/test_utils/
DShaderExtensionTest.h15 using testing::Combine;
16 using testing::make_tuple;
17 using testing::Values;
27 : public testing::TestWithParam<testing::tuple<ShShaderSpec, const char *, const char *>>
49 mCompiler = sh::ConstructCompiler(GL_FRAGMENT_SHADER, testing::get<0>(GetParam()), in InitializeCompiler()
54 testing::AssertionResult TestShaderCompile(const char *pragma) in TestShaderCompile()
56 return TestShaderCompile(testing::get<1>(GetParam()), // Version. in TestShaderCompile()
58 testing::get<2>(GetParam()) // Shader. in TestShaderCompile()
62 testing::AssertionResult TestShaderCompile(const char *version, in TestShaderCompile()
70 return ::testing::AssertionSuccess() << "Compilation success"; in TestShaderCompile()
[all …]
Dangle_test_instantiate.h89 std::string operator()(const testing::TestParamInfo<ParamType> &info) const in operator()
91 std::string name = testing::PrintToStringParamName()(info); in operator()
109 testing::ValuesIn(::angle::FilterTestParams(testName##__VA_ARGS__##params, \
117 testing::PrintToStringParamName())
120 INSTANTIATE_TEST_SUITE_P(, testName, testing::ValuesIn(::angle::FilterTestParams(valuesin)), \
121 testing::PrintToStringParamName())
142 testing::PrintToStringParamName())
148 testing::PrintToStringParamName())
154 testing::PrintToStringParamName())
159 testing::PrintToStringParamName())
[all …]
/device/generic/vulkan-cereal/stream-servers/
DCMakeLists.txt133 # Common testing support library################################################
134 # This includes the server core and testing sources
136 stream-server-testing-support
146 stream-server-testing-support
149 ${GFXSTREAM_REPO_ROOT}/base/testing
155 stream-server-testing-support
181 stream-server-testing-support
182 gfxstream-base-testing-support
183 gfxstream-host-common-testing-support
214 stream-server-testing-support
[all …]
/device/generic/vulkan-cereal/third-party/googletest/googletest/samples/
Dsample9_unittest.cc38 using ::testing::EmptyTestEventListener;
39 using ::testing::InitGoogleTest;
40 using ::testing::Test;
41 using ::testing::TestSuite;
42 using ::testing::TestEventListeners;
43 using ::testing::TestInfo;
44 using ::testing::TestPartResult;
45 using ::testing::UnitTest;
139 const testing::TestSuite& test_suite = *unit_test.GetTestSuite(i); in main()

12345678910>>...15