Home
last modified time | relevance | path

Searched refs:testing (Results 1 – 25 of 722) 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 …]
/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/gfxstream/host/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 …]
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 …]
DGLSnapshotPixelOperations_unittest.cpp102 public ::testing::WithParamInterface<std::vector<GLint>> {
125 ::testing::Values(kGLES2TestScissorBox));
148 public ::testing::WithParamInterface<GLenum> {
152 public ::testing::WithParamInterface<GLuint> {
184 ::testing::ValuesIn(kGLES2StencilFuncs));
188 ::testing::ValuesIn(kGLES2TestStencilMasks));
212 public ::testing::WithParamInterface<GLenum> {
217 public ::testing::WithParamInterface<GLenum> {};
221 public ::testing::WithParamInterface<GLenum> {};
243 ::testing::ValuesIn(kGLES2StencilOps));
[all …]
DGLTestUtils.cpp21 testing::AssertionResult RowMatches(int rowIndex, size_t rowBytes, in RowMatches()
25 return testing::AssertionFailure() in RowMatches()
28 << "(" << testing::PrintToString(expected[i]) in RowMatches()
30 << "(" << testing::PrintToString(actual[i]) << ")"; in RowMatches()
33 return testing::AssertionSuccess(); in RowMatches()
36 testing::AssertionResult ImageMatches(int width, int height, int bpp, int rowLength, in ImageMatches()
44 testing::AssertionResult rowResult = RowMatches( in ImageMatches()
60 return testing::AssertionFailure() in ImageMatches()
65 return testing::AssertionSuccess(); in ImageMatches()
/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());
/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/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/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/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/graphics/common/libion/test/
Dion_device_test.cpp49 … SCOPED_TRACE(::testing::Message() << "heap " << getHeapName(i) << " mask " << getHeapMask(i)); in TEST_F()
50 SCOPED_TRACE(::testing::Message() << "size " << size); in TEST_F()
86 … SCOPED_TRACE(::testing::Message() << "heap " << getHeapName(i) << " mask " << getHeapMask(i)); in TEST_F()
87 SCOPED_TRACE(::testing::Message() << "size " << size); in TEST_F()
124 … SCOPED_TRACE(::testing::Message() << "heap " << getHeapName(i) << " mask " << getHeapMask(i)); in TEST_F()
125 SCOPED_TRACE(::testing::Message() << "size " << size); in TEST_F()
161 … SCOPED_TRACE(::testing::Message() << "heap " << getHeapName(i) << " mask " << getHeapMask(i)); in TEST_F()
162 SCOPED_TRACE(::testing::Message() << "size " << size); in TEST_F()
199 … SCOPED_TRACE(::testing::Message() << "heap " << getHeapName(i) << " mask " << getHeapMask(i)); in TEST_F()
200 SCOPED_TRACE(::testing::Message() << "size " << size); in TEST_F()
[all …]
/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/google/gfxstream/host/
DCMakeLists.txt189 aemu-host-common-testing-support
196 # Common testing support library################################################
197 # This includes the server core and testing sources
199 stream-server-testing-support
209 stream-server-testing-support
219 stream-server-testing-support
221 aemu-host-common-testing-support
222 aemu-base-testing-support
250 stream-server-testing-support
251 aemu-host-common-testing-support
[all …]
/hardware/interfaces/cas/1.1/vts/functional/
DVtsHalCasV1_1TargetTest.cpp256 class MediaCasHidlTest : public testing::TestWithParam<std::string> {
288 ::testing::AssertionResult createCasPlugin(int32_t caSystemId);
289 ::testing::AssertionResult openCasSession(std::vector<uint8_t>* sessionId);
290 ::testing::AssertionResult descrambleTestInputBuffer(const sp<IDescrambler>& descrambler,
293 ::testing::AssertionResult descrambleTestOobInput(const sp<IDescrambler>& descrambler,
298 ::testing::AssertionResult MediaCasHidlTest::createCasPlugin(int32_t caSystemId) { in createCasPlugin()
302 return ::testing::AssertionFailure(); in createCasPlugin()
307 return ::testing::AssertionFailure(); in createCasPlugin()
318 return ::testing::AssertionFailure(); in createCasPlugin()
322 return ::testing::AssertionFailure(); in createCasPlugin()
[all …]
/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