/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/src/google/protobuf/ |
D | map_test_util_impl.h | 41 #define EXPECT_EQ GOOGLE_CHECK_EQ macro 244 EXPECT_EQ(0, message.map_int32_int32().size()); in ExpectClear() 245 EXPECT_EQ(0, message.map_int64_int64().size()); in ExpectClear() 246 EXPECT_EQ(0, message.map_uint32_uint32().size()); in ExpectClear() 247 EXPECT_EQ(0, message.map_uint64_uint64().size()); in ExpectClear() 248 EXPECT_EQ(0, message.map_sint32_sint32().size()); in ExpectClear() 249 EXPECT_EQ(0, message.map_sint64_sint64().size()); in ExpectClear() 250 EXPECT_EQ(0, message.map_fixed32_fixed32().size()); in ExpectClear() 251 EXPECT_EQ(0, message.map_fixed64_fixed64().size()); in ExpectClear() 252 EXPECT_EQ(0, message.map_sfixed32_sfixed32().size()); in ExpectClear() [all …]
|
D | no_field_presence_test.cc | 46 EXPECT_EQ(0, m.optional_int32()); in CheckDefaultValues() 47 EXPECT_EQ(0, m.optional_int64()); in CheckDefaultValues() 48 EXPECT_EQ(0, m.optional_uint32()); in CheckDefaultValues() 49 EXPECT_EQ(0, m.optional_uint64()); in CheckDefaultValues() 50 EXPECT_EQ(0, m.optional_sint32()); in CheckDefaultValues() 51 EXPECT_EQ(0, m.optional_sint64()); in CheckDefaultValues() 52 EXPECT_EQ(0, m.optional_fixed32()); in CheckDefaultValues() 53 EXPECT_EQ(0, m.optional_fixed64()); in CheckDefaultValues() 54 EXPECT_EQ(0, m.optional_sfixed32()); in CheckDefaultValues() 55 EXPECT_EQ(0, m.optional_sfixed64()); in CheckDefaultValues() [all …]
|
D | test_util_lite.cc | 43 #define EXPECT_EQ GOOGLE_CHECK_EQ macro 234 EXPECT_EQ(101 , message.optional_int32 ()); in ExpectAllFieldsSet() 235 EXPECT_EQ(102 , message.optional_int64 ()); in ExpectAllFieldsSet() 236 EXPECT_EQ(103 , message.optional_uint32 ()); in ExpectAllFieldsSet() 237 EXPECT_EQ(104 , message.optional_uint64 ()); in ExpectAllFieldsSet() 238 EXPECT_EQ(105 , message.optional_sint32 ()); in ExpectAllFieldsSet() 239 EXPECT_EQ(106 , message.optional_sint64 ()); in ExpectAllFieldsSet() 240 EXPECT_EQ(107 , message.optional_fixed32 ()); in ExpectAllFieldsSet() 241 EXPECT_EQ(108 , message.optional_fixed64 ()); in ExpectAllFieldsSet() 242 EXPECT_EQ(109 , message.optional_sfixed32()); in ExpectAllFieldsSet() [all …]
|
D | test_util.cc | 310 EXPECT_EQ(101 , message.optional_int32 ()); in ExpectAllFieldsSet() 311 EXPECT_EQ(102 , message.optional_int64 ()); in ExpectAllFieldsSet() 312 EXPECT_EQ(103 , message.optional_uint32 ()); in ExpectAllFieldsSet() 313 EXPECT_EQ(104 , message.optional_uint64 ()); in ExpectAllFieldsSet() 314 EXPECT_EQ(105 , message.optional_sint32 ()); in ExpectAllFieldsSet() 315 EXPECT_EQ(106 , message.optional_sint64 ()); in ExpectAllFieldsSet() 316 EXPECT_EQ(107 , message.optional_fixed32 ()); in ExpectAllFieldsSet() 317 EXPECT_EQ(108 , message.optional_fixed64 ()); in ExpectAllFieldsSet() 318 EXPECT_EQ(109 , message.optional_sfixed32()); in ExpectAllFieldsSet() 319 EXPECT_EQ(110 , message.optional_sfixed64()); in ExpectAllFieldsSet() [all …]
|
/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 …]
|
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/src/google/protobuf/stubs/ |
D | stringpiece_unittest.cc | 50 EXPECT_EQ(0, s10.length()); in TEST() 58 EXPECT_EQ(5, s20.length()); in TEST() 63 EXPECT_EQ(4, s21.length()); in TEST() 68 EXPECT_EQ(6, s22.length()); in TEST() 76 EXPECT_EQ(4, s30.length()); in TEST() 84 EXPECT_EQ(8, s31.length()); in TEST() 93 EXPECT_EQ(7, s40.length()); in TEST() 117 EXPECT_EQ(map.size(), 3); in TEST() 120 EXPECT_EQ(iter->second, 1); in TEST() 122 EXPECT_EQ(iter->second, 2); in TEST() [all …]
|
D | int128_unittest.cc | 59 EXPECT_EQ(one, one_2arg); in TEST() 72 EXPECT_EQ(big, ~~big); in TEST() 73 EXPECT_EQ(one, one | one); in TEST() 74 EXPECT_EQ(big, big | big); in TEST() 75 EXPECT_EQ(one, one | zero); in TEST() 76 EXPECT_EQ(one, one & one); in TEST() 77 EXPECT_EQ(big, big & big); in TEST() 78 EXPECT_EQ(zero, one & zero); in TEST() 79 EXPECT_EQ(zero, big & ~big); in TEST() 80 EXPECT_EQ(zero, one ^ one); in TEST() [all …]
|
/frameworks/base/cmds/statsd/tests/e2e/ |
D | MetricActivation_e2e_test.cpp | 260 EXPECT_EQ(broadcastUid, uid); in TEST() 269 EXPECT_EQ(processor.mMetricsManagers.size(), 1u); in TEST() 272 EXPECT_EQ(metricsManager->mAllMetricProducers.size(), 1); in TEST() 280 EXPECT_EQ(eventActivationMap.size(), 2u); in TEST() 283 EXPECT_EQ(eventActivationMap[0]->state, ActivationState::kNotActive); in TEST() 284 EXPECT_EQ(eventActivationMap[0]->start_ns, 0); in TEST() 285 EXPECT_EQ(eventActivationMap[0]->ttl_ns, 60 * 6 * NS_PER_SEC); in TEST() 286 EXPECT_EQ(eventActivationMap[2]->state, ActivationState::kNotActive); in TEST() 287 EXPECT_EQ(eventActivationMap[2]->start_ns, 0); in TEST() 288 EXPECT_EQ(eventActivationMap[2]->ttl_ns, 60 * 2 * NS_PER_SEC); in TEST() [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/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/base/cmds/statsd/tests/ |
D | LogEvent_test.cpp | 54 EXPECT_EQ((size_t)8, items.size()); in TEST() 55 EXPECT_EQ(1, event1.GetTagId()); in TEST() 58 EXPECT_EQ(0x2010101, item0.mField.getField()); in TEST() 59 EXPECT_EQ(Type::INT, item0.mValue.getType()); in TEST() 60 EXPECT_EQ(1000, item0.mValue.int_value); in TEST() 63 EXPECT_EQ(0x2010182, item1.mField.getField()); in TEST() 64 EXPECT_EQ(Type::STRING, item1.mValue.getType()); in TEST() 65 EXPECT_EQ("tag1", item1.mValue.str_value); in TEST() 68 EXPECT_EQ(0x2018201, item2.mField.getField()); in TEST() 69 EXPECT_EQ(Type::INT, item2.mValue.getType()); 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/opt/gamesdk/third_party/protobuf-3.0.0/src/google/protobuf/util/ |
D | time_util_test.cc | 52 EXPECT_EQ(TimeUtil::kTimestampMinSeconds, begin.seconds()); in TEST() 53 EXPECT_EQ(0, begin.nanos()); in TEST() 55 EXPECT_EQ(TimeUtil::kTimestampMaxSeconds, end.seconds()); in TEST() 56 EXPECT_EQ(999999999, end.nanos()); in TEST() 57 EXPECT_EQ("0001-01-01T00:00:00Z", TimeUtil::ToString(begin)); in TEST() 58 EXPECT_EQ("9999-12-31T23:59:59.999999999Z", TimeUtil::ToString(end)); in TEST() 62 EXPECT_EQ(-1, time.seconds()); in TEST() 64 EXPECT_EQ(999999999, time.nanos()); in TEST() 65 EXPECT_EQ("1969-12-31T23:59:59.999999999Z", TimeUtil::ToString(time)); in TEST() 68 EXPECT_EQ("1970-01-01T00:00:00Z", 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/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 …]
|