Home
last modified time | relevance | path

Searched refs:ASSERT_EQ (Results 1 – 25 of 497) sorted by relevance

12345678910>>...20

/frameworks/native/services/inputflinger/tests/
DSlopController_test.cpp28 ASSERT_EQ(0, controller.consumeEvent(1000, 1)); in TEST()
29 ASSERT_EQ(0, controller.consumeEvent(1003, 3)); in TEST()
30 ASSERT_EQ(2, controller.consumeEvent(1005, 3)); in TEST()
31 ASSERT_EQ(4, controller.consumeEvent(1009, 4)); in TEST()
35 ASSERT_EQ(0, controller2.consumeEvent(1000, 5)); in TEST()
36 ASSERT_EQ(3, controller2.consumeEvent(1003, 3)); in TEST()
37 ASSERT_EQ(4, controller2.consumeEvent(1005, 4)); in TEST()
43 ASSERT_EQ(0, controller.consumeEvent(1000, -1)); in TEST()
44 ASSERT_EQ(0, controller.consumeEvent(1003, -3)); in TEST()
45 ASSERT_EQ(-2, controller.consumeEvent(1005, -3)); in TEST()
[all …]
/frameworks/compile/mclinker/unittests/
DLEB128Test.cpp48 ASSERT_EQ(buffer[0], 2); in TEST_F()
49 ASSERT_EQ(result, buffer + 1); in TEST_F()
54 ASSERT_EQ(buffer[0], 127); in TEST_F()
55 ASSERT_EQ(result, buffer + 1); in TEST_F()
60 ASSERT_EQ(buffer[0], 0 + 0x80); in TEST_F()
61 ASSERT_EQ(buffer[1], 1); in TEST_F()
62 ASSERT_EQ(result, buffer + 2); in TEST_F()
67 ASSERT_EQ(buffer[0], 1 + 0x80); in TEST_F()
68 ASSERT_EQ(buffer[1], 1); in TEST_F()
69 ASSERT_EQ(result, buffer + 2); in TEST_F()
[all …]
/frameworks/native/opengl/tests/EGLTest/
Degl_cache_test.cpp65 ASSERT_EQ(0, mCache->getBlob("abcd", 4, buf, 4)); in TEST_P()
66 ASSERT_EQ(0xee, buf[0]); in TEST_P()
67 ASSERT_EQ(0xee, buf[1]); in TEST_P()
68 ASSERT_EQ(0xee, buf[2]); in TEST_P()
69 ASSERT_EQ(0xee, buf[3]); in TEST_P()
76 ASSERT_EQ(4, mCache->getBlob("abcd", 4, buf, 4)); in TEST_P()
77 ASSERT_EQ('e', buf[0]); in TEST_P()
78 ASSERT_EQ('f', buf[1]); in TEST_P()
79 ASSERT_EQ('g', buf[2]); in TEST_P()
80 ASSERT_EQ('h', buf[3]); in TEST_P()
[all …]
/frameworks/base/libs/androidfw/tests/
DCursorWindow_test.cpp26 ASSERT_EQ(((w)->sizeInUse() & 3), 0); \
27 ASSERT_EQ(((w)->freeSpace() & 3), 0); \
28 ASSERT_EQ(((w)->sizeOfSlots() & 3), 0)
38 ASSERT_EQ(w->setNumColumns(3), OK); \
39 ASSERT_EQ(w->allocRow(), OK); \
40 ASSERT_EQ(w->allocRow(), OK); \
41 ASSERT_EQ(w->allocRow(), OK); \
57 ASSERT_EQ(w->getNumRows(), 0); in TEST()
58 ASSERT_EQ(w->getNumColumns(), 0); in TEST()
59 ASSERT_EQ(w->size(), 1 << 10); in TEST()
[all …]
/frameworks/av/media/utils/tests/
Dmediautils_fixedstring_tests.cpp30 ASSERT_EQ(8U, s0.capacity()); in TEST()
32 ASSERT_EQ(5U, s0.size()); in TEST()
33 ASSERT_EQ(3U, s0.remaining()); in TEST()
34 ASSERT_EQ(0, strcmp(s0.c_str(), "abcde")); in TEST()
36 ASSERT_EQ(0, strcmp(s0.data(), "abcde")); in TEST()
40 ASSERT_EQ(8U, s1.size()); in TEST()
42 ASSERT_EQ(0U, s1.remaining()); in TEST()
43 ASSERT_EQ(0, strcmp(s1.c_str(), "abcdefgh")); in TEST()
49 ASSERT_EQ(8U, s2.size()); in TEST()
50 ASSERT_EQ(0, strcmp(s2.c_str(), "abcdefgh")); in TEST()
[all …]
/frameworks/av/media/module/foundation/tests/
DUtils_test.cpp33 ASSERT_EQ(AStringUtils::Compare("Audio", "AudioExt", 5, false), 0); in TEST_F()
34 ASSERT_EQ(AStringUtils::Compare("Audio", "audiOExt", 5, true), 0); in TEST_F()
108 ASSERT_EQ(ADebug::GetLevelFromSettingsString("video", "", LVL(5)), LVL(5)); in TEST_F()
109 ASSERT_EQ(ADebug::GetLevelFromSettingsString("video", " \t \n ", LVL(2)), LVL(2)); in TEST_F()
110 ASSERT_EQ(ADebug::GetLevelFromSettingsString("video", "3", LVL(5)), LVL(3)); in TEST_F()
111 ASSERT_EQ(ADebug::GetLevelFromSettingsString("video", "3:*deo", LVL(5)), LVL(3)); in TEST_F()
112 ASSERT_EQ(ADebug::GetLevelFromSettingsString( in TEST_F()
114 ASSERT_EQ(ADebug::GetLevelFromSettingsString("video", "3:*deo,2:vid*", LVL(5)), LVL(2)); in TEST_F()
115 ASSERT_EQ(ADebug::GetLevelFromSettingsString( in TEST_F()
117 ASSERT_EQ(ADebug::GetLevelFromSettingsString( in TEST_F()
[all …]
/frameworks/native/libs/gui/tests/
DSurfaceTextureMultiContextGL_test.cpp29 ASSERT_EQ(OK, native_window_api_connect(mANW.get(), NATIVE_WINDOW_API_CPU)); in TEST_F()
34 ASSERT_EQ(OK, mST->updateTexImage()); in TEST_F()
39 ASSERT_EQ(EGL_SUCCESS, eglGetError()); in TEST_F()
40 ASSERT_EQ(INVALID_OPERATION, mST->updateTexImage()); in TEST_F()
44 ASSERT_EQ(OK, native_window_api_connect(mANW.get(), NATIVE_WINDOW_API_CPU)); in TEST_F()
49 ASSERT_EQ(OK, mST->updateTexImage()); in TEST_F()
52 ASSERT_EQ(OK, mST->detachFromContext()); in TEST_F()
60 ASSERT_EQ(OK, native_window_api_connect(mANW.get(), NATIVE_WINDOW_API_CPU)); in TEST_F()
65 ASSERT_EQ(OK, mST->updateTexImage()); in TEST_F()
69 ASSERT_EQ(OK, mST->detachFromContext()); in TEST_F()
[all …]
DBufferQueue_test.cpp65 ASSERT_EQ(OK, mProducer->query(NATIVE_WINDOW_MIN_UNDEQUEUED_BUFFERS, in GetMinUndequeuedBufferCount()
86 ASSERT_EQ(timestamp, item.mTimestamp); in testBufferItem()
87 ASSERT_EQ(isAutoTimestamp, item.mIsAutoTimestamp); in testBufferItem()
88 ASSERT_EQ(dataSpace, item.mDataSpace); in testBufferItem()
89 ASSERT_EQ(crop, item.mCrop); in testBufferItem()
90 ASSERT_EQ(static_cast<uint32_t>(scalingMode), item.mScalingMode); in testBufferItem()
91 ASSERT_EQ(transform, item.mTransform); in testBufferItem()
92 ASSERT_EQ(fence, item.mFence); in testBufferItem()
137 ASSERT_EQ(OK, mConsumer->consumerConnect(mc, false)); in TEST_F()
139 ASSERT_EQ(OK, in TEST_F()
[all …]
DStreamSplitter_test.cpp51 ASSERT_EQ(OK, outputConsumer->consumerConnect(new FakeListener, false)); in TEST_F()
55 ASSERT_EQ(OK, status); in TEST_F()
56 ASSERT_EQ(OK, splitter->addOutput(outputProducer)); in TEST_F()
59 ASSERT_EQ(OK, outputProducer->allowAllocation(false)); in TEST_F()
62 ASSERT_EQ(OK, in TEST_F()
69 ASSERT_EQ(IGraphicBufferProducer::BUFFER_NEEDS_REALLOCATION, in TEST_F()
72 ASSERT_EQ(OK, inputProducer->requestBuffer(slot, &buffer)); in TEST_F()
75 ASSERT_EQ(OK, buffer->lock(GraphicBuffer::USAGE_SW_WRITE_OFTEN, in TEST_F()
78 ASSERT_EQ(OK, buffer->unlock()); in TEST_F()
83 ASSERT_EQ(OK, inputProducer->queueBuffer(slot, qbInput, &qbOutput)); in TEST_F()
[all …]
/frameworks/libs/binary_translation/code_gen_lib/
Dcode_gen_lib_riscv64_test.cc48 ASSERT_EQ(&g_arg, arg); in DummyTrampoline()
49 ASSERT_EQ(&g_state, state); in DummyTrampoline()
50 ASSERT_EQ(g_state.cpu.insn_addr, ToGuestAddr(&g_insn)); in DummyTrampoline()
51 ASSERT_EQ(GetLinkRegister(g_state.cpu), ToGuestAddr(&g_ret_insn)); in DummyTrampoline()
69 ASSERT_EQ(g_state.cpu.insn_addr, ToGuestAddr(&g_ret_insn)); in TEST()
129 ASSERT_EQ(pc, ToGuestAddr(&g_insn)); in DummyRunner2()
131 ASSERT_EQ(1, buf->argc); in DummyRunner2()
132 ASSERT_EQ(0, buf->resc); in DummyRunner2()
133 ASSERT_EQ(1234u, buf->argv[0]); in DummyRunner2()
151 ASSERT_EQ(ToGuestAddr(&g_insn), pc); in Run10UInt8()
[all …]
/frameworks/native/opengl/libs/EGL/
DBlobCache_test.cpp52 ASSERT_EQ(BlobCache::InsertResult::kInserted, mBC->set("abcd", 4, "efgh", 4)); in TEST_F()
53 ASSERT_EQ(size_t(4), mBC->get("abcd", 4, buf, 4)); in TEST_F()
54 ASSERT_EQ('e', buf[0]); in TEST_F()
55 ASSERT_EQ('f', buf[1]); in TEST_F()
56 ASSERT_EQ('g', buf[2]); in TEST_F()
57 ASSERT_EQ('h', buf[3]); in TEST_F()
62 ASSERT_EQ(BlobCache::InsertResult::kInserted, mBC->set("ab", 2, "cd", 2)); in TEST_F()
63 ASSERT_EQ(BlobCache::InsertResult::kInserted, mBC->set("ef", 2, "gh", 2)); in TEST_F()
64 ASSERT_EQ(size_t(2), mBC->get("ab", 2, buf, 2)); in TEST_F()
65 ASSERT_EQ('c', buf[0]); in TEST_F()
[all …]
DMultifileBlobCache_test.cpp75 ASSERT_EQ(size_t(4), mMBC->get("abcd", 4, buf, 4)); in TEST_F()
76 ASSERT_EQ('e', buf[0]); in TEST_F()
77 ASSERT_EQ('f', buf[1]); in TEST_F()
78 ASSERT_EQ('g', buf[2]); in TEST_F()
79 ASSERT_EQ('h', buf[3]); in TEST_F()
86 ASSERT_EQ(size_t(2), mMBC->get("ab", 2, buf, 2)); in TEST_F()
87 ASSERT_EQ('c', buf[0]); in TEST_F()
88 ASSERT_EQ('d', buf[1]); in TEST_F()
89 ASSERT_EQ(size_t(2), mMBC->get("ef", 2, buf, 2)); in TEST_F()
90 ASSERT_EQ('g', buf[0]); in TEST_F()
[all …]
/frameworks/av/services/mediametrics/tests/
Dmediametrics_tests.cpp56 ASSERT_EQ(true, android::mediametrics::startsWith(s, "te")); in TEST()
57 ASSERT_EQ(true, android::mediametrics::startsWith(s, std::string("tes"))); in TEST()
58 ASSERT_EQ(false, android::mediametrics::startsWith(s, "ts")); in TEST()
59 ASSERT_EQ(false, android::mediametrics::startsWith(s, std::string("est"))); in TEST()
95 ASSERT_EQ(false, check); in TEST()
97 ASSERT_EQ(true, check); in TEST()
103 ASSERT_EQ('1', s->at(0)); in TEST()
104 ASSERT_EQ('2', s->at(1)); in TEST()
106 ASSERT_EQ('4', s->at(3)); in TEST()
109 ASSERT_EQ('3', s2->operator[](0)); // s2[0] == '3' in TEST()
[all …]
/frameworks/av/media/libaaudio/tests/
Dtest_histogram.cpp34 ASSERT_EQ(kNumBins, histogram.getNumBinsInRange()); in TEST()
38 ASSERT_EQ(0, histogram.getCount(i)); in TEST()
40 ASSERT_EQ(0, histogram.getCountBelowRange()); in TEST()
41 ASSERT_EQ(0, histogram.getCountAboveRange()); in TEST()
42 ASSERT_EQ(0, histogram.getCount()); in TEST()
51 ASSERT_EQ(2, histogram.getCount(2)); // For items 27 and 23 in TEST()
52 ASSERT_EQ(3, histogram.getLastItemNumber(2)); // Item 23 was the 0,1,2,3th item added. in TEST()
53 ASSERT_EQ(1, histogram.getCount(5)); // For item 53 in TEST()
54 ASSERT_EQ(1, histogram.getLastItemNumber(5)); // item 53 was the second item added. in TEST()
55 ASSERT_EQ(1, histogram.getCount(17)); // For item 171 in TEST()
[all …]
/frameworks/native/libs/binder/rust/tests/
Dserialization.cpp98 ASSERT_EQ(data.writeBool(true), OK); in TEST_F()
99 ASSERT_EQ(data.writeBool(false), OK); in TEST_F()
100 ASSERT_EQ(data.writeBoolVector(bools), OK); in TEST_F()
101 ASSERT_EQ(data.writeBoolVector(nullopt), OK); in TEST_F()
104 ASSERT_EQ(m_server->transact(TEST_BOOL, data, &reply), OK); in TEST_F()
108 ASSERT_EQ(reply.readBool(), true); in TEST_F()
109 ASSERT_EQ(reply.readBool(), false); in TEST_F()
110 ASSERT_EQ(reply.readBoolVector(&read_bools), OK); in TEST_F()
111 ASSERT_EQ(read_bools, bools); in TEST_F()
112 ASSERT_EQ(reply.readBoolVector(&maybe_bools), OK); in TEST_F()
[all …]
/frameworks/libs/binary_translation/tests/inline_asm_tests/
Dmain_arm64.cc33 ASSERT_EQ(res, 0x3952247371907021ULL); in TEST()
42 ASSERT_EQ(res, 0x110104abcd325271ULL); in TEST()
51 ASSERT_EQ(res, 0x1668039180937734ULL); in TEST()
98 ASSERT_EQ(res1, MakeUInt128(0x40000000U, 0U)); in TEST()
102 ASSERT_EQ(res2, MakeUInt128(0x40780000U, 0U)); in TEST()
106 ASSERT_EQ(res3, MakeUInt128(0x41800000U, 0U)); in TEST()
110 ASSERT_EQ(res4, MakeUInt128(0x41f80000U, 0U)); in TEST()
114 ASSERT_EQ(res5, MakeUInt128(0x3e000000U, 0U)); in TEST()
118 ASSERT_EQ(res6, MakeUInt128(0x3e780000U, 0U)); in TEST()
122 ASSERT_EQ(res7, MakeUInt128(0x3f800000U, 0U)); in TEST()
[all …]
Dprecise_fp_arm64.cc29 ASSERT_EQ(AsmFadd(kQuietNaN32, kOneF32, kFpcrDnBit), kDefaultNaN32); in TEST()
35 ASSERT_EQ(AsmFadd(kQuietNaN64, kOneF64, kFpcrDnBit), kDefaultNaN64); in TEST()
41 ASSERT_EQ(AsmFsub(kQuietNaN32, kOneF32, kFpcrDnBit), kDefaultNaN32); in TEST()
47 ASSERT_EQ(AsmFsub(kQuietNaN64, kOneF64, kFpcrDnBit), kDefaultNaN64); in TEST()
53 ASSERT_EQ(AsmFmul(kQuietNaN32, kOneF32, kFpcrDnBit), kDefaultNaN32); in TEST()
59 ASSERT_EQ(AsmFmul(kQuietNaN64, kOneF64, kFpcrDnBit), kDefaultNaN64); in TEST()
68 ASSERT_EQ(AsmFdiv(arg1, arg2, kFpcrDnBit), kDefaultNaN32); in TEST()
77 ASSERT_EQ(AsmFdiv(arg1, arg2, kFpcrDnBit), kDefaultNaN64); in TEST()
87 ASSERT_EQ(res, MakeUInt128(bit_cast<uint64_t>(2.0), kDefaultNaN64)); in TEST()
95 ASSERT_EQ(AsmFmax(fp_arg_two, kQuietNaN32), MakeU32x4(kQuietNaN32, 0, 0, 0)); in TEST()
[all …]
/frameworks/native/libs/binder/tests/
DbinderRpcWireProtocolTest.cpp44 [](Parcel* p) { ASSERT_EQ(OK, p->writeInterfaceToken(String16(u"tok"))); }, in __anon4b266a360102()
45 [](Parcel* p) { ASSERT_EQ(OK, p->writeInt32(-1)); }, in __anon4b266a360202()
46 [](Parcel* p) { ASSERT_EQ(OK, p->writeInt32(0)); }, in __anon4b266a360302()
47 [](Parcel* p) { ASSERT_EQ(OK, p->writeInt32(17)); }, in __anon4b266a360402()
48 [](Parcel* p) { ASSERT_EQ(OK, p->writeUint32(0)); }, in __anon4b266a360502()
49 [](Parcel* p) { ASSERT_EQ(OK, p->writeUint32(1)); }, in __anon4b266a360602()
50 [](Parcel* p) { ASSERT_EQ(OK, p->writeUint32(10003)); }, in __anon4b266a360702()
51 [](Parcel* p) { ASSERT_EQ(OK, p->writeInt64(-1)); }, in __anon4b266a360802()
52 [](Parcel* p) { ASSERT_EQ(OK, p->writeInt64(0)); }, in __anon4b266a360902()
53 [](Parcel* p) { ASSERT_EQ(OK, p->writeInt64(17)); }, in __anon4b266a360a02()
[all …]
/frameworks/libs/binary_translation/tests/ndk_program_tests/
Dthread_test.cc30 ASSERT_EQ(pthread_create( in TEST()
33 ASSERT_EQ(pthread_join(thread, nullptr), 0); in TEST()
34 ASSERT_EQ(test_variable, 1); in TEST()
86 ASSERT_EQ(pthread_key_create(&key, IncrementCounter), 0); in TEST()
87 ASSERT_EQ(pthread_setspecific(key, &count), 0); in TEST()
88 ASSERT_EQ(reinterpret_cast<void*>(&count), pthread_getspecific(key)); in TEST()
89 ASSERT_EQ(pthread_create(&thread, nullptr, ThreadKeyFunc, reinterpret_cast<void*>(&key)), 0); in TEST()
90 ASSERT_EQ(pthread_join(thread, reinterpret_cast<void**>(&thread_count)), 0); in TEST()
92 ASSERT_EQ(pthread_key_delete(key), 0); in TEST()
110 ASSERT_EQ(pthread_once(&once, ThreadOnceFunction), 0); in TEST()
[all …]
/frameworks/libs/binary_translation/intrinsics/riscv64/
Dintrinsics_test.cc38 ASSERT_EQ(Aadd<T>(vxrm, x, y), Roundoff(vxrm, x + y, 1)); in TEST()
60 ASSERT_EQ(std::get<0>(Asub<T>(vxrm, x, y)), in TEST()
76 ASSERT_EQ(std::get<0>(Div<int8_t>(int8_t{-128}, int8_t{0})), int8_t{-1}); in TEST()
77 ASSERT_EQ(std::get<0>(Div<int8_t>(int8_t{-128}, int8_t{-1})), int8_t{-128}); in TEST()
78 ASSERT_EQ(std::get<0>(Div<int8_t>(int8_t{-128}, int8_t{-2})), int8_t{64}); in TEST()
79 ASSERT_EQ(std::get<0>(Div<uint8_t>(uint8_t{128}, uint8_t{0})), uint8_t{255}); in TEST()
80 ASSERT_EQ(std::get<0>(Div<uint8_t>(uint8_t{128}, uint8_t{1})), uint8_t{128}); in TEST()
81 ASSERT_EQ(std::get<0>(Div<uint8_t>(uint8_t{128}, uint8_t{2})), uint8_t{64}); in TEST()
82 ASSERT_EQ(std::get<0>(Div<int16_t>(int16_t{-32768}, int16_t{0})), int16_t{-1}); in TEST()
83 ASSERT_EQ(std::get<0>(Div<int16_t>(int16_t{-32768}, int16_t{-1})), int16_t{-32768}); in TEST()
[all …]
/frameworks/libs/binary_translation/runtime_primitives/
Dtable_of_tables_test.cc28 ASSERT_EQ(42U, tot.Get(25)); in TEST()
29 ASSERT_EQ(1729U, *tot.Put(25, 1729)); in TEST()
30 ASSERT_EQ(1729U, tot.Get(25)); in TEST()
31 ASSERT_EQ(42U, tot.Get(255)); in TEST()
32 ASSERT_EQ(42U, tot.Get((25 << 16) | 25)); in TEST()
37 ASSERT_EQ(42U, tot.Get(25)); in TEST()
39 ASSERT_EQ(42U, *addr); in TEST()
40 ASSERT_EQ(42U, tot.Get(25)); in TEST()
41 ASSERT_EQ(1729U, *tot.Put(25, 1729)); in TEST()
42 ASSERT_EQ(1729U, *addr); in TEST()
[all …]
/frameworks/native/libs/input/tests/
DInputEvent_test.cpp80 ASSERT_EQ(0ULL, coords.bits); in TEST_F()
89 ASSERT_EQ(0, coords.getAxisValue(0)) in TEST_F()
91 ASSERT_EQ(0, coords.getAxisValue(1)) in TEST_F()
95 ASSERT_EQ(OK, coords.setAxisValue(1, 5)); in TEST_F()
96 ASSERT_EQ(5, coords.values[0]); in TEST_F()
97 ASSERT_EQ(0x4000000000000000ULL, coords.bits); in TEST_F()
99 ASSERT_EQ(0, coords.getAxisValue(0)) in TEST_F()
101 ASSERT_EQ(5, coords.getAxisValue(1)) in TEST_F()
105 ASSERT_EQ(OK, coords.setAxisValue(3, 2)); in TEST_F()
106 ASSERT_EQ(0x5000000000000000ULL, coords.bits); in TEST_F()
[all …]
/frameworks/libs/binary_translation/tools/nogrod/
Dleb128_tests.cc41 ASSERT_EQ(1U, DecodeSleb128(array_0, sizeof(array_0), &result)); in TEST()
42 ASSERT_EQ(0, result); in TEST()
43 ASSERT_EQ(1U, DecodeSleb128(array_neg1, sizeof(array_neg1), &result)); in TEST()
44 ASSERT_EQ(-1, result); in TEST()
45 ASSERT_EQ(1U, DecodeSleb128(array_63, sizeof(array_63), &result)); in TEST()
46 ASSERT_EQ(63, result); in TEST()
47 ASSERT_EQ(2U, DecodeSleb128(array_64, sizeof(array_64), &result)); in TEST()
48 ASSERT_EQ(64, result); in TEST()
49 ASSERT_EQ(2U, DecodeSleb128(array_neg64, sizeof(array_neg64), &result)); in TEST()
50 ASSERT_EQ(-64, result); in TEST()
[all …]
/frameworks/base/cmds/idmap2/tests/
DPoliciesTests.cpp35 ASSERT_EQ(*bitmask1, PolicyFlags::SYSTEM_PARTITION); in TEST()
39 ASSERT_EQ(*bitmask2, PolicyFlags::SYSTEM_PARTITION | PolicyFlags::VENDOR_PARTITION); in TEST()
43 ASSERT_EQ(*bitmask3, PolicyFlags::SYSTEM_PARTITION | PolicyFlags::VENDOR_PARTITION); in TEST()
48 ASSERT_EQ(*bitmask4, PolicyFlags::ODM_PARTITION | PolicyFlags::OEM_PARTITION | in TEST()
54 ASSERT_EQ(*bitmask5, PolicyFlags::SYSTEM_PARTITION); in TEST()
73 ASSERT_EQ(*bitmask11, PolicyFlags::SIGNATURE); in TEST()
77 ASSERT_EQ(*bitmask12, PolicyFlags::ACTOR_SIGNATURE); in TEST()
82 ASSERT_EQ(1, policies1.size()); in TEST()
83 ASSERT_EQ(policies1[0], "public"); in TEST()
87 ASSERT_EQ(2, policies2.size()); in TEST()
[all …]
/frameworks/minikin/tests/unittest/
DBufferTest.cpp48 ASSERT_EQ(fakeWriter.size(), 24u); in TEST()
53 ASSERT_EQ(writer.size(), buffer.size()); in TEST()
56 ASSERT_EQ(reader.current(), buffer.data()); in TEST()
57 ASSERT_EQ(reader.read<uint8_t>(), 0xABu); in TEST()
58 ASSERT_EQ(reader.current(), buffer.data() + 1u); in TEST()
59 ASSERT_EQ(reader.read<uint16_t>(), 0xCDEFu); in TEST()
60 ASSERT_EQ(reader.current(), buffer.data() + 4u); in TEST()
61 ASSERT_EQ(reader.read<uint8_t>(), 0x01u); in TEST()
62 ASSERT_EQ(reader.current(), buffer.data() + 5u); in TEST()
64 ASSERT_EQ(size, 2u); in TEST()
[all …]

12345678910>>...20