/frameworks/native/libs/input/tests/ |
D | InputEvent_test.cpp | 40 ASSERT_EQ(0ULL, coords.bits); in TEST_F() 49 ASSERT_EQ(0, coords.getAxisValue(0)) in TEST_F() 51 ASSERT_EQ(0, coords.getAxisValue(1)) in TEST_F() 55 ASSERT_EQ(OK, coords.setAxisValue(1, 5)); in TEST_F() 56 ASSERT_EQ(5, coords.values[0]); in TEST_F() 57 ASSERT_EQ(0x4000000000000000ULL, coords.bits); in TEST_F() 59 ASSERT_EQ(0, coords.getAxisValue(0)) in TEST_F() 61 ASSERT_EQ(5, coords.getAxisValue(1)) in TEST_F() 65 ASSERT_EQ(OK, coords.setAxisValue(3, 2)); in TEST_F() 66 ASSERT_EQ(0x5000000000000000ULL, coords.bits); in TEST_F() [all …]
|
/frameworks/compile/mclinker/unittests/ |
D | LEB128Test.cpp | 48 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 …]
|
D | ELFReaderTest.cpp | 83 ASSERT_EQ(m_pInput->context()->numOfSections(), 13u); in TEST_F() 86 ASSERT_EQ(".text", (*iter)->name()); in TEST_F() 87 ASSERT_EQ(llvm::ELF::SHT_PROGBITS, (*iter)->type()); in TEST_F() 88 ASSERT_EQ(0x40u, (*iter)->offset()); in TEST_F() 89 ASSERT_EQ(0x15u, (*iter)->size()); in TEST_F() 91 ASSERT_EQ(0x4u, (*iter)->align()); in TEST_F() 92 ASSERT_EQ(NULL, (*iter)->getLink()); in TEST_F() 93 ASSERT_EQ(0u, (*iter)->getInfo()); in TEST_F() 117 ASSERT_EQ("hello.c", std::string(m_pInput->context()->getSymbol(1)->name())); in TEST_F() 118 ASSERT_EQ("puts", std::string(m_pInput->context()->getSymbol(10)->name())); in TEST_F() [all …]
|
/frameworks/av/media/libstagefright/tests/ |
D | Utils_test.cpp | 37 ASSERT_EQ(AStringUtils::Compare("Audio", "AudioExt", 5, false), 0); in TEST_F() 38 ASSERT_EQ(AStringUtils::Compare("Audio", "audiOExt", 5, true), 0); in TEST_F() 112 ASSERT_EQ(ADebug::GetLevelFromSettingsString("video", "", LVL(5)), LVL(5)); in TEST_F() 113 ASSERT_EQ(ADebug::GetLevelFromSettingsString("video", " \t \n ", LVL(2)), LVL(2)); in TEST_F() 114 ASSERT_EQ(ADebug::GetLevelFromSettingsString("video", "3", LVL(5)), LVL(3)); in TEST_F() 115 ASSERT_EQ(ADebug::GetLevelFromSettingsString("video", "3:*deo", LVL(5)), LVL(3)); in TEST_F() 116 ASSERT_EQ(ADebug::GetLevelFromSettingsString( in TEST_F() 118 ASSERT_EQ(ADebug::GetLevelFromSettingsString("video", "3:*deo,2:vid*", LVL(5)), LVL(2)); in TEST_F() 119 ASSERT_EQ(ADebug::GetLevelFromSettingsString( in TEST_F() 121 ASSERT_EQ(ADebug::GetLevelFromSettingsString( in TEST_F() [all …]
|
/frameworks/native/libs/gui/tests/ |
D | BufferQueue_test.cpp | 63 ASSERT_EQ(OK, mProducer->query(NATIVE_WINDOW_MIN_UNDEQUEUED_BUFFERS, in GetMinUndequeuedBufferCount() 84 ASSERT_EQ(timestamp, item.mTimestamp); in testBufferItem() 85 ASSERT_EQ(isAutoTimestamp, item.mIsAutoTimestamp); in testBufferItem() 86 ASSERT_EQ(dataSpace, item.mDataSpace); in testBufferItem() 87 ASSERT_EQ(crop, item.mCrop); in testBufferItem() 88 ASSERT_EQ(static_cast<uint32_t>(scalingMode), item.mScalingMode); in testBufferItem() 89 ASSERT_EQ(transform, item.mTransform); in testBufferItem() 90 ASSERT_EQ(fence, item.mFence); in testBufferItem() 132 ASSERT_EQ(OK, mConsumer->consumerConnect(dc, false)); in TEST_F() 134 ASSERT_EQ(OK, in TEST_F() [all …]
|
D | SurfaceTextureMultiContextGL_test.cpp | 29 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 …]
|
D | SurfaceTextureClient_test.cpp | 62 ASSERT_EQ(EGL_SUCCESS, eglGetError()); in SetUp() 67 ASSERT_EQ(EGL_SUCCESS, eglGetError()); in SetUp() 73 ASSERT_EQ(EGL_SUCCESS, eglGetError()); in SetUp() 81 ASSERT_EQ(EGL_SUCCESS, eglGetError()); in SetUp() 85 ASSERT_EQ(EGL_SUCCESS, eglGetError()); in SetUp() 89 ASSERT_EQ(EGL_SUCCESS, eglGetError()); in SetUp() 149 ASSERT_EQ(EGL_SUCCESS, eglGetError()); in TEST_F() 155 ASSERT_EQ(EGL_SUCCESS, eglGetError()); in TEST_F() 171 ASSERT_EQ(EGL_SUCCESS, eglGetError()); in TEST_F() 219 ASSERT_EQ(OK, native_window_api_connect(mANW.get(), NATIVE_WINDOW_API_CPU)); in TEST_F() [all …]
|
D | StreamSplitter_test.cpp | 65 ASSERT_EQ(OK, outputConsumer->consumerConnect(new DummyListener, false)); in TEST_F() 69 ASSERT_EQ(OK, status); in TEST_F() 70 ASSERT_EQ(OK, splitter->addOutput(outputProducer)); in TEST_F() 73 ASSERT_EQ(OK, outputProducer->allowAllocation(false)); in TEST_F() 76 ASSERT_EQ(OK, inputProducer->connect(new DummyProducerListener, in TEST_F() 82 ASSERT_EQ(IGraphicBufferProducer::BUFFER_NEEDS_REALLOCATION, in TEST_F() 85 ASSERT_EQ(OK, inputProducer->requestBuffer(slot, &buffer)); in TEST_F() 88 ASSERT_EQ(OK, buffer->lock(GraphicBuffer::USAGE_SW_WRITE_OFTEN, in TEST_F() 91 ASSERT_EQ(OK, buffer->unlock()); in TEST_F() 96 ASSERT_EQ(OK, inputProducer->queueBuffer(slot, qbInput, &qbOutput)); in TEST_F() [all …]
|
D | SurfaceTextureGLToGL_test.cpp | 34 ASSERT_EQ(OK, mSTC->setMaxDequeuedBufferCount(2)); in TEST_F() 41 ASSERT_EQ(EGL_SUCCESS, eglGetError()); in TEST_F() 58 ASSERT_EQ(texWidth, buf->getHeight()); in TEST_F() 59 ASSERT_EQ(texHeight, buf->getWidth()); in TEST_F() 61 ASSERT_EQ(texWidth, buf->getWidth()); in TEST_F() 62 ASSERT_EQ(texHeight, buf->getHeight()); in TEST_F() 75 ASSERT_EQ((uint32_t) 0, mST->getCurrentTransform()); in TEST_F() 76 ASSERT_EQ(texWidth, buf->getWidth()); in TEST_F() 77 ASSERT_EQ(texHeight, buf->getHeight()); in TEST_F() 88 ASSERT_EQ(OK, mSTC->setMaxDequeuedBufferCount(2)); in TEST_F() [all …]
|
D | SRGB_test.cpp | 80 ASSERT_EQ(NO_ERROR, consumer->setDefaultBufferSize( in SetUp() 94 ASSERT_EQ(NO_ERROR, mCpuConsumer->unlockBuffer(mLockedBuffer)); in TearDown() 142 ASSERT_EQ(GL_NO_ERROR, glGetError()); in fillTexture() 172 ASSERT_EQ(GL_NO_ERROR, glGetError()); in initShaders() 176 ASSERT_EQ(GL_NO_ERROR, glGetError()); in initShaders() 187 ASSERT_EQ(GL_NO_ERROR, glGetError()); in initShaders() 189 ASSERT_EQ(GL_NO_ERROR, glGetError()); in initShaders() 192 ASSERT_EQ(GL_NO_ERROR, glGetError()); in initShaders() 194 ASSERT_EQ(GL_NO_ERROR, glGetError()); in initShaders() 198 ASSERT_EQ(GL_NO_ERROR, glGetError()); in initShaders() [all …]
|
D | Surface_test.cpp | 43 ASSERT_EQ(NO_ERROR, mComposerClient->initCheck()); in SetUp() 52 ASSERT_EQ(NO_ERROR, mSurfaceControl->setLayer(0x7fffffff)); in SetUp() 53 ASSERT_EQ(NO_ERROR, mSurfaceControl->show()); in SetUp() 100 ASSERT_EQ(NO_ERROR, sf->captureScreen(display, producer, Rect(), in TEST_F() 103 ASSERT_EQ(NO_ERROR, native_window_api_connect(anw.get(), in TEST_F() 108 ASSERT_EQ(NO_ERROR, native_window_set_usage(anw.get(), in TEST_F() 110 ASSERT_EQ(NO_ERROR, native_window_set_buffer_count(anw.get(), 3)); in TEST_F() 118 ASSERT_EQ(NO_ERROR, native_window_set_usage(anw.get(), 0)); in TEST_F() 119 ASSERT_EQ(NO_ERROR, native_window_dequeue_buffer_and_wait(anw.get(), in TEST_F() 123 ASSERT_EQ(NO_ERROR, anw->cancelBuffer(anw.get(), buf, -1)); in TEST_F() [all …]
|
D | SurfaceTextureGL_test.cpp | 31 ASSERT_EQ(NO_ERROR, native_window_api_connect(mANW.get(), in TEST_F() 33 ASSERT_EQ(NO_ERROR, native_window_set_buffers_dimensions(mANW.get(), in TEST_F() 35 ASSERT_EQ(NO_ERROR, native_window_set_buffers_format(mANW.get(), in TEST_F() 37 ASSERT_EQ(NO_ERROR, native_window_set_usage(mANW.get(), in TEST_F() 41 ASSERT_EQ(NO_ERROR, native_window_dequeue_buffer_and_wait(mANW.get(), in TEST_F() 52 ASSERT_EQ(NO_ERROR, mANW->queueBuffer(mANW.get(), buf->getNativeBuffer(), in TEST_F() 55 ASSERT_EQ(NO_ERROR, mST->updateTexImage()); in TEST_F() 81 ASSERT_EQ(NO_ERROR, native_window_api_connect(mANW.get(), in TEST_F() 83 ASSERT_EQ(NO_ERROR, native_window_set_buffers_dimensions(mANW.get(), in TEST_F() 85 ASSERT_EQ(NO_ERROR, native_window_set_buffers_format(mANW.get(), in TEST_F() [all …]
|
D | TextureRenderer.cpp | 61 ASSERT_EQ(GLenum(GL_NO_ERROR), glGetError()); in SetUp() 64 ASSERT_EQ(GLenum(GL_NO_ERROR), glGetError()); in SetUp() 67 ASSERT_EQ(GLenum(GL_NO_ERROR), glGetError()); in SetUp() 82 ASSERT_EQ(GLenum(GL_NO_ERROR), glGetError()); in drawTexture() 84 ASSERT_EQ(GLenum(GL_NO_ERROR), glGetError()); in drawTexture() 88 ASSERT_EQ(GLenum(GL_NO_ERROR), glGetError()); in drawTexture() 90 ASSERT_EQ(GLenum(GL_NO_ERROR), glGetError()); in drawTexture() 98 ASSERT_EQ(GLenum(GL_NO_ERROR), glGetError()); in drawTexture() 101 ASSERT_EQ(GLenum(GL_NO_ERROR), glGetError()); in drawTexture() 104 ASSERT_EQ(GLenum(GL_NO_ERROR), glGetError()); in drawTexture() [all …]
|
D | SurfaceTextureFBO_test.cpp | 30 ASSERT_EQ(NO_ERROR, native_window_api_connect(mANW.get(), in TEST_F() 32 ASSERT_EQ(NO_ERROR, native_window_set_buffers_dimensions(mANW.get(), in TEST_F() 34 ASSERT_EQ(NO_ERROR, native_window_set_buffers_format(mANW.get(), in TEST_F() 36 ASSERT_EQ(NO_ERROR, native_window_set_usage(mANW.get(), in TEST_F() 40 ASSERT_EQ(NO_ERROR, native_window_dequeue_buffer_and_wait(mANW.get(), in TEST_F() 52 ASSERT_EQ(NO_ERROR, mANW->queueBuffer(mANW.get(), buf->getNativeBuffer(), in TEST_F() 55 ASSERT_EQ(NO_ERROR, mST->updateTexImage()); in TEST_F() 64 ASSERT_EQ(NO_ERROR, native_window_dequeue_buffer_and_wait(mANW.get(), in TEST_F() 71 ASSERT_EQ(NO_ERROR, buf->lock(GRALLOC_USAGE_SW_WRITE_OFTEN, in TEST_F() 75 ASSERT_EQ(NO_ERROR, buf->unlock()); in TEST_F() [all …]
|
/frameworks/native/services/inputflinger/tests/ |
D | InputReader_test.cpp | 464 ASSERT_EQ(size_t(0), mEvents.size()) in assertQueueIsEmpty() 1036 ASSERT_EQ(1U, inputDevices.size()); in TEST_F() 1037 ASSERT_EQ(1, inputDevices[0].getId()); in TEST_F() 1039 ASSERT_EQ(AINPUT_KEYBOARD_TYPE_NON_ALPHABETIC, inputDevices[0].getKeyboardType()); in TEST_F() 1040 ASSERT_EQ(AINPUT_SOURCE_KEYBOARD, inputDevices[0].getSources()); in TEST_F() 1041 ASSERT_EQ(size_t(0), inputDevices[0].getMotionRanges().size()); in TEST_F() 1045 ASSERT_EQ(1U, inputDevices.size()); in TEST_F() 1046 ASSERT_EQ(1, inputDevices[0].getId()); in TEST_F() 1048 ASSERT_EQ(AINPUT_KEYBOARD_TYPE_NON_ALPHABETIC, inputDevices[0].getKeyboardType()); in TEST_F() 1049 ASSERT_EQ(AINPUT_SOURCE_KEYBOARD, inputDevices[0].getSources()); in TEST_F() [all …]
|
/frameworks/native/opengl/tests/EGLTest/ |
D | egl_cache_test.cpp | 46 ASSERT_EQ(0, mCache->getBlob("abcd", 4, buf, 4)); in TEST_F() 47 ASSERT_EQ(0xee, buf[0]); in TEST_F() 48 ASSERT_EQ(0xee, buf[1]); in TEST_F() 49 ASSERT_EQ(0xee, buf[2]); in TEST_F() 50 ASSERT_EQ(0xee, buf[3]); in TEST_F() 57 ASSERT_EQ(4, mCache->getBlob("abcd", 4, buf, 4)); in TEST_F() 58 ASSERT_EQ('e', buf[0]); in TEST_F() 59 ASSERT_EQ('f', buf[1]); in TEST_F() 60 ASSERT_EQ('g', buf[2]); in TEST_F() 61 ASSERT_EQ('h', buf[3]); in TEST_F() [all …]
|
D | EGL_test.cpp | 39 ASSERT_EQ(EGL_SUCCESS, eglGetError()); in SetUp() 44 ASSERT_EQ(EGL_SUCCESS, eglGetError()); in SetUp() 51 ASSERT_EQ(EGL_TRUE, success); in TearDown() 52 ASSERT_EQ(EGL_SUCCESS, eglGetError()); in TearDown() 68 ASSERT_EQ(EGL_TRUE, success); in TEST_F() 69 ASSERT_EQ(EGL_SUCCESS, eglGetError()); in TEST_F() 75 ASSERT_EQ(EGL_TRUE, success); in TEST_F() 76 ASSERT_EQ(EGL_SUCCESS, eglGetError()); in TEST_F() 78 ASSERT_EQ(EGL_TRUE, success); in TEST_F() 79 ASSERT_EQ(EGL_SUCCESS, eglGetError()); in TEST_F() [all …]
|
/frameworks/base/libs/androidfw/tests/ |
D | ResTable_test.cpp | 58 ASSERT_EQ(NO_ERROR, table.add(basic_arsc, basic_arsc_len)); in TEST() 63 ASSERT_EQ(NO_ERROR, table.add(basic_arsc, basic_arsc_len)); in TEST() 70 ASSERT_EQ(NO_ERROR, table.add(basic_arsc, basic_arsc_len)); in TEST() 78 ASSERT_EQ(base::R::string::test1, resID); in TEST() 83 ASSERT_EQ(NO_ERROR, table.add(basic_arsc, basic_arsc_len)); in TEST() 86 ASSERT_EQ(NO_ERROR, theme.applyStyle(base::R::style::Theme1)); in TEST() 92 ASSERT_EQ(Res_value::TYPE_INT_DEC, val.dataType); in TEST() 93 ASSERT_EQ(uint32_t(100), val.data); in TEST() 97 ASSERT_EQ(Res_value::TYPE_REFERENCE, val.dataType); in TEST() 98 ASSERT_EQ(base::R::integer::number1, val.data); in TEST() [all …]
|
D | Theme_test.cpp | 41 ASSERT_EQ(NO_ERROR, table.add(system_arsc, system_arsc_len)); in TEST() 42 ASSERT_EQ(NO_ERROR, table.add(app_arsc, app_arsc_len)); in TEST() 45 ASSERT_EQ(NO_ERROR, theme1.applyStyle(app::R::style::Theme_One)); in TEST() 48 ASSERT_EQ(Res_value::TYPE_INT_COLOR_RGB8, val.dataType); in TEST() 49 ASSERT_EQ(uint32_t(0xffff0000), val.data); in TEST() 51 ASSERT_EQ(Res_value::TYPE_INT_DEC, val.dataType); in TEST() 52 ASSERT_EQ(uint32_t(1), val.data); in TEST() 55 ASSERT_EQ(NO_ERROR, table2.add(system_arsc, system_arsc_len)); in TEST() 56 ASSERT_EQ(NO_ERROR, table2.add(app_arsc, app_arsc_len)); in TEST() 59 ASSERT_EQ(NO_ERROR, theme2.setTo(theme1)); in TEST() [all …]
|
D | AppAsLib_test.cpp | 33 ASSERT_EQ(NO_ERROR, table.add(appaslib_arsc, appaslib_arsc_len)); in TEST() 38 ASSERT_EQ(Res_value::TYPE_REFERENCE, val.dataType); in TEST() 39 ASSERT_EQ(appaslib::R::app::array::integerArray1, val.data); in TEST() 46 ASSERT_EQ(NO_ERROR, table.add(appaslib_arsc, appaslib_arsc_len, NULL, 0, -1, false, true)); in TEST() 51 ASSERT_EQ(Res_value::TYPE_REFERENCE, val.dataType); in TEST() 52 ASSERT_EQ(appaslib::R::lib::array::integerArray1, val.data); in TEST() 59 …ASSERT_EQ(NO_ERROR, table.add(appaslib_lib_arsc, appaslib_lib_arsc_len, NULL, 0, -1, false, true)); in TEST() 64 ASSERT_EQ(Res_value::TYPE_REFERENCE, val.dataType); in TEST() 65 ASSERT_EQ(appaslib::R::lib::array::integerArray1, val.data); in TEST()
|
D | Split_test.cpp | 67 ASSERT_EQ(NO_ERROR, table.add(basic_arsc, basic_arsc_len)); in TEST() 77 ASSERT_EQ(NO_ERROR, table.add(basic_arsc, basic_arsc_len)); in TEST() 102 ASSERT_EQ(NO_ERROR, table.add(basic_arsc, basic_arsc_len)); in TEST() 103 ASSERT_EQ(NO_ERROR, table.add(split_de_fr_arsc, split_de_fr_arsc_len)); in TEST() 123 ASSERT_EQ(NO_ERROR, table.add(basic_arsc, basic_arsc_len)); in TEST() 128 ASSERT_EQ(NO_ERROR, table.add(split_de_fr_arsc, split_de_fr_arsc_len)); in TEST() 151 ASSERT_EQ(NO_ERROR, table.add(basic_arsc, basic_arsc_len)); in TEST() 160 ASSERT_EQ(NO_ERROR, table.add(split_de_fr_arsc, split_de_fr_arsc_len)); in TEST() 177 ASSERT_EQ(NO_ERROR, table.add(basic_arsc, basic_arsc_len)); in TEST() 178 ASSERT_EQ(NO_ERROR, table.add(split_hdpi_v4_arsc, split_hdpi_v4_arsc_len)); in TEST() [all …]
|
/frameworks/native/libs/ui/tests/ |
D | mat_test.cpp | 49 ASSERT_EQ(m0[0].x, 1); in TEST_F() 50 ASSERT_EQ(m0[0].y, 0); in TEST_F() 51 ASSERT_EQ(m0[0].z, 0); in TEST_F() 52 ASSERT_EQ(m0[0].w, 0); in TEST_F() 53 ASSERT_EQ(m0[1].x, 0); in TEST_F() 54 ASSERT_EQ(m0[1].y, 1); in TEST_F() 55 ASSERT_EQ(m0[1].z, 0); in TEST_F() 56 ASSERT_EQ(m0[1].w, 0); in TEST_F() 57 ASSERT_EQ(m0[2].x, 0); in TEST_F() 58 ASSERT_EQ(m0[2].y, 0); in TEST_F() [all …]
|
/frameworks/wilhelm/tests/listening/ |
D | seekTorture.c | 26 #define ASSERT_EQ(x, y) assert((x) == (y)) macro 41 ASSERT_EQ(SL_RESULT_SUCCESS, result); in main() 43 ASSERT_EQ(SL_RESULT_SUCCESS, result); in main() 46 ASSERT_EQ(SL_RESULT_SUCCESS, result); in main() 51 ASSERT_EQ(SL_RESULT_SUCCESS, result); in main() 53 ASSERT_EQ(SL_RESULT_SUCCESS, result); in main() 77 ASSERT_EQ(SL_RESULT_SUCCESS, result); in main() 79 ASSERT_EQ(SL_RESULT_SUCCESS, result); in main() 82 ASSERT_EQ(SL_RESULT_SUCCESS, result); in main() 85 ASSERT_EQ(SL_RESULT_SUCCESS, result); in main() [all …]
|
/frameworks/base/tools/aapt2/flatten/ |
D | XmlFlattener_test.cpp | 89 ASSERT_EQ(tree.next(), android::ResXMLTree::START_TAG); in TEST_F() 91 ASSERT_EQ(tree.getElementNamespace(&len), nullptr); in TEST_F() 95 ASSERT_EQ(1u, tree.getAttributeCount()); in TEST_F() 96 ASSERT_EQ(tree.getAttributeNamespace(0, &len), nullptr); in TEST_F() 102 ASSERT_EQ(tree.next(), android::ResXMLTree::START_TAG); in TEST_F() 104 ASSERT_EQ(tree.getElementNamespace(&len), nullptr); in TEST_F() 108 ASSERT_EQ(1u, tree.getAttributeCount()); in TEST_F() 115 ASSERT_EQ(tree.next(), android::ResXMLTree::END_TAG); in TEST_F() 116 ASSERT_EQ(tree.next(), android::ResXMLTree::START_TAG); in TEST_F() 118 ASSERT_EQ(tree.getElementNamespace(&len), nullptr); in TEST_F() [all …]
|
/frameworks/base/tools/aapt2/util/ |
D | BigBuffer_test.cpp | 71 ASSERT_EQ(sizeof(uint32_t), b->size); in TEST() 72 ASSERT_EQ(33u, *reinterpret_cast<uint32_t*>(b->buffer.get())); in TEST() 76 ASSERT_EQ(sizeof(uint32_t), b->size); in TEST() 77 ASSERT_EQ(44u, *reinterpret_cast<uint32_t*>(b->buffer.get())); in TEST() 80 ASSERT_EQ(b, buffer.end()); in TEST() 87 ASSERT_EQ(2u, buffer.size()); in TEST() 89 ASSERT_EQ(4u, buffer.size()); in TEST() 91 ASSERT_EQ(4u, buffer.size()); in TEST() 93 ASSERT_EQ(6u, buffer.size()); in TEST() 95 ASSERT_EQ(8u, buffer.size()); in TEST()
|