Home
last modified time | relevance | path

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

1234

/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 …]
DGCFactoryListTraitsTest.cpp58 ASSERT_TRUE(v_ == it->getValue()); \
78 ASSERT_TRUE(10 == m_pNodeList.size()); in TEST_F()
83 ASSERT_TRUE(10 == m_pNodeList.size()); in TEST_F()
89 ASSERT_TRUE(0 == m_pNodeList.size()); in TEST_F()
95 ASSERT_TRUE(11 == m_pNodeList.size()); in TEST_F()
97 ASSERT_TRUE(10 == m_pNodeList.size()); in TEST_F()
112 ASSERT_TRUE(m_pNodeList.empty()); in TEST_F()
119 ASSERT_TRUE(m_pNodeList.size() == 8); in TEST_F()
DInputTreeTest.cpp73 ASSERT_TRUE(isGroup(node)); in TEST_F()
74 ASSERT_TRUE(isGroup(const_node)); in TEST_F()
76 ASSERT_TRUE(1 == m_pAlloc->size()); in TEST_F()
91 ASSERT_TRUE(m_pTestee->size() == 3); in TEST_F()
112 ASSERT_TRUE(isGroup(node)); in TEST_F()
116 ASSERT_TRUE(m_pTestee->size() == 102); in TEST_F()
134 ASSERT_TRUE(m_pAlloc->size() == 50); in TEST_F()
135 ASSERT_TRUE(m_pTestee->size() == 100); in TEST_F()
164 ASSERT_TRUE(dfs_it == dfs_end); in TEST_F()
DUniqueGCFactoryBaseTest.cpp43 ASSERT_TRUE(2 == contextFactory->size()); in TEST_F()
51 ASSERT_TRUE(2 == contextFactory->size()); in TEST_F()
61 ASSERT_TRUE(2 == contextFactory->size()); in TEST_F()
87 ASSERT_TRUE(2 == memFactory->size()); in TEST_F()
94 ASSERT_TRUE(aEnd == aIter); in TEST_F()
DFragmentRefTest.cpp55 ASSERT_TRUE(4096 == region.size());
57 ASSERT_TRUE(4096 == frag->getRegion().size());
61 ASSERT_TRUE(4096 ==
65 ASSERT_TRUE(RegionFragment::classof(frag));
/frameworks/av/media/libstagefright/tests/
DUtils_test.cpp58 ASSERT_TRUE(AStringUtils::MatchesGlob("AudioA", 5, "AudioB", 5, false)); in TEST_F()
62 ASSERT_TRUE(AStringUtils::MatchesGlob("AudioA", 5, "audiOB", 5, true)); in TEST_F()
66 ASSERT_TRUE(AStringUtils::MatchesGlob("*1", 1, "String8", 6, true)); in TEST_F()
67 ASSERT_TRUE(AStringUtils::MatchesGlob("*1", 1, "String8", 6, false)); in TEST_F()
68 ASSERT_TRUE(AStringUtils::MatchesGlob("*1", 1, "String8", 0, true)); in TEST_F()
69 ASSERT_TRUE(AStringUtils::MatchesGlob("*1", 1, "String8", 0, false)); in TEST_F()
71 ASSERT_TRUE(AStringUtils::MatchesGlob("*ring1", 5, "String8", 6, false)); in TEST_F()
72 ASSERT_TRUE(AStringUtils::MatchesGlob("*ring2", 5, "STRING8", 6, true)); in TEST_F()
78 ASSERT_TRUE(AStringUtils::MatchesGlob("Str*1", 4, "String8", 6, false)); in TEST_F()
79 ASSERT_TRUE(AStringUtils::MatchesGlob("Str*2", 4, "STRING8", 6, true)); in TEST_F()
[all …]
/frameworks/base/tools/aapt2/link/
DProductFilter_test.cpp32 ASSERT_TRUE(table.addResource(test::parseNameOrDie(u"@android:string/one"), in TEST()
37 ASSERT_TRUE(table.addResource(test::parseNameOrDie(u"@android:string/one"), in TEST()
43 ASSERT_TRUE(table.addResource(test::parseNameOrDie(u"@android:string/one"), in TEST()
48 ASSERT_TRUE(table.addResource(test::parseNameOrDie(u"@android:string/one"), in TEST()
55 ASSERT_TRUE(filter.consume(context.get(), &table)); in TEST()
71 ASSERT_TRUE(table.addResource(test::parseNameOrDie(u"@android:string/one"), in TEST()
76 ASSERT_TRUE(table.addResource(test::parseNameOrDie(u"@android:string/one"), in TEST()
83 ASSERT_TRUE(filter.consume(context.get(), &table)); in TEST()
97 ASSERT_TRUE(table.addResource(test::parseNameOrDie(u"@android:string/one"), in TEST()
102 ASSERT_TRUE(table.addResource(test::parseNameOrDie(u"@android:string/one"), in TEST()
[all …]
DTableMerger_test.cpp64 ASSERT_TRUE(merger.merge({}, tableA.get())); in TEST_F()
65 ASSERT_TRUE(merger.mergeAndMangle({}, u"com.app.b", tableB.get(), &collection)); in TEST_F()
93 ASSERT_TRUE(merger.mergeFile(fileDesc, &testFile)); in TEST_F()
113 ASSERT_TRUE(merger.mergeFile(fileDesc, &fileA)); in TEST_F()
114 ASSERT_TRUE(merger.mergeFileOverlay(fileDesc, &fileB)); in TEST_F()
132 ASSERT_TRUE(merger.merge({}, tableA.get())); in TEST_F()
133 ASSERT_TRUE(merger.mergeAndMangle({}, u"com.app.b", tableB.get(), &collection)); in TEST_F()
159 ASSERT_TRUE(merger.merge({}, base.get())); in TEST_F()
160 ASSERT_TRUE(merger.mergeOverlay({}, overlay.get())); in TEST_F()
180 ASSERT_TRUE(merger.merge({}, tableA.get())); in TEST_F()
[all …]
/frameworks/base/tools/split-select/
DSplitSelector_test.cpp40 ASSERT_TRUE(addSplit(splits, "hdpi")); in TEST()
41 ASSERT_TRUE(addSplit(splits, "xhdpi")); in TEST()
42 ASSERT_TRUE(addSplit(splits, "xxhdpi")); in TEST()
43 ASSERT_TRUE(addSplit(splits, "mdpi")); in TEST()
46 ASSERT_TRUE(SplitDescription::parse(String8("hdpi"), &targetSplit)); in TEST()
53 ASSERT_TRUE(SplitDescription::parse(String8("hdpi"), &expected)); in TEST()
60 ASSERT_TRUE(rule != NULL); in TEST()
/frameworks/base/tools/aapt2/
DResourceParser_test.cpp70 ASSERT_TRUE(testParse(input)); in TEST_F()
79 ASSERT_TRUE(testParse(input)); in TEST_F()
91 ASSERT_TRUE(testParse(input)); in TEST_F()
98 ASSERT_TRUE(testParse(input)); in TEST_F()
107 ASSERT_TRUE(testParse(input)); in TEST_F()
121 ASSERT_TRUE(testParse(input)); in TEST_F()
132 ASSERT_TRUE(testParse(input)); in TEST_F()
152 ASSERT_TRUE(testParse(input, watchConfig)); in TEST_F()
165 ASSERT_TRUE(testParse(input)); in TEST_F()
184 ASSERT_TRUE(testParse(input)); in TEST_F()
[all …]
/frameworks/base/libs/androidfw/tests/
DByteBucketArray_test.cpp25 ASSERT_TRUE(bba.set(0, 1)); in TEST()
26 ASSERT_TRUE(bba.set(10, 2)); in TEST()
27 ASSERT_TRUE(bba.set(26, 3)); in TEST()
28 ASSERT_TRUE(bba.set(129, 4)); in TEST()
29 ASSERT_TRUE(bba.set(234, 5)); in TEST()
DIdmap_test.cpp77 ASSERT_TRUE(pool != NULL); in TEST_F()
82 ASSERT_TRUE(targetStr16 != NULL); in TEST_F()
92 ASSERT_TRUE(pool != NULL); in TEST_F()
96 ASSERT_TRUE(targetStr16 != NULL); in TEST_F()
104 ASSERT_TRUE(mTargetTable.getResourceName(base::R::array::integerArray1, false, &resName)); in TEST_F()
106 ASSERT_TRUE(resName.package != NULL); in TEST_F()
107 ASSERT_TRUE(resName.type != NULL); in TEST_F()
108 ASSERT_TRUE(resName.name != NULL); in TEST_F()
/frameworks/native/libs/gui/tests/
DSurfaceTextureMultiContextGL_test.cpp37 ASSERT_TRUE(eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, in TEST_F()
112 ASSERT_TRUE(eglMakeCurrent(mEglDisplay, EGL_NO_SURFACE, EGL_NO_SURFACE, in TEST_F()
129 ASSERT_TRUE(eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, in TEST_F()
161 ASSERT_TRUE(eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, in TEST_F()
175 ASSERT_TRUE(checkPixel( 0, 0, 35, 35, 35, 35)); in TEST_F()
193 ASSERT_TRUE(eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, in TEST_F()
208 ASSERT_TRUE(checkPixel( 0, 0, 35, 35, 35, 35)); in TEST_F()
221 ASSERT_TRUE(eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, in TEST_F()
240 ASSERT_TRUE(checkPixel( 0, 0, 35, 35, 35, 35)); in TEST_F()
294 ASSERT_TRUE(eglMakeCurrent(mEglDisplay, EGL_NO_SURFACE, EGL_NO_SURFACE, in TEST_F()
[all …]
DSurfaceTextureMultiContextGL.h43 ASSERT_TRUE(eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, in SetUp()
55 ASSERT_TRUE(eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, in SetUp()
62 ASSERT_TRUE(eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, in SetUp()
/frameworks/base/libs/hwui/tests/unit/
DRenderPropertiesTests.cpp35 ASSERT_TRUE(props.fitsOnLayer()); in TEST()
37 ASSERT_TRUE(props.fitsOnLayer()); in TEST()
39 ASSERT_TRUE(props.fitsOnLayer()); in TEST()
47 ASSERT_TRUE(props.fitsOnLayer()); in TEST()
/frameworks/base/tools/aapt2/proto/
DTableProtoSerializer_test.cpp41 ASSERT_TRUE(table->setSymbolState(test::parseNameOrDie(u"@com.app.a:layout/main"), in TEST()
51 ASSERT_TRUE(table->addResource(test::parseNameOrDie(u"@com.app.a:plurals/hey"), in TEST()
56 ASSERT_TRUE(table->addResource(test::parseNameOrDie(u"@com.app.a:integer/one"), in TEST()
60 ASSERT_TRUE(table->addResource(test::parseNameOrDie(u"@com.app.a:integer/one"), in TEST()
71 ASSERT_TRUE(table->addResource(test::parseNameOrDie(u"@com.app.a:layout/abc"), in TEST()
131 ASSERT_TRUE(outFileStream.Write(expectedData.data(), expectedData.size())); in TEST()
132 ASSERT_TRUE(outFileStream.Finish()); in TEST()
162 ASSERT_TRUE(outFileStream.Write(expectedData.data(), expectedData.size())); in TEST()
163 ASSERT_TRUE(outFileStream.Finish()); in TEST()
/frameworks/base/tools/aapt2/xml/
DXmlPullParser_test.cpp32 ASSERT_TRUE(xml::XmlPullParser::nextChildNode(&parser, depthOuter)); in TEST()
38 ASSERT_TRUE(xml::XmlPullParser::nextChildNode(&parser, depthA)); in TEST()
43 ASSERT_TRUE(xml::XmlPullParser::nextChildNode(&parser, depthB)); in TEST()
47 ASSERT_TRUE(xml::XmlPullParser::nextChildNode(&parser, depthB)); in TEST()
/frameworks/wilhelm/tests/
DmimeUri_test.cpp68 ASSERT_TRUE(false); in CheckErr()
84 ASSERT_TRUE(false); in PrefetchEventCallback()
208 ASSERT_TRUE(false); in TestPlayUri()
217 ASSERT_TRUE(false); in TestPlayUri()
224 ASSERT_TRUE(false); in TestPlayUri()
239 ASSERT_TRUE(false); in TestPlayUri()
244 ASSERT_TRUE(false); in TestPlayUri()
/frameworks/native/libs/binder/tests/
DbinderThroughputTest.cpp24 #define ASSERT_TRUE(cond) \ macro
75 ASSERT_TRUE(error >= 0); in signal()
80 ASSERT_TRUE(error >= 0); in wait()
84 ASSERT_TRUE(error >= 0); in send()
88 ASSERT_TRUE(error >= 0); in recv()
96 ASSERT_TRUE(error1 >= 0); in createPipePair()
97 ASSERT_TRUE(error2 >= 0); in createPipePair()

1234