/frameworks/native/libs/math/tests/ |
D | vec_test.cpp | 35 EXPECT_EQ(sizeof(vec4), sizeof(float)*4); in TEST_F() 36 EXPECT_EQ(sizeof(vec3), sizeof(float)*3); in TEST_F() 37 EXPECT_EQ(sizeof(vec2), sizeof(float)*2); in TEST_F() 38 EXPECT_EQ(reinterpret_cast<void*>(&v3), reinterpret_cast<void*>(&v4)); in TEST_F() 43 EXPECT_EQ(v0.x, 0); in TEST_F() 44 EXPECT_EQ(v0.y, 0); in TEST_F() 45 EXPECT_EQ(v0.z, 0); in TEST_F() 46 EXPECT_EQ(v0.w, 0); in TEST_F() 49 EXPECT_EQ(v1.x, 1); in TEST_F() 50 EXPECT_EQ(v1.y, 1); in TEST_F() [all …]
|
D | quat_test.cpp | 42 EXPECT_EQ(sizeof(quatd), sizeof(double)*4); in TEST_F() 43 EXPECT_EQ(reinterpret_cast<void*>(&q), reinterpret_cast<void*>(&v)); in TEST_F() 48 EXPECT_EQ(q0.x, 0); in TEST_F() 49 EXPECT_EQ(q0.y, 0); in TEST_F() 50 EXPECT_EQ(q0.z, 0); in TEST_F() 51 EXPECT_EQ(q0.w, 0); in TEST_F() 54 EXPECT_EQ(q1.x, 0); in TEST_F() 55 EXPECT_EQ(q1.y, 0); in TEST_F() 56 EXPECT_EQ(q1.z, 0); in TEST_F() 57 EXPECT_EQ(q1.w, 1); in TEST_F() [all …]
|
D | half_test.cpp | 35 EXPECT_EQ(2UL, sizeof(half)); in TEST_F() 38 EXPECT_EQ(0x0000, half( 0.0f).getBits()); in TEST_F() 39 EXPECT_EQ(0x8000, half(-0.0f).getBits()); in TEST_F() 42 EXPECT_EQ(0x7e00, half(NAN).getBits()); in TEST_F() 45 EXPECT_EQ(0x7C00, half( std::numeric_limits<float>::infinity()).getBits()); in TEST_F() 46 EXPECT_EQ(0xFC00, half(-std::numeric_limits<float>::infinity()).getBits()); in TEST_F() 49 EXPECT_EQ(0x3C01, half(1.0009765625).getBits()); in TEST_F() 50 EXPECT_EQ(0xC000, half(-2).getBits()); in TEST_F() 51 EXPECT_EQ(0x0400, half(6.10352e-5).getBits()); in TEST_F() 52 EXPECT_EQ(0x7BFF, half(65504).getBits()); in TEST_F() [all …]
|
/frameworks/native/cmds/installd/tests/ |
D | installd_utils_test.cpp | 72 EXPECT_EQ(-1, validate_apk_path(badprefix1)) in TEST_F() 76 EXPECT_EQ(-1, validate_apk_path(badprefix2)) in TEST_F() 80 EXPECT_EQ(-1, validate_apk_path(badprefix3)) in TEST_F() 84 EXPECT_EQ(-1, validate_apk_path(badprefix4)) in TEST_F() 91 EXPECT_EQ(0, validate_apk_path(internal1)) in TEST_F() 96 EXPECT_EQ(0, validate_apk_path(path2)) in TEST_F() 100 EXPECT_EQ(-1, validate_apk_path(badint1)) in TEST_F() 104 EXPECT_EQ(-1, validate_apk_path(badint2)) in TEST_F() 109 EXPECT_EQ(-1, validate_apk_path(bad_path3)) in TEST_F() 113 EXPECT_EQ(-1, validate_apk_path(bad_path4)) in TEST_F() [all …]
|
D | installd_cache_test.cpp | 145 EXPECT_EQ(0, exists("com.example/normal")); in TEST_F() 146 EXPECT_EQ(0, exists("com.example/cache/foo/one")); in TEST_F() 147 EXPECT_EQ(0, exists("com.example/cache/foo/two")); in TEST_F() 152 EXPECT_EQ(0, exists("com.example/normal")); in TEST_F() 153 EXPECT_EQ(-1, exists("com.example/cache/foo/one")); in TEST_F() 154 EXPECT_EQ(-1, exists("com.example/cache/foo/two")); in TEST_F() 169 EXPECT_EQ(-1, exists("com.example/cache/foo/one")); in TEST_F() 170 EXPECT_EQ(0, exists("com.example/cache/foo/two")); in TEST_F() 175 EXPECT_EQ(-1, exists("com.example/cache/foo/one")); in TEST_F() 176 EXPECT_EQ(-1, exists("com.example/cache/foo/two")); in TEST_F() [all …]
|
/frameworks/minikin/tests/unittest/ |
D | WordBreakerTests.cpp | 39 EXPECT_EQ(0, breaker.current()); in TEST() 40 EXPECT_EQ(6, breaker.followingWithLocale(Locale("en-US"), 0)); // after "hello " in TEST() 41 EXPECT_EQ(0, breaker.wordStart()); // "hello" in TEST() 42 EXPECT_EQ(5, breaker.wordEnd()); in TEST() 43 EXPECT_EQ(0, breaker.breakBadness()); in TEST() 44 EXPECT_EQ(6, breaker.current()); in TEST() 45 EXPECT_EQ((ssize_t)NELEM(buf), breaker.next()); // end in TEST() 46 EXPECT_EQ(6, breaker.wordStart()); // "world" in TEST() 47 EXPECT_EQ(11, breaker.wordEnd()); in TEST() 48 EXPECT_EQ(0, breaker.breakBadness()); in TEST() [all …]
|
D | LayoutCoreTest.cpp | 75 EXPECT_EQ(1u, layout.glyphCount()); in TEST() 76 EXPECT_EQ(Point(0, 0), layout.pointAt(0)); in TEST() 77 EXPECT_EQ(MinikinRect(0.0f, 10.0f, 10.0f, 0.0f), layout.bounds()); in TEST() 78 EXPECT_EQ(MinikinExtent(-100.0f, 20.0f), layout.extent()); in TEST() 79 EXPECT_EQ(1u, layout.fonts().size()); in TEST() 81 EXPECT_EQ(1u, layout.advances().size()); in TEST() 82 EXPECT_EQ(10.0f, layout.advances()[0]); in TEST() 83 EXPECT_EQ(10.0f, layout.advance()); in TEST() 87 EXPECT_EQ(2u, layout.glyphCount()); in TEST() 88 EXPECT_EQ(Point(0, 0), layout.pointAt(0)); in TEST() [all …]
|
D | HyphenatorMapTest.cpp | 151 EXPECT_EQ(AS_HYPHENATOR, lookup("as")); in TEST_F() 152 EXPECT_EQ(BG_HYPHENATOR, lookup("bg")); in TEST_F() 153 EXPECT_EQ(BN_HYPHENATOR, lookup("bn")); in TEST_F() 154 EXPECT_EQ(CU_HYPHENATOR, lookup("cu")); in TEST_F() 155 EXPECT_EQ(CY_HYPHENATOR, lookup("cy")); in TEST_F() 156 EXPECT_EQ(DA_HYPHENATOR, lookup("da")); in TEST_F() 157 EXPECT_EQ(DE_1901_HYPHENATOR, lookup("de-1901")); in TEST_F() 158 EXPECT_EQ(DE_1996_HYPHENATOR, lookup("de-1996")); in TEST_F() 159 EXPECT_EQ(DE_CH_1901_HYPHENATOR, lookup("de-CH-1901")); in TEST_F() 160 EXPECT_EQ(EN_GB_HYPHENATOR, lookup("en-GB")); in TEST_F() [all …]
|
D | FontCollectionItemizeTest.cpp | 75 EXPECT_EQ(runMax, resultWithRunMax.size()); in itemize() 77 EXPECT_EQ(result[i].start, resultWithRunMax[i].start); in itemize() 78 EXPECT_EQ(result[i].end, resultWithRunMax[i].end); in itemize() 79 EXPECT_EQ(result[i].fakedFont, resultWithRunMax[i].fakedFont); in itemize() 125 EXPECT_EQ(0, runs[0].start); in TEST() 126 EXPECT_EQ(5, runs[0].end); in TEST() 127 EXPECT_EQ(kLatinFont, getFontName(runs[0])); in TEST() 133 EXPECT_EQ(0, runs[0].start); in TEST() 134 EXPECT_EQ(5, runs[0].end); in TEST() 135 EXPECT_EQ(kLatinItalicFont, getFontName(runs[0])); in TEST() [all …]
|
D | MeasuredTextTest.cpp | 57 EXPECT_EQ(expectedWidths, measuredText->widths); in TEST() 71 EXPECT_EQ(MinikinRect(0.0f, 0.0f, 0.0f, 0.0f), mt->getBounds(text, Range(0, 0))); in TEST() 72 EXPECT_EQ(MinikinRect(0.0f, 10.0f, 10.0f, 0.0f), mt->getBounds(text, Range(0, 1))); in TEST() 73 EXPECT_EQ(MinikinRect(0.0f, 10.0f, 20.0f, 0.0f), mt->getBounds(text, Range(0, 2))); in TEST() 74 EXPECT_EQ(MinikinRect(0.0f, 10.0f, 10.0f, 0.0f), mt->getBounds(text, Range(1, 2))); in TEST() 75 EXPECT_EQ(MinikinRect(0.0f, 10.0f, 130.0f, 0.0f), mt->getBounds(text, Range(0, text.size()))); in TEST() 93 EXPECT_EQ(MinikinRect(0.0f, 0.0f, 0.0f, 0.0f), mt->getBounds(text, Range(0, 0))); in TEST() 94 EXPECT_EQ(MinikinRect(0.0f, 10.0f, 10.0f, 0.0f), mt->getBounds(text, Range(0, 1))); in TEST() 95 EXPECT_EQ(MinikinRect(0.0f, 10.0f, 20.0f, 0.0f), mt->getBounds(text, Range(0, 2))); in TEST() 96 EXPECT_EQ(MinikinRect(0.0f, 10.0f, 10.0f, 0.0f), mt->getBounds(text, Range(1, 2))); in TEST() [all …]
|
D | StringPieceTest.cpp | 26 EXPECT_EQ(nullptr, s.data()); in TEST() 27 EXPECT_EQ(0u, s.size()); in TEST() 33 EXPECT_EQ(0u, s.size()); in TEST() 39 EXPECT_EQ(0u, s.size()); in TEST() 45 EXPECT_EQ(5u, s.size()); in TEST() 47 EXPECT_EQ("abcde", s); in TEST() 53 EXPECT_EQ(5u, s.size()); in TEST() 55 EXPECT_EQ("abcde", s); in TEST() 61 EXPECT_EQ(3u, s.size()); in TEST() 63 EXPECT_EQ("abc", s); in TEST() [all …]
|
D | HyphenatorTest.cpp | 53 EXPECT_EQ((size_t)5, result.size()); in TEST() 54 EXPECT_EQ(HyphenationType::DONT_BREAK, result[0]); in TEST() 55 EXPECT_EQ(HyphenationType::DONT_BREAK, result[1]); in TEST() 56 EXPECT_EQ(HyphenationType::BREAK_AND_INSERT_HYPHEN, result[2]); in TEST() 57 EXPECT_EQ(HyphenationType::DONT_BREAK, result[3]); in TEST() 58 EXPECT_EQ(HyphenationType::DONT_BREAK, result[4]); in TEST() 67 EXPECT_EQ((size_t)5, result.size()); in TEST() 68 EXPECT_EQ(HyphenationType::DONT_BREAK, result[0]); in TEST() 69 EXPECT_EQ(HyphenationType::DONT_BREAK, result[1]); in TEST() 70 EXPECT_EQ(HyphenationType::DONT_BREAK, result[2]); in TEST() [all …]
|
/frameworks/base/libs/androidfw/tests/ |
D | AttributeResolution_test.cpp | 87 EXPECT_EQ(Res_value::TYPE_INT_DEC, values_cursor[STYLE_TYPE]); in TEST() 88 EXPECT_EQ(1u, values_cursor[STYLE_DATA]); in TEST() 89 EXPECT_EQ(0u, values_cursor[STYLE_RESOURCE_ID]); in TEST() 90 EXPECT_EQ(1u, values_cursor[STYLE_ASSET_COOKIE]); in TEST() 91 EXPECT_EQ(0u, values_cursor[STYLE_DENSITY]); in TEST() 92 EXPECT_EQ(public_flag, values_cursor[STYLE_CHANGING_CONFIGURATIONS]); in TEST() 95 EXPECT_EQ(Res_value::TYPE_INT_DEC, values_cursor[STYLE_TYPE]); in TEST() 96 EXPECT_EQ(2u, values_cursor[STYLE_DATA]); in TEST() 97 EXPECT_EQ(0u, values_cursor[STYLE_RESOURCE_ID]); in TEST() 98 EXPECT_EQ(1u, values_cursor[STYLE_ASSET_COOKIE]); in TEST() [all …]
|
D | AttributeFinder_test.cpp | 56 EXPECT_EQ(0, finder.Find(0x01010000)); in TEST() 57 EXPECT_EQ(1, finder.Find(0x01010001)); in TEST() 58 EXPECT_EQ(2, finder.Find(0x01010002)); in TEST() 59 EXPECT_EQ(3, finder.Find(0x01010004)); in TEST() 60 EXPECT_EQ(4, finder.Find(0x02010001)); in TEST() 61 EXPECT_EQ(5, finder.Find(0x02010010)); in TEST() 62 EXPECT_EQ(6, finder.Find(0x7f010001)); in TEST() 63 EXPECT_EQ(end, finder.Find(0x7f010002)); in TEST() 70 EXPECT_EQ(6, finder.Find(0x7f010001)); in TEST() 71 EXPECT_EQ(end, finder.Find(0x7f010002)); in TEST() [all …]
|
/frameworks/native/services/vr/performanced/ |
D | performance_service_tests.cpp | 67 EXPECT_EQ(0, error); in TEST() 70 EXPECT_EQ(0, error); in TEST() 94 EXPECT_EQ(0, error); in TEST() 105 EXPECT_EQ(-EINVAL, error); in TEST() 109 EXPECT_EQ(-ENOENT, error); in TEST() 113 EXPECT_EQ(0, error); in TEST() 122 EXPECT_EQ(0, error); in TEST() 123 EXPECT_EQ(SCHED_BATCH, sched_getscheduler(0)); in TEST() 126 EXPECT_EQ(0, error); in TEST() 127 EXPECT_EQ(SCHED_FIFO | SCHED_RESET_ON_FORK, sched_getscheduler(0)); in TEST() [all …]
|
/frameworks/base/core/tests/coretests/src/android/os/ |
D | UserHandleTest.java | 39 EXPECT_EQ(0, multiuser_get_uid(0, 0)); in testMerge() 40 EXPECT_EQ(1000, multiuser_get_uid(0, 1000)); in testMerge() 41 EXPECT_EQ(10000, multiuser_get_uid(0, 10000)); in testMerge() 42 EXPECT_EQ(50000, multiuser_get_uid(0, 50000)); in testMerge() 43 EXPECT_EQ(1000000, multiuser_get_uid(10, 0)); in testMerge() 44 EXPECT_EQ(1001000, multiuser_get_uid(10, 1000)); in testMerge() 45 EXPECT_EQ(1010000, multiuser_get_uid(10, 10000)); in testMerge() 46 EXPECT_EQ(1050000, multiuser_get_uid(10, 50000)); in testMerge() 51 EXPECT_EQ(0, multiuser_get_user_id(0)); in testSplitUser() 52 EXPECT_EQ(0, multiuser_get_user_id(1000)); in testSplitUser() [all …]
|
/frameworks/base/cmds/statsd/tests/e2e/ |
D | MetricActivation_e2e_test.cpp | 261 EXPECT_EQ(broadcastUid, uid); in TEST() 284 EXPECT_EQ(eventActivationMap[0]->state, ActivationState::kNotActive); in TEST() 285 EXPECT_EQ(eventActivationMap[0]->start_ns, 0); in TEST() 286 EXPECT_EQ(eventActivationMap[0]->ttl_ns, 60 * 6 * NS_PER_SEC); in TEST() 287 EXPECT_EQ(eventActivationMap[2]->state, ActivationState::kNotActive); in TEST() 288 EXPECT_EQ(eventActivationMap[2]->start_ns, 0); in TEST() 289 EXPECT_EQ(eventActivationMap[2]->ttl_ns, 60 * 2 * NS_PER_SEC); in TEST() 297 EXPECT_EQ(broadcastCount, 0); in TEST() 304 EXPECT_EQ(broadcastCount, 1); in TEST() 306 EXPECT_EQ(activeConfigsBroadcast[0], cfgId); in TEST() [all …]
|
/frameworks/native/libs/vr/libpdx/ |
D | serialization_tests.cpp | 109 EXPECT_EQ(1, tt.a); in TEST() 110 EXPECT_EQ(2.0, tt.b); in TEST() 111 EXPECT_EQ("three", tt.c); in TEST() 112 EXPECT_EQ(TestType::Foo::kBar, tt.d); in TEST() 124 EXPECT_EQ(expected, result); in TEST() 131 EXPECT_EQ(expected, result); in TEST() 144 EXPECT_EQ(expected, result); in TEST() 151 EXPECT_EQ(expected, result); in TEST() 158 EXPECT_EQ(expected, result); in TEST() 165 EXPECT_EQ(expected, result); in TEST() [all …]
|
/frameworks/native/services/surfaceflinger/tests/unittests/ |
D | SchedulerUtilsTest.cpp | 44 EXPECT_EQ(0, calculate_mean(testArray)); in TEST_F() 47 EXPECT_EQ(1, calculate_mean(testArray)); in TEST_F() 50 EXPECT_EQ(3, calculate_mean(testArray)); in TEST_F() 52 EXPECT_EQ(4, calculate_mean(testArray)); in TEST_F() 54 EXPECT_EQ(5, calculate_mean(testArray)); in TEST_F() 56 EXPECT_EQ(7, calculate_mean(testArray)); in TEST_F() 60 EXPECT_EQ(33, calculate_mean(testArray)); in TEST_F() 66 EXPECT_EQ(0, calculate_median(&testVector)); in TEST_F() 69 EXPECT_EQ(33, calculate_median(&testVector)); in TEST_F() 72 EXPECT_EQ(33, calculate_median(&testVector)); in TEST_F() [all …]
|
D | VSyncModulatorTest.cpp | 72 EXPECT_EQ(APP_LATE, mMockScheduler.getOffset(mAppConnection)); in SetUp() 73 EXPECT_EQ(SF_LATE, mMockScheduler.getOffset(mSfConnection)); in SetUp() 83 EXPECT_EQ(APP_LATE, mMockScheduler.getOffset(mAppConnection)); in TEST_F() 84 EXPECT_EQ(SF_LATE, mMockScheduler.getOffset(mSfConnection)); in TEST_F() 88 EXPECT_EQ(APP_LATE, mMockScheduler.getOffset(mAppConnection)); in TEST_F() 89 EXPECT_EQ(SF_LATE, mMockScheduler.getOffset(mSfConnection)); in TEST_F() 97 EXPECT_EQ(APP_EARLY, mMockScheduler.getOffset(mAppConnection)); in TEST_F() 98 EXPECT_EQ(SF_EARLY, mMockScheduler.getOffset(mSfConnection)); in TEST_F() 102 EXPECT_EQ(APP_EARLY, mMockScheduler.getOffset(mAppConnection)); in TEST_F() 103 EXPECT_EQ(SF_EARLY, mMockScheduler.getOffset(mSfConnection)); in TEST_F() [all …]
|
/frameworks/av/media/codec2/tests/ |
D | C2UtilTest.cpp | 85 EXPECT_EQ("yes", _C2EnumUtils::camelCaseToDashed("YES")); in TEST_F() 86 EXPECT_EQ("no", _C2EnumUtils::camelCaseToDashed("NO")); in TEST_F() 87 EXPECT_EQ("yes-no", _C2EnumUtils::camelCaseToDashed("YES_NO")); in TEST_F() 88 EXPECT_EQ("yes-no", _C2EnumUtils::camelCaseToDashed("YES__NO")); in TEST_F() 89 EXPECT_EQ("a2dp", _C2EnumUtils::camelCaseToDashed("A2DP")); in TEST_F() 90 EXPECT_EQ("mp2-ts", _C2EnumUtils::camelCaseToDashed("MP2_TS")); in TEST_F() 91 EXPECT_EQ("block-2d", _C2EnumUtils::camelCaseToDashed("BLOCK_2D")); in TEST_F() 92 EXPECT_EQ("mpeg-2-ts", _C2EnumUtils::camelCaseToDashed("MPEG_2_TS")); in TEST_F() 93 EXPECT_EQ("_hidden-value", _C2EnumUtils::camelCaseToDashed("_HIDDEN_VALUE")); in TEST_F() 94 EXPECT_EQ("__hidden-value2", _C2EnumUtils::camelCaseToDashed("__HIDDEN_VALUE2")); in TEST_F() [all …]
|
D | C2Param_test.cpp | 147 EXPECT_EQ(FD::INT32, fields[0].type()); in TEST_P() 149 EXPECT_EQ(1u, fields[0].extent()); in TEST_P() 150 EXPECT_EQ(_C2FieldId(0, 4), fields[0]._mFieldId); in TEST_P() 152 EXPECT_EQ(expected[0], fields[0]); in TEST_P() 153 EXPECT_EQ(expected[1], fields[1]); in TEST_P() 154 EXPECT_EQ(expected[2], fields[2]); in TEST_P() 155 EXPECT_EQ(expected[3], fields[3]); in TEST_P() 156 EXPECT_EQ(expected[4], fields[4]); in TEST_P() 157 EXPECT_EQ(expected[5], fields[5]); in TEST_P() 158 EXPECT_EQ(expected[6], fields[6]); in TEST_P() [all …]
|
/frameworks/ml/nn/runtime/test/ |
D | TestValidation.cpp | 64 EXPECT_EQ(ANeuralNetworksModel_addOperand(mModel, &operandType), ANEURALNETWORKS_NO_ERROR); in addScalarOperand() 69 EXPECT_EQ(ANeuralNetworksModel_addOperand(mModel, &operandType), ANEURALNETWORKS_NO_ERROR); in addOperand() 158 EXPECT_EQ(ANeuralNetworksModel_getExtensionOperandType(mModel, kTestExtensionName, in getExtensionOperandType() 251 EXPECT_EQ(ANeuralNetworksMemory_createFromFd(size, PROT_READ | PROT_WRITE, fd, 0, &ashmem), in createAshmem() 313 EXPECT_EQ(ANeuralNetworksModel_addOperand(model, &operandType), ANEURALNETWORKS_NO_ERROR); in addScalarOperand() 323 EXPECT_EQ(ANeuralNetworksModel_addOperand(model, &operandType), ANEURALNETWORKS_NO_ERROR); in addTensorOperand() 391 EXPECT_EQ(ANeuralNetworksModel_create(nullptr), ANEURALNETWORKS_UNEXPECTED_NULL); in TEST_F() 397 EXPECT_EQ(ANeuralNetworksModel_addOperand(nullptr, &floatType), in TEST_F() 399 EXPECT_EQ(ANeuralNetworksModel_addOperand(mModel, nullptr), ANEURALNETWORKS_UNEXPECTED_NULL); in TEST_F() 409 EXPECT_EQ(ANeuralNetworksModel_addOperand(mModel, &quant8TypeInvalidScale), in TEST_F() [all …]
|
/frameworks/base/libs/hwui/tests/unit/ |
D | TypefaceTests.cpp | 72 EXPECT_EQ(regular.get(), Typeface::resolveDefault(regular.get())); in TEST() 79 EXPECT_EQ(regular.get(), Typeface::resolveDefault(nullptr)); in TEST() 86 EXPECT_EQ(700, bold->fStyle.weight()); in TEST() 87 EXPECT_EQ(minikin::FontStyle::Slant::UPRIGHT, bold->fStyle.slant()); in TEST() 88 EXPECT_EQ(Typeface::kNormal, bold->fAPIStyle); in TEST() 91 EXPECT_EQ(300, light->fStyle.weight()); in TEST() 92 EXPECT_EQ(minikin::FontStyle::Slant::UPRIGHT, light->fStyle.slant()); in TEST() 93 EXPECT_EQ(Typeface::kNormal, light->fAPIStyle); in TEST() 99 EXPECT_EQ(400, normal->fStyle.weight()); in TEST() 100 EXPECT_EQ(minikin::FontStyle::Slant::UPRIGHT, normal->fStyle.slant()); in TEST() [all …]
|
/frameworks/base/libs/protoutil/tests/ |
D | EncodedBuffer_test.cpp | 26 EXPECT_EQ(p->pos(), pos); in expectPointer() 27 EXPECT_EQ(p->index(), pos / TEST_CHUNK_SIZE); in expectPointer() 28 EXPECT_EQ(p->offset(), pos % TEST_CHUNK_SIZE); in expectPointer() 33 EXPECT_EQ(buffer->size(), 0UL); in TEST() 35 EXPECT_EQ(buffer->currentToWrite(), TEST_CHUNK_SIZE); in TEST() 39 EXPECT_EQ(buffer->size(), TEST_CHUNK_HALF_SIZE); in TEST() 41 EXPECT_EQ(buffer->currentToWrite(), TEST_CHUNK_HALF_SIZE); in TEST() 45 EXPECT_EQ(buffer->size(), TEST_CHUNK_SIZE + TEST_CHUNK_HALF_SIZE); in TEST() 47 EXPECT_EQ(buffer->currentToWrite(), TEST_CHUNK_HALF_SIZE); in TEST() 52 EXPECT_EQ(buffer->readRawByte(), 50 + i); in TEST() [all …]
|