Home
last modified time | relevance | path

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

12345678910>>...29

/hardware/interfaces/audio/aidl/vts/
DTestUtils.h26 namespace android::hardware::audio::common::testing {
30 class TestExecutionTracer : public ::testing::EmptyTestEventListener {
32 void OnTestStart(const ::testing::TestInfo& test_info) override;
33 void OnTestEnd(const ::testing::TestInfo& test_info) override;
34 void OnTestPartResult(const ::testing::TestPartResult& result) override;
36 static void TraceTestState(const std::string& state, const ::testing::TestInfo& test_info);
39 inline ::testing::AssertionResult assertIsOk(const char* expr, const ::ndk::ScopedAStatus& status) { in assertIsOk()
41 return ::testing::AssertionSuccess(); in assertIsOk()
43 return ::testing::AssertionFailure() in assertIsOk()
48 inline ::testing::AssertionResult assertResult(const char* exp_expr, const char* act_expr, in assertResult()
[all …]
DTestUtils.cpp23 namespace android::hardware::audio::common::testing { namespace
26 void TestExecutionTracer::OnTestStart(const ::testing::TestInfo& test_info) { in OnTestStart()
30 void TestExecutionTracer::OnTestEnd(const ::testing::TestInfo& test_info) { in OnTestEnd()
34 void TestExecutionTracer::OnTestPartResult(const ::testing::TestPartResult& result) { in OnTestPartResult()
39 const ::testing::TestInfo& test_info) { in TraceTestState()
/hardware/interfaces/audio/common/all-versions/test/utility/include/utility/
DAssertOk.h38 inline ::testing::AssertionResult assertIsOk(const char* expr, const Return<T>& ret) { in assertIsOk()
39 return ::testing::AssertionResult(ret.isOk()) in assertIsOk()
45 inline ::testing::AssertionResult continueIfIsOk(const char* expr, const Return<T>& ret, in continueIfIsOk()
53 inline ::testing::AssertionResult assertResult(const char* e_expr, const char* r_expr, in assertResult()
55 return ::testing::AssertionResult(expected == result) in assertResult()
56 << "Value of: " << r_expr << "\n Actual: " << ::testing::PrintToString(result) in assertResult()
57 << "\nExpected: " << e_expr << "\nWhich is: " << ::testing::PrintToString(expected); in assertResult()
62 inline ::testing::AssertionResult assertResult(const char* e_expr, const char* r_expr, in assertResult()
70 inline ::testing::AssertionResult assertResult(const char* e_expr, const char* r_expr, in assertResult()
74 return ::testing::AssertionSuccess(); // result is in expected in assertResult()
[all …]
DDocumentation.h32 return ::testing::UnitTest::GetInstance()->current_test_info()->name(); in getTestName()
46 ::testing::Test::RecordProperty("description", testCaseDocumentation); in test()
53 ::testing::Test::RecordProperty("partialyRunTest", reason); in partialTest()
59 ::testing::Test::RecordProperty("note", note); in note()
/hardware/interfaces/radio/aidl/vts/
DVtsHalRadioTargetTest.cpp33 testing::ValuesIn(android::getAidlHalInstanceNames(IRadioConfig::descriptor)),
39 testing::ValuesIn(android::getAidlHalInstanceNames(IRadioData::descriptor)),
45 testing::ValuesIn(android::getAidlHalInstanceNames(IRadioMessaging::descriptor)),
51 testing::ValuesIn(android::getAidlHalInstanceNames(IRadioModem::descriptor)),
57 testing::ValuesIn(android::getAidlHalInstanceNames(IRadioNetwork::descriptor)),
62 testing::ValuesIn(android::getAidlHalInstanceNames(ISap::descriptor)),
67 testing::ValuesIn(android::getAidlHalInstanceNames(IRadioSim::descriptor)),
73 testing::ValuesIn(android::getAidlHalInstanceNames(IRadioVoice::descriptor)),
79 testing::ValuesIn(android::getAidlHalInstanceNames(IRadioIms::descriptor)),
84 testing::ValuesIn(android::getAidlHalInstanceNames(IImsMedia::descriptor)),
[all …]
Dradio_aidl_hal_utils.cpp34 ::testing::AssertionResult CheckAnyOfErrors(RadioError err, std::vector<RadioError> errors, in CheckAnyOfErrors()
43 return testing::AssertionSuccess(); in CheckAnyOfErrors()
49 return testing::AssertionSuccess(); in CheckAnyOfErrors()
54 return testing::AssertionSuccess(); in CheckAnyOfErrors()
57 return testing::AssertionFailure() << "RadioError:" + toString(err) + " is returned"; in CheckAnyOfErrors()
91 return testing::checkSubstringInCommandOutput("getprop persist.radio.multisim.config", "dsds"); in isDsDsEnabled()
95 return testing::checkSubstringInCommandOutput("getprop persist.radio.multisim.config", "dsda"); in isDsDaEnabled()
99 return testing::checkSubstringInCommandOutput("getprop persist.radio.multisim.config", "tsts"); in isTsTsEnabled()
147 ALOGD("BEGIN %s#%s", ::testing::UnitTest::GetInstance()->current_test_info()->test_suite_name(), in SetUp()
148 ::testing::UnitTest::GetInstance()->current_test_info()->name()); in SetUp()
[all …]
/hardware/interfaces/tv/tuner/config/api/
Dcurrent.txt2 package android.media.tuner.testing.configuration.V1_0 {
26 …method @Nullable public android.media.tuner.testing.configuration.V1_0.DataFlowConfiguration.Clear…
27 …method @Nullable public android.media.tuner.testing.configuration.V1_0.DataFlowConfiguration.Descr…
28 …method @Nullable public android.media.tuner.testing.configuration.V1_0.DataFlowConfiguration.DvrPl…
29 …method @Nullable public android.media.tuner.testing.configuration.V1_0.DataFlowConfiguration.DvrRe…
30 …method @Nullable public android.media.tuner.testing.configuration.V1_0.DataFlowConfiguration.LnbDe…
31 …method @Nullable public android.media.tuner.testing.configuration.V1_0.DataFlowConfiguration.LnbLi…
32 …method @Nullable public android.media.tuner.testing.configuration.V1_0.DataFlowConfiguration.LnbRe…
33 …method @Nullable public android.media.tuner.testing.configuration.V1_0.DataFlowConfiguration.Scan …
34 …method @Nullable public android.media.tuner.testing.configuration.V1_0.DataFlowConfiguration.TimeF…
[all …]
/hardware/google/aemu/base/include/aemu/base/testing/
DResultMatchers.h29 *os << "Ok(" << ::testing::PrintToString(param.ok().value()) << ")"; in PrintTo()
31 *os << "Err(" << ::testing::PrintToString(param.err().value()) << ")"; in PrintTo()
40 *os << "Err(" << ::testing::PrintToString(param.err().value()) << ")"; in PrintTo()
48 MATCHER_P(IsOk, value, "Ok(" + ::testing::PrintToString(value) + ")") {
53 return ::testing::Matches(value)(arg.ok().value());
56 MATCHER_P(IsErr, err, "Err(" + ::testing::PrintToString(err) + ")") {
61 return ::testing::Matches(err)(arg.err().value());
DProtobufMatchers.h318 ::testing::MatchResultListener* listener) const = 0;
360 ::testing::MatchResultListener* listener) const { in MatchAndExplain()
365 ::testing::MatchResultListener* listener) const { in MatchAndExplain()
427 ::testing::MatchResultListener* listener) const;
461 ::testing::internal::UniversalPrint(*expected_, os); in PrintExpectedTo()
466 ::testing::MatchResultListener* /* listener */) const { in CreateExpectedProto()
493 const google::protobuf::Message& arg, ::testing::MatchResultListener* listener) const { in CreateExpectedProto()
528 typedef ::testing::PolymorphicMatcher<ProtoMatcher> PolymorphicProtoMatcher;
535 typedef ::testing::Matcher<const Proto&> InnerMatcher;
581 ::testing::MatchResultListener* listener) const { in MatchAndExplain()
[all …]
/hardware/google/gfxstream/host/tests/
DGLSnapshotTesting.cpp49 testing::AssertionResult compareValue(T expected, in compareValue()
53 return testing::AssertionFailure() in compareValue()
55 << testing::PrintToString(actual) << "\n\t expected:\t" in compareValue()
56 << testing::PrintToString(expected) << "\t"; in compareValue()
58 return testing::AssertionSuccess(); in compareValue()
61 template testing::AssertionResult compareValue<GLboolean>(GLboolean,
64 template testing::AssertionResult compareValue<GLint>(GLint,
67 template testing::AssertionResult compareValue<GLfloat>(GLfloat,
71 testing::AssertionResult compareGlobalGlBoolean(const GLESv2Dispatch* gl, in compareGlobalGlBoolean()
82 testing::AssertionResult compareGlobalGlInt(const GLESv2Dispatch* gl, in compareGlobalGlInt()
[all …]
DGLSnapshot_unittest.cpp27 public ::testing::WithParamInterface<GLenum> {
43 ::testing::ValuesIn(kGLES2CanBeEnabled));
46 public ::testing::WithParamInterface<GLenum> {
62 ::testing::ValuesIn(kGLES2CanBeDisabled));
65 public ::testing::WithParamInterface<GLenum> {
81 ::testing::ValuesIn(kGLES2GenerateMipmapHints));
DGLSnapshotTesting.h101 testing::AssertionResult compareValue(T expected,
107 testing::AssertionResult compareGlobalGlBoolean(const GLESv2Dispatch* gl,
113 testing::AssertionResult compareGlobalGlInt(const GLESv2Dispatch* gl,
117 testing::AssertionResult compareGlobalGlInt_i(const GLESv2Dispatch* gl,
123 testing::AssertionResult compareGlobalGlFloat(const GLESv2Dispatch* gl,
133 testing::AssertionResult compareVector(
141 testing::AssertionResult compareGlobalGlBooleanv(
147 testing::AssertionResult compareGlobalGlBooleanv_i(
158 testing::AssertionResult compareGlobalGlIntv(const GLESv2Dispatch* gl,
163 testing::AssertionResult compareGlobalGlIntv_i(const GLESv2Dispatch* gl,
[all …]
DGLSnapshotPixels_unittest.cpp25 public ::testing::WithParamInterface<GLuint> {
41 ::testing::Values(1, 2, 4, 8));
45 public ::testing::WithParamInterface<GLuint> {
61 ::testing::Values(1, 2, 4, 8));
/hardware/interfaces/audio/common/all-versions/test/utility/src/
DValidateXml.cpp92 ::testing::AssertionResult validateXml(const char* xmlFilePathExpr, const char* xsdFilePathExpr, in validateXml()
105 return ::testing::AssertionFailure() << "Failed to parse schema (xsd)\n" << context(); in validateXml()
110 return ::testing::AssertionFailure() << "Failed to parse xml\n" << context(); in validateXml()
115 return ::testing::AssertionFailure() << "Failed to resolve xincludes in xml\n" << context(); in validateXml()
121 return ::testing::AssertionFailure() << "XML is not valid according to the xsd\n" in validateXml()
125 return ::testing::AssertionFailure() << "Internal or API error\n" << context(); in validateXml()
128 return ::testing::AssertionSuccess(); in validateXml()
132 ::testing::AssertionResult validateXmlMultipleLocations( in validateXmlMultipleLocations()
158 return ::testing::AssertionResult(errors.empty()) in validateXmlMultipleLocations()
164 << "\n Which is: " << ::testing::PrintToString(xmlFileLocations) in validateXmlMultipleLocations()
[all …]
/hardware/interfaces/radio/1.0/vts/functional/
Dvts_test_util.cpp28 ::testing::AssertionResult CheckAnyOfErrors(RadioError err, std::vector<RadioError> errors, in CheckAnyOfErrors()
37 return testing::AssertionSuccess(); in CheckAnyOfErrors()
43 return testing::AssertionSuccess(); in CheckAnyOfErrors()
48 return testing::AssertionSuccess(); in CheckAnyOfErrors()
51 return testing::AssertionFailure() << "RadioError:" + toString(err) + " is returned"; in CheckAnyOfErrors()
54 ::testing::AssertionResult CheckAnyOfErrors(SapResultCode err, std::vector<SapResultCode> errors) { in CheckAnyOfErrors()
57 return testing::AssertionSuccess(); in CheckAnyOfErrors()
60 return testing::AssertionFailure() << "SapError:" + toString(err) + " is returned"; in CheckAnyOfErrors()
94 return testing::checkSubstringInCommandOutput("getprop persist.radio.multisim.config", "dsds"); in isDsDsEnabled()
98 return testing::checkSubstringInCommandOutput("getprop persist.radio.multisim.config", "tsts"); in isTsTsEnabled()
[all …]
/hardware/interfaces/wifi/aidl/default/tests/
Dwifi_iface_util_unit_tests.cpp26 using testing::NiceMock;
27 using testing::Test;
68 EXPECT_CALL(*iface_tool_, SetMacAddress(testing::_, testing::_)) in TEST_F()
69 .WillRepeatedly(testing::Return(true)); in TEST_F()
70 EXPECT_CALL(*iface_tool_, SetUpState(testing::_, testing::_)) in TEST_F()
71 .WillRepeatedly(testing::Return(true)); in TEST_F()
/hardware/interfaces/audio/core/all-versions/vts/functional/tests/
Dgenerators_tests.cpp88 class GeneratorsTest : public ::testing::TestWithParam<std::string> {
93 << "Audio format is invalid " << ::testing::PrintToString(config.format); in validateConfig()
96 << "Audio channel mask is invalid " << ::testing::PrintToString(config.channelMask); in validateConfig()
99 << "Audio format is invalid " << ::testing::PrintToString(config.base.format); in validateConfig()
102 << ::testing::PrintToString(config.base.channelMask); in validateConfig()
133 ::testing::Values("apm_config_no_vx.xml", "apm_config_with_vx.xml"
164 ::testing::PrintToString(config.format) << ", " in TEST()
165 << ::testing::PrintToString(config.sampleRateHz) << ", " in TEST()
166 << ::testing::PrintToString(config.channelMask); in TEST()
168 ::testing::PrintToString(config.base.format) << ", " in TEST()
[all …]
/hardware/interfaces/drm/1.3/vts/functional/
Ddrm_hal_test_main.cpp86 testing::ValuesIn(kAllInstances),
90 testing::ValuesIn(kAllInstances),
94 testing::ValuesIn(kAllInstances),
99 testing::ValuesIn(kAllInstances),
103 testing::ValuesIn(kAllInstances),
107 testing::ValuesIn(kAllInstances),
112 testing::ValuesIn(kAllInstances),
117 testing::ValuesIn(kAllInstances),
121 testing::ValuesIn(kAllInstances),
126 testing::ValuesIn(kAllInstances),
[all …]
/hardware/interfaces/audio/aidl/sounddose/vts/
DVtsHalSoundDoseFactoryTargetTest.cpp27 namespace android::hardware::audio::common::testing { namespace
31 inline ::testing::AssertionResult assertIsOk(const char* expr, const ::ndk::ScopedAStatus& status) { in assertIsOk()
33 return ::testing::AssertionSuccess(); in assertIsOk()
35 return ::testing::AssertionFailure() in assertIsOk()
46 EXPECT_PRED_FORMAT1(::android::hardware::audio::common::testing::detail::assertIsOk, ret)
53 class SoundDoseFactory : public testing::TestWithParam<std::string> {
95 testing::ValuesIn(android::getAidlHalInstanceNames(ISoundDoseFactory::descriptor)),
/hardware/interfaces/tetheroffload/control/1.1/vts/functional/
DVtsHalTetheroffloadControlV1_1TargetTest.cpp66 testing::Combine(testing::ValuesIn(android::hardware::getAllHalInstanceNames(
68 testing::ValuesIn(android::hardware::getAllHalInstanceNames(
74 testing::Combine(testing::ValuesIn(android::hardware::getAllHalInstanceNames(
76 testing::ValuesIn(android::hardware::getAllHalInstanceNames(
/hardware/google/gfxstream/host/vulkan/
DVkEmulatedPhysicalDeviceQueueTests.cpp28 using ::testing::AllOf;
29 using ::testing::ElementsAreArray;
30 using ::testing::Eq;
31 using ::testing::ExplainMatchResult;
32 using ::testing::Field;
33 using ::testing::Matcher;
34 using ::testing::Optional;
/hardware/libhardware/modules/camera/3_4/metadata/
Dstate_test.cpp27 using testing::AtMost;
28 using testing::DoAll;
29 using testing::Expectation;
30 using testing::Return;
31 using testing::SetArgPointee;
32 using testing::Test;
33 using testing::_;
/hardware/google/aemu/host-common/
Dlogging_unittest.cpp25 using ::testing::EndsWith;
26 using ::testing::HasSubstr;
27 using ::testing::Not;
28 using ::testing::StartsWith;
29 using ::testing::internal::CaptureStderr;
30 using ::testing::internal::CaptureStdout;
31 using ::testing::internal::GetCapturedStderr;
32 using ::testing::internal::GetCapturedStdout;
/hardware/interfaces/neuralnetworks/1.0/vts/functional/
DGeneratedTestHarness.h30 class GeneratedTestBase : public testing::TestWithParam<GeneratedTestParam> {
43 std::string printGeneratedTest(const testing::TestParamInfo<GeneratedTestParam>& info);
48 testing::Combine(testing::ValuesIn(getNamedDevices()), \
49 testing::ValuesIn(getNamedModels(filter))), \
/hardware/interfaces/neuralnetworks/1.1/vts/functional/
DGeneratedTestHarness.h30 class GeneratedTestBase : public testing::TestWithParam<GeneratedTestParam> {
43 std::string printGeneratedTest(const testing::TestParamInfo<GeneratedTestParam>& info);
48 testing::Combine(testing::ValuesIn(getNamedDevices()), \
49 testing::ValuesIn(getNamedModels(filter))), \

12345678910>>...29