Home
last modified time | relevance | path

Searched refs:ASSERT_TRUE (Results 1 – 25 of 29) sorted by relevance

12

/cts/suite/audio_quality/test/
DTaskCaseTest.cpp30 ASSERT_TRUE(mTaskCase != NULL); in SetUp()
49 ASSERT_TRUE(mTaskCase->registerBuffer(BUFFER1, buffer1)); in TEST_F()
50 ASSERT_TRUE(mTaskCase->registerBuffer(BUFFER2, buffer2)); in TEST_F()
51 ASSERT_TRUE(mTaskCase->registerBuffer(BUFFER3, buffer3)); in TEST_F()
52 ASSERT_TRUE(mTaskCase->registerBuffer(BUFFER4, buffer4)); in TEST_F()
56 ASSERT_TRUE(buffer1.get() == buffer1f.get()); in TEST_F()
59 ASSERT_TRUE(buffer1f.get() == NULL); in TEST_F()
62 ASSERT_TRUE(list != NULL); in TEST_F()
63 ASSERT_TRUE(((list->front().second.get() == buffer1.get()) && in TEST_F()
76 ASSERT_TRUE(!(val1 == val2)); in TEST_F()
[all …]
DTaskTest.cpp71 ASSERT_TRUE(mTestCase->addChild(mTaskSetup)); in SetUp()
72 ASSERT_TRUE(mTestCase->addChild(mTaskAction)); in SetUp()
74 ASSERT_TRUE(mTaskAction->addChild(mTaskSequential)); in SetUp()
78 ASSERT_TRUE(mTaskSequential->addChild(mTaskOutput)); in SetUp()
79 ASSERT_TRUE(mTaskSequential->addChild(mTaskInput)); in SetUp()
80 ASSERT_TRUE(mTaskSequential->addChild(mTaskProcess)); in SetUp()
82 ASSERT_TRUE(mTaskSetup->addChild(mTaskSound)); in SetUp()
83 ASSERT_TRUE(TestTaskDummy::mLiveInstanceCounter == 7); in SetUp()
90 ASSERT_TRUE(TestTaskDummy::mLiveInstanceCounter == 0); in TearDown()
99 ASSERT_TRUE(mTaskSetup->getTestCase() == mTestCase); in TEST_F()
[all …]
DStringUtilTest.cpp27 ASSERT_TRUE(StringUtil::compare(str, "hello") == 0); in TEST_F()
28 ASSERT_TRUE(StringUtil::compare(str, "hi") != 0); in TEST_F()
35 ASSERT_TRUE(StringUtil::compare(sub1, "hello") == 0); in TEST_F()
38 ASSERT_TRUE(StringUtil::compare(sub2, "e") == 0); in TEST_F()
41 ASSERT_TRUE(StringUtil::compare(sub3, "there") == 0); in TEST_F()
44 ASSERT_TRUE(sub4.length() == 0); in TEST_F()
49 ASSERT_TRUE(StringUtil::endsWith(str, "there")); in TEST_F()
50 ASSERT_TRUE(StringUtil::endsWith(str, "hello there")); in TEST_F()
51 ASSERT_TRUE(!StringUtil::endsWith(str, "not there")); in TEST_F()
57 ASSERT_TRUE(tokens != NULL); in TEST_F()
[all …]
DBufferTest.cpp42 ASSERT_TRUE(buffer.get() != NULL); in TEST_F()
44 ASSERT_TRUE(data != NULL); in TEST_F()
50 ASSERT_TRUE(buffer->saveToFile(file)); in TEST_F()
53 ASSERT_TRUE(bufferRead.get() != NULL); in TEST_F()
54 ASSERT_TRUE(bufferRead->getSize() == (size_t)BUFFER_SIZE); in TEST_F()
55 ASSERT_TRUE(bufferRead->isStereo()); in TEST_F()
58 ASSERT_TRUE(data[2*i] == dataRead[2*i]); in TEST_F()
59 ASSERT_TRUE(data[2*i+1] == dataRead[2*i+1]); in TEST_F()
67 ASSERT_TRUE(buffer.get() != NULL); in TEST_F()
69 ASSERT_TRUE(data != NULL); in TEST_F()
[all …]
DAudioRecordPlayTestCommon.h47 ASSERT_TRUE(mAudioPlaybackHw.get() != NULL); in SetUp()
49 ASSERT_TRUE(mAudioRecordingHw.get() != NULL); in SetUp()
53 ASSERT_TRUE(mBufferPlayback.get() != NULL); in SetUp()
55 ASSERT_TRUE(mBufferRecording.get() != NULL); in SetUp()
66 ASSERT_TRUE(mAudioPlaybackHw->prepare(AudioHardware::ESampleRate_44100, DEFAULT_VOLUME)); in PlayAndRecord()
67 ASSERT_TRUE(mAudioRecordingHw->prepare(AudioHardware::ESampleRate_44100, DEFAULT_VOLUME)); in PlayAndRecord()
68 ASSERT_TRUE(mAudioRecordingHw->startPlaybackOrRecord(mBufferRecording, in PlayAndRecord()
70 ASSERT_TRUE(mAudioPlaybackHw->startPlaybackOrRecord(mBufferPlayback, in PlayAndRecord()
73 ASSERT_TRUE(mAudioRecordingHw->waitForCompletion()); in PlayAndRecord()
74 ASSERT_TRUE(mAudioPlaybackHw->waitForCompletion()); in PlayAndRecord()
[all …]
DTaskSequentialTest.cpp28 ASSERT_TRUE(mTestCase != NULL); in SetUp()
29 ASSERT_TRUE(setup != NULL); in SetUp()
30 ASSERT_TRUE(action != NULL); in SetUp()
48 ASSERT_TRUE(mSequential->parseAttribute(REPEAT, N_10)); in TEST_F()
49 ASSERT_TRUE(mSequential->parseAttribute(INDEX, I)); in TEST_F()
50 ASSERT_TRUE(!mSequential->parseAttribute(NO_SUCH_THING, SHOULD_FAIL)); in TEST_F()
54 ASSERT_TRUE(indices != NULL); in TEST_F()
55 ASSERT_TRUE(indices->size() == 1); in TEST_F()
58 ASSERT_TRUE(mTestCase->findIndex(I, index)); in TEST_F()
59 ASSERT_TRUE(index == 10); in TEST_F()
DClientInterfaceTest.cpp37 ASSERT_TRUE(mClient != NULL); in SetUp()
39 ASSERT_TRUE(mClient->init(dummyParam)); in SetUp()
57 ASSERT_TRUE(audio->getDeviceInfo(info)); in TEST_F()
71 ASSERT_TRUE(audio->downloadData(name, buffer, id)); in TEST_F()
72 ASSERT_TRUE(audio->startPlayback(true, AudioHardware::ESampleRate_44100, in TEST_F()
74 ASSERT_TRUE(audio->waitForPlaybackCompletion()); in TEST_F()
75 ASSERT_TRUE(id == audio->getDataId(name)); in TEST_F()
77 ASSERT_TRUE(audio->getDataId(name2) < 0); in TEST_F()
88 ASSERT_TRUE(audio->startRecording(false, AudioHardware::ESampleRate_44100, in TEST_F()
90 ASSERT_TRUE(audio->waitForRecordingCompletion()); in TEST_F()
[all …]
DAudioPlayTestCommon.h51 ASSERT_TRUE(mAudioHw.get() != NULL); in SetUp()
55 ASSERT_TRUE(mBuffer.get() != NULL); in SetUp()
65 ASSERT_TRUE(mAudioHw->prepare(AudioHardware::ESampleRate_44100, DEFAULT_VOLUME)); in playAll()
66 ASSERT_TRUE(mAudioHw->startPlaybackOrRecord(mBuffer, numberRepetition)); in playAll()
67 ASSERT_TRUE(mAudioHw->waitForCompletion()); in playAll()
70 ASSERT_TRUE(mBuffer->amountHandled() == mBuffer->getSize()); in playAll()
75 ASSERT_TRUE(mAudioHw->prepare(AudioHardware::ESampleRate_44100, DEFAULT_VOLUME)); in repeatPlayStop()
77 ASSERT_TRUE(mAudioHw->startPlaybackOrRecord(mBuffer, 10)); in repeatPlayStop()
84 ASSERT_TRUE(mAudioHw->prepare(AudioHardware::ESampleRate_44100, DEFAULT_VOLUME)); in playWrongUsage()
DTaskProcessTest.cpp31 ASSERT_TRUE(mTestCase != NULL); in SetUp()
32 ASSERT_TRUE(setup != NULL); in SetUp()
33 ASSERT_TRUE(action != NULL); in SetUp()
39 ASSERT_TRUE(mSequential->parseAttribute(REPEAT, N_10)); in SetUp()
40 ASSERT_TRUE(mSequential->parseAttribute(INDEX, I)); in SetUp()
41 ASSERT_TRUE(action->addChild(mSequential)); in SetUp()
43 ASSERT_TRUE(mSequential->addChild(mProcess)); in SetUp()
DSignalProcessingInterfaceTest.cpp32 ASSERT_TRUE(mSp != NULL); in SetUp()
33 ASSERT_TRUE(mSp->init(SignalProcessingImpl::MAIN_PROCESSING_SCRIPT)); in SetUp()
81 ASSERT_TRUE(mSp->run( functionName, in TEST_F()
84 ASSERT_TRUE(*(in0.get()) == *(out0.get())); in TEST_F()
85 ASSERT_TRUE(*(in1.get()) == *(out1.get())); in TEST_F()
86 ASSERT_TRUE(in2 == out2); in TEST_F()
87 ASSERT_TRUE(in3 == out3); in TEST_F()
104 ASSERT_TRUE(mSp->run( functionName, in TEST_F()
107 ASSERT_TRUE(out0.getInt64() == (in0.getInt64() + in1.getInt64())); in TEST_F()
113 ASSERT_TRUE(sp2 != NULL); in TEST_F()
[all …]
DModelBuilderTest.cpp30 ASSERT_TRUE(testCase != NULL); in TEST_F()
38 ASSERT_TRUE(testCase != NULL); in TEST_F()
46 ASSERT_TRUE(testBatch != NULL); in TEST_F()
54 ASSERT_TRUE(task == NULL); in TEST_F()
62 ASSERT_TRUE(task == NULL); in TEST_F()
69 ASSERT_TRUE(task == NULL); in TEST_F()
76 ASSERT_TRUE(task == NULL); in TEST_F()
83 ASSERT_TRUE(task != NULL); in TEST_F()
85 ASSERT_TRUE((result == TaskGeneric::EResultOK) || (result == TaskGeneric::EResultPass)); in TEST_F()
DAudioHardwareTest.cpp28 ASSERT_TRUE(hwId >= 0); in TEST_F()
33 ASSERT_TRUE(playback.get() != NULL); in TEST_F()
35 ASSERT_TRUE(recording.get() != NULL); in TEST_F()
40 ASSERT_TRUE(testCase != NULL); in TEST_F()
42 ASSERT_TRUE(playback.get() != NULL); in TEST_F()
44 ASSERT_TRUE(recording.get() != NULL); in TEST_F()
DRemoteAudioFakeTcpTest.cpp37 ASSERT_TRUE(cond); in assertTrue()
42 ASSERT_TRUE(data1[i] == data2[i]); in assertData()
112 ASSERT_TRUE(U32_ENDIAN_SWAP(0x12345678) == 0x78563412); in SetUp()
114 ASSERT_TRUE(mRemoteAudio != NULL); in SetUp()
115 ASSERT_TRUE(mRemoteAudio->init(1234)); in SetUp()
145 ASSERT_TRUE(mRemoteAudio->downloadData(name, buffer, id)); in doDownload()
146 ASSERT_TRUE(id >= 0); in doDownload()
187 ASSERT_TRUE(mRemoteAudio->startPlayback(stereo, samplingF, mode, volume, id, repeat)); in TEST_F()
188 ASSERT_TRUE(mRemoteAudio->waitForPlaybackCompletion()); in TEST_F()
231 ASSERT_TRUE(mRemoteAudio->startPlayback(stereo, samplingF, mode, volume, id, repeat)); in TEST_F()
[all …]
DFileUtilTest.cpp32 ASSERT_TRUE(FileUtil::prepare(dirPath)); in TEST_F()
33 ASSERT_TRUE(dirPath.find("reports/") == 0); in TEST_F()
36 ASSERT_TRUE(FileUtil::prepare(dirPath2)); in TEST_F()
37 ASSERT_TRUE(dirPath == dirPath2); in TEST_F()
DMixerTest.cpp38 ASSERT_TRUE(hwId >= 0); in TEST_F()
40 ASSERT_TRUE(mixerp != NULL); in TEST_F()
45 ASSERT_TRUE(control != NULL); in TEST_F()
52 ASSERT_TRUE(num_ctls == 0); in TEST_F()
DAudioSignalFactoryTest.cpp27 ASSERT_TRUE(buffer->getSize() == (unsigned int)(AudioHardware::E2BPS * 2 * samples)); in testSignalBasic()
30 ASSERT_TRUE(*data <= maxPositive); in testSignalBasic()
31 ASSERT_TRUE(*data >= -maxPositive); in testSignalBasic()
33 ASSERT_TRUE(*data <= maxPositive); in testSignalBasic()
34 ASSERT_TRUE(*data >= -maxPositive); in testSignalBasic()
DSimpleScriptExecTest.cpp27 ASSERT_TRUE(SimpleScriptExec::checkPythonEnv()); in TEST_F()
34 ASSERT_TRUE(SimpleScriptExec::checkIfPassed(pass1, match1)); in TEST_F()
37 ASSERT_TRUE(!SimpleScriptExec::checkIfPassed(fail1, match1)); in TEST_F()
/cts/tests/aslr/src/
DAslrMallocTest.cpp64 ASSERT_TRUE(size > 0 && size < PATH_MAX); in SetUp()
72 ASSERT_TRUE(pipe(fds) != -1); in GetAddress()
75 ASSERT_TRUE(pid != -1); in GetAddress()
79 ASSERT_TRUE(TEMP_FAILURE_RETRY(dup2(fds[1], STDOUT_FILENO)) != -1); in GetAddress()
86 ASSERT_TRUE(execl(self_.c_str(), self_.c_str(), argPrint.c_str(), in GetAddress()
95 ASSERT_TRUE(android::base::ReadFdToString(fds[0], &output)); in GetAddress()
99 ASSERT_TRUE(waitpid(pid, &status, 0) != -1); in GetAddress()
100 ASSERT_TRUE(WEXITSTATUS(status) == EXIT_SUCCESS); in GetAddress()
102 ASSERT_TRUE(android::base::ParseUint(output.c_str(), &address)); in GetAddress()
131 ASSERT_TRUE(entropy >= minEntropyBits); in TestRandomization()
/cts/tests/openglperf2/test/
DMatrixTest.cpp41 ASSERT_TRUE(m1.equals(m2)); in TEST()
43 ASSERT_TRUE(clone != NULL); in TEST()
44 ASSERT_TRUE(m1.equals(*clone)); in TEST()
86 ASSERT_TRUE(m2 != NULL); in TEST()
87 ASSERT_TRUE(m1.equals(*m2)); in TEST()
95 ASSERT_TRUE(m2 != NULL); in TEST()
96 ASSERT_TRUE(m1.equals(*m2)); in TEST()
104 ASSERT_TRUE(m2 != NULL); in TEST()
105 ASSERT_TRUE(m1.equals(*m2)); in TEST()
119 ASSERT_TRUE(m3.equals(m1)); in TEST()
[all …]
/cts/tests/tests/nativemedia/xa/src/
DXAObjectCreationTest.cpp80 ASSERT_TRUE(IsOk(res)); in SetUp()
82 ASSERT_TRUE(IsOk(res)); in SetUp()
84 ASSERT_TRUE(IsOk(res)); in SetUp()
85 ASSERT_TRUE(NULL != engineItf); in SetUp()
111 ASSERT_TRUE(IsOk(res)); in OutputMixCreation()
112 ASSERT_TRUE(NULL != outputMixObj); in OutputMixCreation()
114 ASSERT_TRUE(IsOk(res)); in OutputMixCreation()
/cts/tests/tests/nativemedia/sl/src/
DSLObjectCreationTest.cpp91 ASSERT_TRUE(IsOk(res)); in SetUp()
93 ASSERT_TRUE(IsOk(res)); in SetUp()
95 ASSERT_TRUE(IsOk(res)); in SetUp()
96 ASSERT_TRUE(NULL != engineItf); in SetUp()
121 ASSERT_TRUE(IsOk(res)); in AudioPlayerCreation()
122 ASSERT_TRUE(NULL != audioPlayerObj); in AudioPlayerCreation()
124 ASSERT_TRUE(IsOk(res)); in AudioPlayerCreation()
177 ASSERT_TRUE(IsOk(res)); in OutputMixCreation()
178 ASSERT_TRUE(NULL != outputMixObj); in OutputMixCreation()
180 ASSERT_TRUE(IsOk(res)); in OutputMixCreation()
[all …]
/cts/tests/tests/graphics/jni/
Dandroid_graphics_cts_BitmapTest.cpp33 #define ASSERT_TRUE(a) ASSERT((a), "assert failed on (" #a ") at " __FILE__ ":%d", __LINE__) macro
69 ASSERT_TRUE(width >= 0 && height >= 0); in validateBitmapInfo()
/cts/tests/tests/nativemedia/aaudio/src/
Dutils.cpp72 ASSERT_TRUE(mBuilder != nullptr); in initBuilder()
94 ASSERT_TRUE(mStream != nullptr); in createAndVerifyStream()
/cts/tests/tests/nativehardware/jni/
DNativeTestHelper.h32 #define ASSERT_TRUE(a) ASSERT((a), "assert failed on (" #a ") at " __FILE__ ":%d", __LINE__) macro
/cts/tests/sensor/jni/
DnativeTestHelper.h33 #define ASSERT_TRUE(a) ASSERT((a), "assert failed on (" #a ") at " __FILE__ ":%d", __LINE__) macro

12