Home
last modified time | relevance | path

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

1234567891011

/frameworks/compile/mclinker/unittests/
DGraphTest.cpp43 ASSERT_TRUE(NULL == u1->first_in); in TEST_F()
44 ASSERT_TRUE(NULL == u1->first_out); in TEST_F()
45 ASSERT_TRUE(u2 == u1->prev); in TEST_F()
46 ASSERT_TRUE(NULL == u1->next); in TEST_F()
48 ASSERT_TRUE(NULL == u2->first_in); in TEST_F()
49 ASSERT_TRUE(NULL == u2->first_out); in TEST_F()
50 ASSERT_TRUE(u3 == u2->prev); in TEST_F()
51 ASSERT_TRUE(u1 == u2->next); in TEST_F()
53 ASSERT_TRUE(NULL == u3->first_in); in TEST_F()
54 ASSERT_TRUE(NULL == u3->first_out); in TEST_F()
[all …]
DStaticResolverTest.cpp53 ASSERT_TRUE(mcld::ResolveInfo::Define == new_sym->desc()); in TEST_F()
54 ASSERT_TRUE(mcld::ResolveInfo::Define == old_sym->desc()); in TEST_F()
55 ASSERT_TRUE(mcld::ResolveInfo::define_flag == new_sym->info()); in TEST_F()
56 ASSERT_TRUE(mcld::ResolveInfo::define_flag == old_sym->info()); in TEST_F()
59 ASSERT_TRUE(result); in TEST_F()
78 ASSERT_TRUE(mcld::ResolveInfo::Global == new_sym->binding()); in TEST_F()
79 ASSERT_TRUE(mcld::ResolveInfo::Global == old_sym->binding()); in TEST_F()
80 ASSERT_TRUE(mcld::ResolveInfo::Undefined == new_sym->desc()); in TEST_F()
81 ASSERT_TRUE(mcld::ResolveInfo::Define == old_sym->desc()); in TEST_F()
85 ASSERT_TRUE(result); in TEST_F()
[all …]
DFileHandleTest.cpp43 ASSERT_TRUE(m_pTestee->open(path, FileHandle::OpenMode(FileHandle::ReadOnly), in TEST_F()
45 ASSERT_TRUE(m_pTestee->isOpened()); in TEST_F()
46 ASSERT_TRUE(m_pTestee->isGood()); in TEST_F()
47 ASSERT_TRUE(m_pTestee->isOwned()); in TEST_F()
49 ASSERT_TRUE(27 == m_pTestee->size()); in TEST_F()
51 ASSERT_TRUE(m_pTestee->close()); in TEST_F()
53 ASSERT_TRUE(m_pTestee->isGood()); in TEST_F()
55 ASSERT_TRUE(0 == m_pTestee->size()); in TEST_F()
64 ASSERT_TRUE(m_pTestee->delegate(fd, FileHandle::ReadOnly)); in TEST_F()
65 ASSERT_TRUE(m_pTestee->isOpened()); in TEST_F()
[all …]
DRTLinearAllocatorTest.cpp41 ASSERT_TRUE(CHUNK_SIZE == m_pTestee->max_size()); in TEST_F()
48 ASSERT_TRUE(CHUNK_SIZE == m_pTestee->max_size()); in TEST_F()
54 ASSERT_TRUE(0 == pointer); in TEST_F()
55 ASSERT_TRUE(0 == m_pTestee->max_size()); in TEST_F()
56 ASSERT_TRUE(m_pTestee->empty()); in TEST_F()
62 ASSERT_TRUE(1 == pointer->one); in TEST_F()
63 ASSERT_TRUE(2 == pointer->two); in TEST_F()
64 ASSERT_TRUE(3 == pointer->three); in TEST_F()
65 ASSERT_TRUE(4 == pointer->four); in TEST_F()
73 ASSERT_TRUE(7 == pointer->one); in TEST_F()
[all …]
DLEB128Test.cpp50 ASSERT_TRUE(size == 1); in TEST_F()
56 ASSERT_TRUE(size == 1); in TEST_F()
63 ASSERT_TRUE(size == 2); in TEST_F()
70 ASSERT_TRUE(size == 2); in TEST_F()
77 ASSERT_TRUE(size == 2); in TEST_F()
84 ASSERT_TRUE(size == 2); in TEST_F()
96 ASSERT_TRUE(size == 1); in TEST_F()
102 ASSERT_TRUE(size == 1); in TEST_F()
109 ASSERT_TRUE(size == 2); in TEST_F()
116 ASSERT_TRUE(size == 2); in TEST_F()
[all …]
DLinearAllocatorTest.cpp53 ASSERT_TRUE(0 == pointer); in TEST_F()
54 ASSERT_TRUE(0 == m_pTestee->max_size()); in TEST_F()
55 ASSERT_TRUE(m_pTestee->empty()); in TEST_F()
61 ASSERT_TRUE(1 == pointer->one); in TEST_F()
62 ASSERT_TRUE(2 == pointer->two); in TEST_F()
63 ASSERT_TRUE(3 == pointer->three); in TEST_F()
64 ASSERT_TRUE(4 == pointer->four); in TEST_F()
72 ASSERT_TRUE(7 == pointer->one); in TEST_F()
73 ASSERT_TRUE(7 == pointer->two); in TEST_F()
74 ASSERT_TRUE(7 == pointer->three); in TEST_F()
[all …]
DELFReaderTest.cpp64 ASSERT_TRUE(NULL != m_pInput); in SetUp()
66 ASSERT_TRUE(m_pInput->hasMemArea()); in SetUp()
72 ASSERT_TRUE(shdr_result); in SetUp()
90 ASSERT_TRUE(llvm::ELF::SHF_ALLOC & (*iter)->flag()); // AX in TEST_F()
97 ASSERT_TRUE(m_pInput->hasMemArea()); in TEST_F()
98 ASSERT_TRUE(m_pInput->hasContext()); in TEST_F()
103 ASSERT_TRUE(NULL != symtab_shdr); in TEST_F()
106 ASSERT_TRUE(NULL != strtab_shdr); in TEST_F()
116 ASSERT_TRUE(result); in TEST_F()
119 ASSERT_TRUE(NULL == m_pInput->context()->getSymbol(11)); in TEST_F()
[all …]
/frameworks/av/media/libstagefright/foundation/tests/
DUtils_test.cpp54 ASSERT_TRUE(AStringUtils::MatchesGlob("AudioA", 5, "AudioB", 5, false)); in TEST_F()
58 ASSERT_TRUE(AStringUtils::MatchesGlob("AudioA", 5, "audiOB", 5, true)); in TEST_F()
62 ASSERT_TRUE(AStringUtils::MatchesGlob("*1", 1, "String8", 6, true)); in TEST_F()
63 ASSERT_TRUE(AStringUtils::MatchesGlob("*1", 1, "String8", 6, false)); in TEST_F()
64 ASSERT_TRUE(AStringUtils::MatchesGlob("*1", 1, "String8", 0, true)); in TEST_F()
65 ASSERT_TRUE(AStringUtils::MatchesGlob("*1", 1, "String8", 0, false)); in TEST_F()
67 ASSERT_TRUE(AStringUtils::MatchesGlob("*ring1", 5, "String8", 6, false)); in TEST_F()
68 ASSERT_TRUE(AStringUtils::MatchesGlob("*ring2", 5, "STRING8", 6, true)); in TEST_F()
74 ASSERT_TRUE(AStringUtils::MatchesGlob("Str*1", 4, "String8", 6, false)); in TEST_F()
75 ASSERT_TRUE(AStringUtils::MatchesGlob("Str*2", 4, "STRING8", 6, true)); in TEST_F()
[all …]
DMetaDataBaseUnitTest.cpp98 ASSERT_TRUE(status) << "kKeyMIMEType key does not exists in metadata"; in TEST_F()
103 ASSERT_TRUE(status) << "kKeyWidth key does not exists in metadata"; in TEST_F()
107 ASSERT_TRUE(status) << "kKeyHeight key does not exists in metadata"; in TEST_F()
111 ASSERT_TRUE(status) << "kKeyVideoProfile key does not exists in metadata"; in TEST_F()
115 ASSERT_TRUE(status) << "kKeyVideoLevel key does not exists in metadata"; in TEST_F()
120 ASSERT_TRUE(status) << "kKeyDuration key does not exists in metadata"; in TEST_F()
125 ASSERT_TRUE(status) << "kKeyCaptureFramerate key does not exists in metadata"; in TEST_F()
130 ASSERT_TRUE(status) << "kKeyCropRect key does not exists in metadata"; in TEST_F()
138 ASSERT_TRUE(status) << "kKeyPlatformPrivate key does not exists in metadata"; in TEST_F()
158 ASSERT_TRUE(status) << "Setting kKeyMIMEType again, overwrite is expected to be true"; in TEST_F()
[all …]
/frameworks/native/libs/vr/libdvr/tests/
Ddvr_tracking-test.cpp13 ASSERT_TRUE(api_.TrackingCameraCreate != nullptr); in TEST_F()
14 ASSERT_TRUE(api_.TrackingCameraStart != nullptr); in TEST_F()
15 ASSERT_TRUE(api_.TrackingCameraStop != nullptr); in TEST_F()
17 ASSERT_TRUE(api_.TrackingFeatureExtractorCreate != nullptr); in TEST_F()
18 ASSERT_TRUE(api_.TrackingFeatureExtractorDestroy != nullptr); in TEST_F()
19 ASSERT_TRUE(api_.TrackingFeatureExtractorStart != nullptr); in TEST_F()
20 ASSERT_TRUE(api_.TrackingFeatureExtractorStop != nullptr); in TEST_F()
21 ASSERT_TRUE(api_.TrackingFeatureExtractorProcessBuffer != nullptr); in TEST_F()
39 ASSERT_TRUE(camera != nullptr); in TEST_F()
60 ASSERT_TRUE(camera != nullptr); in TEST_F()
[all …]
/frameworks/native/cmds/installd/tests/
Dinstalld_service_test.cpp284 ASSERT_TRUE(mkdirs("/data/local/tmp/user/0", 0700)); in SetUp()
294 ASSERT_TRUE(mkdirs(rollback_ce_base_dir, 0700)); in SetUp()
295 ASSERT_TRUE(mkdirs(rollback_de_base_dir, 0700)); in SetUp()
296 ASSERT_TRUE(mkdirs(fake_package_ce_path, 0700)); in SetUp()
297 ASSERT_TRUE(mkdirs(fake_package_de_path, 0700)); in SetUp()
315 ASSERT_TRUE(android::base::WriteStringToFile( in TEST_F()
318 ASSERT_TRUE(android::base::WriteStringToFile( in TEST_F()
333 ASSERT_TRUE(android::base::ReadFileToString( in TEST_F()
341 ASSERT_TRUE(android::base::WriteStringToFile( in TEST_F()
353 ASSERT_TRUE(android::base::ReadFileToString( in TEST_F()
[all …]
/frameworks/base/cmds/idmap2/tests/
DResultTests.cpp34 ASSERT_TRUE(std::is_move_constructible<Error>::value); in TEST()
35 ASSERT_TRUE(std::is_move_assignable<Error>::value); in TEST()
36 ASSERT_TRUE(std::is_copy_constructible<Error>::value); in TEST()
37 ASSERT_TRUE(std::is_copy_assignable<Error>::value); in TEST()
66 ASSERT_TRUE(r2); in TEST()
70 ASSERT_TRUE(r3); in TEST()
78 ASSERT_TRUE(r1); in TEST()
90 ASSERT_TRUE(r1); in TEST()
104 ASSERT_TRUE(r2); in TEST()
116 ASSERT_TRUE(r); in TEST()
[all …]
DCommandLineOptionsTests.cpp47 ASSERT_TRUE(success); in TEST()
48 ASSERT_TRUE(foo); in TEST()
49 ASSERT_TRUE(bar); in TEST()
53 ASSERT_TRUE(success); in TEST()
54 ASSERT_TRUE(foo); in TEST()
65 ASSERT_TRUE(success); in TEST()
77 ASSERT_TRUE(success); in TEST()
85 ASSERT_TRUE(success); in TEST()
98 ASSERT_TRUE(success); in TEST()
103 ASSERT_TRUE(success); in TEST()
[all …]
/frameworks/base/tools/aapt2/text/
DUtf8Iterator_test.cpp30 ASSERT_TRUE(iter.HasNext()); in TEST()
33 ASSERT_TRUE(iter.HasNext()); in TEST()
36 ASSERT_TRUE(iter.HasNext()); in TEST()
39 ASSERT_TRUE(iter.HasNext()); in TEST()
42 ASSERT_TRUE(iter.HasNext()); in TEST()
52 ASSERT_TRUE(iter.HasNext()); in TEST()
55 ASSERT_TRUE(iter.HasNext()); in TEST()
58 ASSERT_TRUE(iter.HasNext()); in TEST()
61 ASSERT_TRUE(iter.HasNext()); in TEST()
75 ASSERT_TRUE(iter.HasNext()); in TEST()
[all …]
/frameworks/base/tools/aapt2/cmd/
DUtil_test.cpp166 ASSERT_TRUE(ParseSplitParameter(CREATE_PATH("square"), in TEST()
173 ASSERT_TRUE(ParseSplitParameter(CREATE_PATH("stylus"), in TEST()
180 ASSERT_TRUE(ParseSplitParameter(CREATE_PATH("xxxhdpi"), in TEST()
188 ASSERT_TRUE(ParseSplitParameter(CREATE_PATH("land-xhdpi-finger"), in TEST()
203 ASSERT_TRUE(ParseSplitParameter(CREATE_PATH("qwerty"), in TEST()
210 ASSERT_TRUE(ParseSplitParameter(CREATE_PATH("dpad"), in TEST()
217 ASSERT_TRUE(ParseSplitParameter(CREATE_PATH("keyssoft-navhidden"), in TEST()
224 ASSERT_TRUE(ParseSplitParameter(CREATE_PATH("keyshidden-nokeys-navexposed-trackball"), in TEST()
235 ASSERT_TRUE(ParseSplitParameter(CREATE_PATH("1920x1080"), in TEST()
253 ASSERT_TRUE(ParseSplitParameter(CREATE_PATH("ldrtl"), in TEST()
[all …]
/frameworks/native/libs/vr/libpdx/
Dvariant_tests.cpp141 ASSERT_TRUE(v.is<int>()); in TEST()
152 ASSERT_TRUE(v.is<bool>()); in TEST()
163 ASSERT_TRUE(v.is<float>()); in TEST()
182 ASSERT_TRUE(v.is<float>()); in TEST()
197 ASSERT_TRUE(v.is<int>()); in TEST()
207 ASSERT_TRUE(v.is<std::string>()); in TEST()
216 ASSERT_TRUE(v.is<std::string>()); in TEST()
225 ASSERT_TRUE(v1.is<const char*>()); in TEST()
227 ASSERT_TRUE(v2.is<std::string>()); in TEST()
234 ASSERT_TRUE(!a.empty()); in TEST()
[all …]
/frameworks/native/libs/cputimeinstate/
Dtesttimeinstate.cpp43 ASSERT_TRUE(times.has_value()); in TEST()
49 ASSERT_TRUE(concurrentTimes.has_value()); in TEST()
109 ASSERT_TRUE(times.has_value()); in TEST()
112 ASSERT_TRUE(concurrentTimes.has_value()); in TEST()
121 ASSERT_TRUE(map.has_value()); in TEST()
156 ASSERT_TRUE(map1.has_value()); in TEST()
168 ASSERT_TRUE(map2.has_value()); in TEST()
179 ASSERT_TRUE(someUidsExcluded); in TEST()
191 ASSERT_TRUE(map.has_value()); in TEST()
198 ASSERT_TRUE(times2.has_value()); in TEST()
[all …]
/frameworks/base/tools/aapt2/
DResourceTable_test.cpp106 ASSERT_TRUE(table.AddResource(test::ParseNameOrDie("android:attr/foo"), ConfigDescription{}, "", in TEST()
114 ASSERT_TRUE(table.AddResource(test::ParseNameOrDie("android:attr/foo"), ConfigDescription{}, "", in TEST()
131 ASSERT_TRUE(table.AddResource(name, ConfigDescription{}, "", in TEST()
133 ASSERT_TRUE(table.AddResource(name, ConfigDescription{}, "", in TEST()
154 ASSERT_TRUE(sr); in TEST()
204 ASSERT_TRUE(table.SetVisibility(name, visibility, test::GetDiagnostics())); in TEST()
205 ASSERT_TRUE(VisibilityOfResource(table, name, Level::kPrivate, "private")); in TEST()
209 ASSERT_TRUE(table.SetVisibility(name, visibility, test::GetDiagnostics())); in TEST()
210 ASSERT_TRUE(VisibilityOfResource(table, name, Level::kPrivate, "private")); in TEST()
214 ASSERT_TRUE(table.SetVisibility(name, visibility, test::GetDiagnostics())); in TEST()
[all …]
DResourceParser_test.cpp93 ASSERT_TRUE(TestParse(R"(<string name="foo"> " hey there " </string>)")); in TEST_F()
100 ASSERT_TRUE(TestParse(R"(<string name="bar">Isn\'t it cool?</string>)")); in TEST_F()
105 ASSERT_TRUE(TestParse(R"(<string name="baz">"Isn't it cool?"</string>)")); in TEST_F()
135 ASSERT_TRUE(TestParse(input)); in TEST_F()
154 ASSERT_TRUE(TestParse(R"(<string name="foo"> This is what I think </string>)")); in TEST_F()
161 ASSERT_TRUE(TestParse(R"(<string name="foo2">" This is what I think "</string>)")); in TEST_F()
203 ASSERT_TRUE(TestParse(input)); in TEST_F()
225 ASSERT_TRUE(str->IsTranslatable()); in TEST_F()
231 ASSERT_TRUE(str->IsTranslatable()); in TEST_F()
247 ASSERT_TRUE(TestParse(input)); in TEST_F()
[all …]
/frameworks/base/tools/aapt2/link/
DProductFilter_test.cpp32 ASSERT_TRUE(table.AddResource( in TEST()
36 ASSERT_TRUE(table.AddResource( in TEST()
41 ASSERT_TRUE(table.AddResource( in TEST()
45 ASSERT_TRUE(table.AddResource( in TEST()
51 ASSERT_TRUE(filter.Consume(context.get(), &table)); in TEST()
67 ASSERT_TRUE(table.AddResource( in TEST()
72 ASSERT_TRUE(table.AddResource( in TEST()
79 ASSERT_TRUE(filter.Consume(context.get(), &table)); in TEST()
93 ASSERT_TRUE(table.AddResource( in TEST()
98 ASSERT_TRUE(table.AddResource( in TEST()
[all …]
/frameworks/base/libs/hwui/tests/unit/
DSkiaDisplayListTests.cpp36 ASSERT_TRUE(skiaDL.isEmpty()); in TEST()
60 ASSERT_TRUE(skiaDL->hasVectorDrawables()); in TEST()
62 ASSERT_TRUE(skiaDL->mProjectionReceiver); in TEST()
66 ASSERT_TRUE(skiaDL->mChildNodes.empty()); in TEST()
67 ASSERT_TRUE(skiaDL->mChildFunctors.empty()); in TEST()
68 ASSERT_TRUE(skiaDL->mMutableImages.empty()); in TEST()
70 ASSERT_TRUE(skiaDL->isEmpty()); in TEST()
84 ASSERT_TRUE(skiaDL.reuseDisplayList(renderNode.get(), nullptr)); in TEST()
175 ASSERT_TRUE(dirtyVD.isDirty()); in RENDERTHREAD_SKIA_PIPELINE_TEST()
177 ASSERT_TRUE(skiaDL.prepareListAndChildren(observer, info, false, in RENDERTHREAD_SKIA_PIPELINE_TEST()
[all …]
DVectorDrawableAtlasTests.cpp44 ASSERT_TRUE(VDRects[i].key != INVALID_ATLAS_KEY); in RENDERTHREAD_SKIA_PIPELINE_TEST()
45 ASSERT_TRUE(VDRects[i].surface.get() != nullptr); in RENDERTHREAD_SKIA_PIPELINE_TEST()
46 ASSERT_TRUE(VDRects[i].rect.width() == 10 && VDRects[i].rect.height() == 10); in RENDERTHREAD_SKIA_PIPELINE_TEST()
70 ASSERT_TRUE(VDRect.key != INVALID_ATLAS_KEY); in RENDERTHREAD_SKIA_PIPELINE_TEST()
81 ASSERT_TRUE(VDRects[i].key != INVALID_ATLAS_KEY); in RENDERTHREAD_SKIA_PIPELINE_TEST()
83 ASSERT_TRUE(VDRects[i].rect.width() == 10 && VDRects[i].rect.height() == 10); in RENDERTHREAD_SKIA_PIPELINE_TEST()
103 ASSERT_TRUE(VDRects[i].key != INVALID_ATLAS_KEY); in RENDERTHREAD_SKIA_PIPELINE_TEST()
104 ASSERT_TRUE(VDRects[i].surface.get() != nullptr); in RENDERTHREAD_SKIA_PIPELINE_TEST()
105 ASSERT_TRUE(VDRects[i].rect.width() == 10 && VDRects[i].rect.height() == 10); in RENDERTHREAD_SKIA_PIPELINE_TEST()
131 ASSERT_TRUE(VDRects[i].key != INVALID_ATLAS_KEY); in RENDERTHREAD_SKIA_PIPELINE_TEST()
[all …]
/frameworks/native/libs/vr/libbufferhub/
Dbuffer_hub-test.cpp59 ASSERT_TRUE(p.get() != nullptr); in TEST_F()
62 ASSERT_TRUE(c1.get() != nullptr); in TEST_F()
66 ASSERT_TRUE(c2.get() != nullptr); in TEST_F()
109 ASSERT_TRUE(p.get() != nullptr); in TEST_F()
112 ASSERT_TRUE(c.get() != nullptr); in TEST_F()
115 ASSERT_TRUE(epoll_fd.IsValid()); in TEST_F()
148 ASSERT_TRUE(events[0].events & EPOLLIN); in TEST_F()
166 ASSERT_TRUE(event_status); in TEST_F()
167 ASSERT_TRUE(event_status.get() & EPOLLIN); in TEST_F()
177 ASSERT_TRUE(p.get() != nullptr); in TEST_F()
[all …]
/frameworks/base/cmds/incidentd/tests/
DFdBuffer_test.cpp88 ASSERT_TRUE(WriteStringToFile(testdata, tf.path)); in TEST_F()
101 ASSERT_TRUE(WriteStringToFile(testdata, tf.path)); in TEST_F()
114 ASSERT_TRUE(WriteStringToFile(testdata, tf.path)); in TEST_F()
126 ASSERT_TRUE(pid != -1); in TEST_F()
149 ASSERT_TRUE(WriteStringToFile(testdata, tf.path)); in TEST_F()
152 ASSERT_TRUE(pid != -1); in TEST_F()
157 ASSERT_TRUE(WriteStringToFd(HEAD, c2pPipe.writeFd())); in TEST_F()
158 ASSERT_TRUE(DoDataStream(p2cPipe.readFd(), c2pPipe.writeFd())); in TEST_F()
179 ASSERT_TRUE(WriteStringToFile(testdata, tf.path)); in TEST_F()
182 ASSERT_TRUE(pid != -1); in TEST_F()
[all …]
/frameworks/ml/nn/runtime/test/
DTestCompliance.cpp56 ASSERT_TRUE(compliantWithV1_2(hidlModel)); in testAvailableSinceV1_2()
63 ASSERT_TRUE(compliantWithV1_2(hidlModel)); in testAvailableSinceV1_1()
64 ASSERT_TRUE(compliantWithV1_1(hidlModel)); in testAvailableSinceV1_1()
70 ASSERT_TRUE(compliantWithV1_2(hidlModel)); in testAvailableSinceV1_0()
71 ASSERT_TRUE(compliantWithV1_1(hidlModel)); in testAvailableSinceV1_0()
72 ASSERT_TRUE(compliantWithV1_0(hidlModel)); in testAvailableSinceV1_0()
77 ASSERT_TRUE(compliantWithV1_2(request)); in testAvailableSinceV1_2()
100 ASSERT_TRUE(model.isValid()); in TEST_F()
114 ASSERT_TRUE(model.isValid()); in TEST_F()
131 ASSERT_TRUE(model.isValid()); in TEST_F()
[all …]

1234567891011