/third_party/skia/third_party/externals/spirv-tools/test/ |
D | string_utils_test.cpp | 26 EXPECT_EQ("0", ToString(0)); in TEST() 27 EXPECT_EQ("1000", ToString(1000)); in TEST() 28 EXPECT_EQ("-1", ToString(-1)); in TEST() 29 EXPECT_EQ("0", ToString(0LL)); in TEST() 30 EXPECT_EQ("1000", ToString(1000LL)); in TEST() 31 EXPECT_EQ("-1", ToString(-1LL)); in TEST() 35 EXPECT_EQ("0", ToString(0U)); in TEST() 36 EXPECT_EQ("1000", ToString(1000U)); in TEST() 37 EXPECT_EQ("0", ToString(0ULL)); in TEST() 38 EXPECT_EQ("1000", ToString(1000ULL)); in TEST() [all …]
|
/third_party/flutter/skia/third_party/externals/spirv-tools/test/ |
D | string_utils_test.cpp | 27 EXPECT_EQ("0", ToString(0)); in TEST() 28 EXPECT_EQ("1000", ToString(1000)); in TEST() 29 EXPECT_EQ("-1", ToString(-1)); in TEST() 30 EXPECT_EQ("0", ToString(0LL)); in TEST() 31 EXPECT_EQ("1000", ToString(1000LL)); in TEST() 32 EXPECT_EQ("-1", ToString(-1LL)); in TEST() 36 EXPECT_EQ("0", ToString(0U)); in TEST() 37 EXPECT_EQ("1000", ToString(1000U)); in TEST() 38 EXPECT_EQ("0", ToString(0ULL)); in TEST() 39 EXPECT_EQ("1000", ToString(1000ULL)); in TEST() [all …]
|
D | bit_stream.cpp | 110 EXPECT_EQ(0u, Log2U64(0)); in TEST() 111 EXPECT_EQ(0u, Log2U64(1)); in TEST() 112 EXPECT_EQ(1u, Log2U64(2)); in TEST() 113 EXPECT_EQ(1u, Log2U64(3)); in TEST() 114 EXPECT_EQ(2u, Log2U64(4)); in TEST() 115 EXPECT_EQ(2u, Log2U64(5)); in TEST() 116 EXPECT_EQ(2u, Log2U64(6)); in TEST() 117 EXPECT_EQ(2u, Log2U64(7)); in TEST() 118 EXPECT_EQ(3u, Log2U64(8)); in TEST() 119 EXPECT_EQ(3u, Log2U64(9)); in TEST() [all …]
|
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/test/ |
D | string_utils_test.cpp | 26 EXPECT_EQ("0", ToString(0)); in TEST() 27 EXPECT_EQ("1000", ToString(1000)); in TEST() 28 EXPECT_EQ("-1", ToString(-1)); in TEST() 29 EXPECT_EQ("0", ToString(0LL)); in TEST() 30 EXPECT_EQ("1000", ToString(1000LL)); in TEST() 31 EXPECT_EQ("-1", ToString(-1LL)); in TEST() 35 EXPECT_EQ("0", ToString(0U)); in TEST() 36 EXPECT_EQ("1000", ToString(1000U)); in TEST() 37 EXPECT_EQ("0", ToString(0ULL)); in TEST() 38 EXPECT_EQ("1000", ToString(1000ULL)); in TEST() [all …]
|
/third_party/spirv-tools/test/ |
D | string_utils_test.cpp | 26 EXPECT_EQ("0", ToString(0)); in TEST() 27 EXPECT_EQ("1000", ToString(1000)); in TEST() 28 EXPECT_EQ("-1", ToString(-1)); in TEST() 29 EXPECT_EQ("0", ToString(0LL)); in TEST() 30 EXPECT_EQ("1000", ToString(1000LL)); in TEST() 31 EXPECT_EQ("-1", ToString(-1LL)); in TEST() 35 EXPECT_EQ("0", ToString(0U)); in TEST() 36 EXPECT_EQ("1000", ToString(1000U)); in TEST() 37 EXPECT_EQ("0", ToString(0ULL)); in TEST() 38 EXPECT_EQ("1000", ToString(1000ULL)); in TEST() [all …]
|
/third_party/libphonenumber/cpp/test/phonenumbers/ |
D | asyoutypeformatter_test.cc | 63 EXPECT_EQ(-1, ConvertUnicodeStringPosition(UnicodeString("12345"), 10)); in TEST_F() 64 EXPECT_EQ(3, ConvertUnicodeStringPosition(UnicodeString("12345"), 3)); in TEST_F() 65 EXPECT_EQ(0, ConvertUnicodeStringPosition( in TEST_F() 67 EXPECT_EQ(4, ConvertUnicodeStringPosition( in TEST_F() 69 EXPECT_EQ(5, ConvertUnicodeStringPosition( in TEST_F() 81 EXPECT_EQ("+", formatter_->InputDigit('+', &result_)); in TEST_F() 82 EXPECT_EQ("+4", formatter_->InputDigit('4', &result_)); in TEST_F() 83 EXPECT_EQ("+48 ", formatter_->InputDigit('8', &result_)); in TEST_F() 84 EXPECT_EQ("+48 8", formatter_->InputDigit('8', &result_)); in TEST_F() 85 EXPECT_EQ("+48 88", formatter_->InputDigit('8', &result_)); in TEST_F() [all …]
|
/third_party/skia/third_party/externals/spirv-tools/test/opt/ |
D | struct_cfg_analysis_test.cpp | 60 EXPECT_EQ(analysis.ContainingConstruct(1), 0); in TEST_F() 61 EXPECT_EQ(analysis.ContainingLoop(1), 0); in TEST_F() 62 EXPECT_EQ(analysis.MergeBlock(1), 0); in TEST_F() 63 EXPECT_EQ(analysis.NestingDepth(1), 0); in TEST_F() 64 EXPECT_EQ(analysis.LoopMergeBlock(1), 0); in TEST_F() 65 EXPECT_EQ(analysis.LoopNestingDepth(1), 0); in TEST_F() 66 EXPECT_EQ(analysis.ContainingSwitch(1), 0); in TEST_F() 67 EXPECT_EQ(analysis.SwitchMergeBlock(1), 0); in TEST_F() 74 EXPECT_EQ(analysis.ContainingConstruct(2), 1); in TEST_F() 75 EXPECT_EQ(analysis.ContainingLoop(2), 0); in TEST_F() [all …]
|
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/test/opt/ |
D | struct_cfg_analysis_test.cpp | 60 EXPECT_EQ(analysis.ContainingConstruct(1), 0); in TEST_F() 61 EXPECT_EQ(analysis.ContainingLoop(1), 0); in TEST_F() 62 EXPECT_EQ(analysis.MergeBlock(1), 0); in TEST_F() 63 EXPECT_EQ(analysis.NestingDepth(1), 0); in TEST_F() 64 EXPECT_EQ(analysis.LoopMergeBlock(1), 0); in TEST_F() 65 EXPECT_EQ(analysis.LoopNestingDepth(1), 0); in TEST_F() 66 EXPECT_EQ(analysis.ContainingSwitch(1), 0); in TEST_F() 67 EXPECT_EQ(analysis.SwitchMergeBlock(1), 0); in TEST_F() 74 EXPECT_EQ(analysis.ContainingConstruct(2), 1); in TEST_F() 75 EXPECT_EQ(analysis.ContainingLoop(2), 0); in TEST_F() [all …]
|
/third_party/spirv-tools/test/opt/ |
D | struct_cfg_analysis_test.cpp | 60 EXPECT_EQ(analysis.ContainingConstruct(1), 0); in TEST_F() 61 EXPECT_EQ(analysis.ContainingLoop(1), 0); in TEST_F() 62 EXPECT_EQ(analysis.MergeBlock(1), 0); in TEST_F() 63 EXPECT_EQ(analysis.NestingDepth(1), 0); in TEST_F() 64 EXPECT_EQ(analysis.LoopMergeBlock(1), 0); in TEST_F() 65 EXPECT_EQ(analysis.LoopNestingDepth(1), 0); in TEST_F() 66 EXPECT_EQ(analysis.ContainingSwitch(1), 0); in TEST_F() 67 EXPECT_EQ(analysis.SwitchMergeBlock(1), 0); in TEST_F() 74 EXPECT_EQ(analysis.ContainingConstruct(2), 1); in TEST_F() 75 EXPECT_EQ(analysis.ContainingLoop(2), 0); in TEST_F() [all …]
|
/third_party/glslang/gtests/ |
D | Common.cpp | 23 EXPECT_EQ(false, glslang::IsPow2(-5)); in TEST() 24 EXPECT_EQ(false, glslang::IsPow2(-1)); in TEST() 25 EXPECT_EQ(false, glslang::IsPow2(INT_MIN)); in TEST() 26 EXPECT_EQ(false, glslang::IsPow2(int64_t(-10))); in TEST() 30 EXPECT_EQ(false, glslang::IsPow2(0)); in TEST() 31 EXPECT_EQ(false, glslang::IsPow2(0u)); in TEST() 32 EXPECT_EQ(false, glslang::IsPow2(0)); in TEST() 33 EXPECT_EQ(false, glslang::IsPow2(uint64_t(0))); in TEST() 34 EXPECT_EQ(false, glslang::IsPow2(int64_t(0))); in TEST() 38 EXPECT_EQ(true, glslang::IsPow2(1)); in TEST() [all …]
|
/third_party/skia/third_party/externals/abseil-cpp/absl/random/internal/ |
D | generate_real_test.cc | 40 EXPECT_EQ(ToFloat(0x0000000000000000), 2.710505431e-20f); in TEST() 41 EXPECT_EQ(ToFloat(0x0000000000000001), 5.421010862e-20f); in TEST() 42 EXPECT_EQ(ToFloat(0x8000000000000000), 0.5); in TEST() 43 EXPECT_EQ(ToFloat(0x8000000000000001), 0.5); in TEST() 44 EXPECT_EQ(ToFloat(0xFFFFFFFFFFFFFFFF), 0.9999999404f); in TEST() 51 EXPECT_EQ(ToFloat(0x0000000000000000), 0.0); in TEST() 52 EXPECT_EQ(ToFloat(0x0000000000000001), 5.421010862e-20f); in TEST() 53 EXPECT_EQ(ToFloat(0x8000000000000000), 0.5); in TEST() 54 EXPECT_EQ(ToFloat(0x8000000000000001), 0.5); in TEST() 55 EXPECT_EQ(ToFloat(0xFFFFFFFFFFFFFFFF), 0.9999999404f); in TEST() [all …]
|
D | fast_uniform_bits_test.cc | 37 EXPECT_EQ(0, (FastBits::min)()); in TYPED_TEST() 38 EXPECT_EQ((Limits::max)(), (FastBits::max)()); in TYPED_TEST() 107 EXPECT_EQ(0, IntegerLog2(uint16_t{0})); in TEST() 108 EXPECT_EQ(0, IntegerLog2(uint16_t{1})); in TEST() 109 EXPECT_EQ(1, IntegerLog2(uint16_t{2})); in TEST() 110 EXPECT_EQ(1, IntegerLog2(uint16_t{3})); in TEST() 111 EXPECT_EQ(2, IntegerLog2(uint16_t{4})); in TEST() 112 EXPECT_EQ(2, IntegerLog2(uint16_t{5})); in TEST() 113 EXPECT_EQ(2, IntegerLog2(uint16_t{7})); in TEST() 114 EXPECT_EQ(3, IntegerLog2(uint16_t{8})); in TEST() [all …]
|
/third_party/mesa3d/src/glx/tests/ |
D | enum_sizes.cpp | 44 EXPECT_EQ(1, __glCallLists_size(GL_BYTE)); in TEST() 45 EXPECT_EQ(1, __glCallLists_size(GL_UNSIGNED_BYTE)); in TEST() 46 EXPECT_EQ(2, __glCallLists_size(GL_SHORT)); in TEST() 47 EXPECT_EQ(2, __glCallLists_size(GL_UNSIGNED_SHORT)); in TEST() 48 EXPECT_EQ(2, __glCallLists_size(GL_2_BYTES)); in TEST() 49 EXPECT_EQ(2, __glCallLists_size(GL_HALF_FLOAT)); in TEST() 50 EXPECT_EQ(3, __glCallLists_size(GL_3_BYTES)); in TEST() 51 EXPECT_EQ(4, __glCallLists_size(GL_INT)); in TEST() 52 EXPECT_EQ(4, __glCallLists_size(GL_UNSIGNED_INT)); in TEST() 53 EXPECT_EQ(4, __glCallLists_size(GL_FLOAT)); in TEST() [all …]
|
/third_party/protobuf/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 …]
|
/third_party/flutter/engine/flutter/third_party/txt/tests/ |
D | WordBreakerTests.cpp | 44 EXPECT_EQ(0, breaker.current()); in TEST_F() 45 EXPECT_EQ(6, breaker.next()); // after "hello " in TEST_F() 46 EXPECT_EQ(0, breaker.wordStart()); // "hello" in TEST_F() 47 EXPECT_EQ(5, breaker.wordEnd()); in TEST_F() 48 EXPECT_EQ(0, breaker.breakBadness()); in TEST_F() 49 EXPECT_EQ(6, breaker.current()); in TEST_F() 50 EXPECT_EQ((ssize_t)NELEM(buf), breaker.next()); // end in TEST_F() 51 EXPECT_EQ(6, breaker.wordStart()); // "world" in TEST_F() 52 EXPECT_EQ(11, breaker.wordEnd()); in TEST_F() 53 EXPECT_EQ(0, breaker.breakBadness()); in TEST_F() [all …]
|
/third_party/protobuf/src/google/protobuf/ |
D | map_test_util_impl.h | 237 EXPECT_EQ(0, message.map_int32_int32().size()); in ExpectClear() 238 EXPECT_EQ(0, message.map_int64_int64().size()); in ExpectClear() 239 EXPECT_EQ(0, message.map_uint32_uint32().size()); in ExpectClear() 240 EXPECT_EQ(0, message.map_uint64_uint64().size()); in ExpectClear() 241 EXPECT_EQ(0, message.map_sint32_sint32().size()); in ExpectClear() 242 EXPECT_EQ(0, message.map_sint64_sint64().size()); in ExpectClear() 243 EXPECT_EQ(0, message.map_fixed32_fixed32().size()); in ExpectClear() 244 EXPECT_EQ(0, message.map_fixed64_fixed64().size()); in ExpectClear() 245 EXPECT_EQ(0, message.map_sfixed32_sfixed32().size()); in ExpectClear() 246 EXPECT_EQ(0, message.map_sfixed64_sfixed64().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 | 230 EXPECT_EQ(101, message.optional_int32()); in ExpectAllFieldsSet() 231 EXPECT_EQ(102, message.optional_int64()); in ExpectAllFieldsSet() 232 EXPECT_EQ(103, message.optional_uint32()); in ExpectAllFieldsSet() 233 EXPECT_EQ(104, message.optional_uint64()); in ExpectAllFieldsSet() 234 EXPECT_EQ(105, message.optional_sint32()); in ExpectAllFieldsSet() 235 EXPECT_EQ(106, message.optional_sint64()); in ExpectAllFieldsSet() 236 EXPECT_EQ(107, message.optional_fixed32()); in ExpectAllFieldsSet() 237 EXPECT_EQ(108, message.optional_fixed64()); in ExpectAllFieldsSet() 238 EXPECT_EQ(109, message.optional_sfixed32()); in ExpectAllFieldsSet() 239 EXPECT_EQ(110, message.optional_sfixed64()); in ExpectAllFieldsSet() [all …]
|
/third_party/mesa3d/src/util/tests/ |
D | bitset_test.cpp | 29 EXPECT_EQ(sizeof(BITSET_WORD), 4); in TEST() 35 EXPECT_EQ(sizeof(mask32), 4); in TEST() 36 EXPECT_EQ(sizeof(mask64), 8); in TEST() 37 EXPECT_EQ(sizeof(mask128), 16); in TEST() 46 EXPECT_EQ(BITSET_TEST(mask128, i), false); in TEST() 48 EXPECT_EQ(BITSET_TEST(mask128, i), true); in TEST() 50 EXPECT_EQ(BITSET_TEST(mask128, i), false); in TEST() 59 EXPECT_EQ(BITSET_FFS(mask128), 1); in TEST() 62 EXPECT_EQ(BITSET_TEST(mask128, i), true); in TEST() 64 EXPECT_EQ(BITSET_TEST(mask128, i), false); in TEST() [all …]
|
/third_party/gn/src/gn/ |
D | filesystem_utils_unittest.cc | 19 EXPECT_EQ(std::string::npos, FindExtensionOffset("")); in TEST() 20 EXPECT_EQ(std::string::npos, FindExtensionOffset("foo/bar/baz")); in TEST() 21 EXPECT_EQ(4u, FindExtensionOffset("foo.")); in TEST() 22 EXPECT_EQ(4u, FindExtensionOffset("f.o.bar")); in TEST() 23 EXPECT_EQ(std::string::npos, FindExtensionOffset("foo.bar/")); in TEST() 24 EXPECT_EQ(std::string::npos, FindExtensionOffset("foo.bar/baz")); in TEST() 29 EXPECT_EQ("", FindExtension(&input)); in TEST() 31 EXPECT_EQ("", FindExtension(&input)); in TEST() 33 EXPECT_EQ("", FindExtension(&input)); in TEST() 35 EXPECT_EQ("bar", FindExtension(&input)); in TEST() [all …]
|
/third_party/ninja/src/ |
D | util_test.cc | 34 EXPECT_EQ("", path); in TEST() 38 EXPECT_EQ("foo.h", path); in TEST() 42 EXPECT_EQ("foo.h", path); in TEST() 46 EXPECT_EQ("foo/bar.h", path); in TEST() 50 EXPECT_EQ("x/bar.h", path); in TEST() 54 EXPECT_EQ("bar.h", path); in TEST() 58 EXPECT_EQ("foo/bar", path); in TEST() 62 EXPECT_EQ("bar", path); in TEST() 66 EXPECT_EQ("../bar.h", path); in TEST() 70 EXPECT_EQ("foo", path); in TEST() [all …]
|
/third_party/skia/third_party/externals/tint/src/resolver/ |
D | struct_layout_test.cc | 39 EXPECT_EQ(sem->Size(), 12u); in TEST_F() 40 EXPECT_EQ(sem->SizeNoPadding(), 12u); in TEST_F() 41 EXPECT_EQ(sem->Align(), 4u); in TEST_F() 43 EXPECT_EQ(sem->Members()[0]->Offset(), 0u); in TEST_F() 44 EXPECT_EQ(sem->Members()[0]->Align(), 4u); in TEST_F() 45 EXPECT_EQ(sem->Members()[0]->Size(), 4u); in TEST_F() 46 EXPECT_EQ(sem->Members()[1]->Offset(), 4u); in TEST_F() 47 EXPECT_EQ(sem->Members()[1]->Align(), 4u); in TEST_F() 48 EXPECT_EQ(sem->Members()[1]->Size(), 4u); in TEST_F() 49 EXPECT_EQ(sem->Members()[2]->Offset(), 8u); in TEST_F() [all …]
|
/third_party/flutter/skia/third_party/externals/spirv-tools/test/stats/ |
D | stats_aggregate_test.cpp | 82 EXPECT_EQ(4u, stats.capability_hist.size()); in TEST() 83 EXPECT_EQ(0u, stats.capability_hist.count(SpvCapabilityShader)); in TEST() 84 EXPECT_EQ(1u, stats.capability_hist.at(SpvCapabilityAddresses)); in TEST() 85 EXPECT_EQ(1u, stats.capability_hist.at(SpvCapabilityKernel)); in TEST() 86 EXPECT_EQ(1u, stats.capability_hist.at(SpvCapabilityGenericPointer)); in TEST() 87 EXPECT_EQ(1u, stats.capability_hist.at(SpvCapabilityLinkage)); in TEST() 90 EXPECT_EQ(5u, stats.capability_hist.size()); in TEST() 91 EXPECT_EQ(1u, stats.capability_hist.at(SpvCapabilityShader)); in TEST() 92 EXPECT_EQ(1u, stats.capability_hist.at(SpvCapabilityAddresses)); in TEST() 93 EXPECT_EQ(1u, stats.capability_hist.at(SpvCapabilityKernel)); in TEST() [all …]
|
/third_party/skia/third_party/externals/abseil-cpp/absl/time/ |
D | civil_time_test.cc | 28 EXPECT_EQ("1970-01-01T00:00:00", absl::FormatCivilTime(ss)); in TEST() 31 EXPECT_EQ("1970-01-01T00:00", absl::FormatCivilTime(mm)); in TEST() 34 EXPECT_EQ("1970-01-01T00", absl::FormatCivilTime(hh)); in TEST() 37 EXPECT_EQ("1970-01-01", absl::FormatCivilTime(d)); in TEST() 40 EXPECT_EQ("1970-01", absl::FormatCivilTime(m)); in TEST() 43 EXPECT_EQ("1970", absl::FormatCivilTime(y)); in TEST() 51 EXPECT_EQ(absl::CivilDay{}, s.day); in TEST() 55 EXPECT_EQ("2015-01-02T03:04:05", in TEST() 57 EXPECT_EQ("2015-01-02T03:04:00", in TEST() 59 EXPECT_EQ("2015-01-02T03:00:00", in TEST() [all …]
|
/third_party/skia/third_party/externals/tint/src/utils/ |
D | math_test.cc | 24 EXPECT_EQ(RoundUp(1, 0), 0); in TEST() 25 EXPECT_EQ(RoundUp(1, 1), 1); in TEST() 26 EXPECT_EQ(RoundUp(1, 2), 2); in TEST() 28 EXPECT_EQ(RoundUp(1, 1), 1); in TEST() 29 EXPECT_EQ(RoundUp(2, 1), 2); in TEST() 30 EXPECT_EQ(RoundUp(3, 1), 3); in TEST() 31 EXPECT_EQ(RoundUp(4, 1), 4); in TEST() 33 EXPECT_EQ(RoundUp(1, 2), 2); in TEST() 34 EXPECT_EQ(RoundUp(2, 2), 2); in TEST() 35 EXPECT_EQ(RoundUp(3, 2), 3); in TEST() [all …]
|