Home
last modified time | relevance | path

Searched refs:EXPECT_EQ (Results 1 – 25 of 3034) sorted by relevance

12345678910>>...122

/external/deqp-deps/SPIRV-Tools/test/
Dstring_utils_test.cpp26 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 …]
/external/swiftshader/third_party/SPIRV-Tools/test/
Dstring_utils_test.cpp26 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 …]
/external/llvm/unittests/Support/
DLEB128Test.cpp28 EXPECT_EQ(Expected, Actual); \ in TEST()
54 EXPECT_EQ(Expected, Actual1); \ in TEST()
60 EXPECT_EQ(Expected, Actual2); \ in TEST()
93 EXPECT_EQ(sizeof(VALUE) - 1, ActualSize); \ in TEST()
94 EXPECT_EQ(EXPECTED, Actual); \ in TEST()
128 EXPECT_EQ(sizeof(VALUE) - 1, ActualSize); \ in TEST()
129 EXPECT_EQ(EXPECTED, Actual); \ in TEST()
166 EXPECT_EQ(1u, getSLEB128Size(0x0LL)); in TEST()
167 EXPECT_EQ(1u, getSLEB128Size(0x1LL)); in TEST()
168 EXPECT_EQ(1u, getSLEB128Size(0x3fLL)); in TEST()
[all …]
DScaledNumberTest.cpp43 EXPECT_EQ(getRounded32(0, 0, false), SP32(0, 0)); in TEST()
44 EXPECT_EQ(getRounded32(0, 0, true), SP32(1, 0)); in TEST()
45 EXPECT_EQ(getRounded32(20, 21, true), SP32(21, 21)); in TEST()
46 EXPECT_EQ(getRounded32(UINT32_MAX, 0, false), SP32(UINT32_MAX, 0)); in TEST()
47 EXPECT_EQ(getRounded32(UINT32_MAX, 0, true), SP32(1 << 31, 1)); in TEST()
49 EXPECT_EQ(getRounded64(0, 0, false), SP64(0, 0)); in TEST()
50 EXPECT_EQ(getRounded64(0, 0, true), SP64(1, 0)); in TEST()
51 EXPECT_EQ(getRounded64(20, 21, true), SP64(21, 21)); in TEST()
52 EXPECT_EQ(getRounded64(UINT32_MAX, 0, false), SP64(UINT32_MAX, 0)); in TEST()
53 EXPECT_EQ(getRounded64(UINT32_MAX, 0, true), SP64(UINT64_C(1) << 32, 0)); in TEST()
[all …]
DEndianTest.cpp27 EXPECT_EQ(BigAsHost, (endian::read<int32_t, big, unaligned>(bigval))); in TEST()
29 EXPECT_EQ(LittleAsHost,(endian::read<int32_t, little, unaligned>(littleval))); in TEST()
31 EXPECT_EQ((endian::read<int32_t, big, unaligned>(bigval + 1)), in TEST()
39 EXPECT_EQ( in TEST()
42 EXPECT_EQ((endian::readAtBitAlignment<int, big, unaligned>(&bigval[0], 6)), in TEST()
48 EXPECT_EQ( in TEST()
51 EXPECT_EQ((endian::readAtBitAlignment<int, big, unaligned>(&bigval2[0], 4)), in TEST()
54 EXPECT_EQ( in TEST()
57 EXPECT_EQ((endian::readAtBitAlignment<int, big, unaligned>(&bigval2[0], 1)), in TEST()
64 EXPECT_EQ((endian::readAtBitAlignment<int64_t, little, unaligned>( in TEST()
[all …]
/external/swiftshader/third_party/LLVM/unittests/ADT/
DAPIntTest.cpp29 EXPECT_EQ(126u, Minus3.countLeadingOnes()); in TEST()
30 EXPECT_EQ(-3, Minus3.getSExtValue()); in TEST()
33 EXPECT_EQ(0u, Minus1.countLeadingZeros()); in TEST()
34 EXPECT_EQ(128u, Minus1.countLeadingOnes()); in TEST()
35 EXPECT_EQ(128u, Minus1.getActiveBits()); in TEST()
36 EXPECT_EQ(0u, Minus1.countTrailingZeros()); in TEST()
37 EXPECT_EQ(128u, Minus1.countTrailingOnes()); in TEST()
38 EXPECT_EQ(128u, Minus1.countPopulation()); in TEST()
39 EXPECT_EQ(-1, Minus1.getSExtValue()); in TEST()
47 EXPECT_EQ(0u, i33minus2.countLeadingZeros()); in TEST()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/unittests/Support/
DLEB128Test.cpp29 EXPECT_EQ(Expected, Actual1); \ in TEST()
35 EXPECT_EQ(Expected, Actual2); \ in TEST()
74 EXPECT_EQ(Expected, Actual1); \ in TEST()
80 EXPECT_EQ(Expected, Actual2); \ in TEST()
113 EXPECT_EQ(sizeof(VALUE) - 1, ActualSize); \ in TEST()
114 EXPECT_EQ(EXPECTED, Actual); \ in TEST()
148 EXPECT_EQ(sizeof(VALUE) - 1, ActualSize); \ in TEST()
149 EXPECT_EQ(EXPECTED, Actual); \ in TEST()
186 EXPECT_EQ(1u, getSLEB128Size(0x0LL)); in TEST()
187 EXPECT_EQ(1u, getSLEB128Size(0x1LL)); in TEST()
[all …]
DScaledNumberTest.cpp43 EXPECT_EQ(getRounded32(0, 0, false), SP32(0, 0)); in TEST()
44 EXPECT_EQ(getRounded32(0, 0, true), SP32(1, 0)); in TEST()
45 EXPECT_EQ(getRounded32(20, 21, true), SP32(21, 21)); in TEST()
46 EXPECT_EQ(getRounded32(UINT32_MAX, 0, false), SP32(UINT32_MAX, 0)); in TEST()
47 EXPECT_EQ(getRounded32(UINT32_MAX, 0, true), SP32(1 << 31, 1)); in TEST()
49 EXPECT_EQ(getRounded64(0, 0, false), SP64(0, 0)); in TEST()
50 EXPECT_EQ(getRounded64(0, 0, true), SP64(1, 0)); in TEST()
51 EXPECT_EQ(getRounded64(20, 21, true), SP64(21, 21)); in TEST()
52 EXPECT_EQ(getRounded64(UINT32_MAX, 0, false), SP64(UINT32_MAX, 0)); in TEST()
53 EXPECT_EQ(getRounded64(UINT32_MAX, 0, true), SP64(UINT64_C(1) << 32, 0)); in TEST()
[all …]
DFormatVariadicTest.cpp41 EXPECT_EQ(0U, Replacements.size()); in TEST()
48 EXPECT_EQ(kFormatString, Replacements[0].Spec); in TEST()
49 EXPECT_EQ(ReplacementType::Literal, Replacements[0].Type); in TEST()
56 EXPECT_EQ("{", Replacements[0].Spec); in TEST()
57 EXPECT_EQ(ReplacementType::Literal, Replacements[0].Type); in TEST()
62 EXPECT_EQ("{{{", Replacements[0].Spec); in TEST()
63 EXPECT_EQ(ReplacementType::Literal, Replacements[0].Type); in TEST()
70 EXPECT_EQ(ReplacementType::Format, Replacements[0].Type); in TEST()
71 EXPECT_EQ(0u, Replacements[0].Index); in TEST()
72 EXPECT_EQ(0u, Replacements[0].Align); in TEST()
[all …]
DEndianTest.cpp27 EXPECT_EQ(BigAsHost, (endian::read<int32_t, big, unaligned>(bigval))); in TEST()
29 EXPECT_EQ(LittleAsHost,(endian::read<int32_t, little, unaligned>(littleval))); in TEST()
31 EXPECT_EQ((endian::read<int32_t, big, unaligned>(bigval + 1)), in TEST()
39 EXPECT_EQ( in TEST()
42 EXPECT_EQ((endian::readAtBitAlignment<int, big, unaligned>(&bigval[0], 6)), in TEST()
48 EXPECT_EQ( in TEST()
51 EXPECT_EQ((endian::readAtBitAlignment<int, big, unaligned>(&bigval2[0], 4)), in TEST()
54 EXPECT_EQ( in TEST()
57 EXPECT_EQ((endian::readAtBitAlignment<int, big, unaligned>(&bigval2[0], 1)), in TEST()
64 EXPECT_EQ((endian::readAtBitAlignment<int64_t, little, unaligned>( in TEST()
[all …]
/external/adhd/cras/src/tests/
Dutf8_unittest.cc20 EXPECT_EQ(1, valid_utf8_string("The greek word 'kosme': " in TEST()
23 EXPECT_EQ(35, pos); in TEST()
25 EXPECT_EQ(1, valid_utf8_string("Playback", &pos)); in TEST()
26 EXPECT_EQ(8, pos); in TEST()
28 EXPECT_EQ(1, valid_utf8_string("The Euro sign: \xe2\x82\xac", &pos)); in TEST()
29 EXPECT_EQ(18, pos); in TEST()
32 EXPECT_EQ(1, valid_utf8_string("\x01", &pos)); in TEST()
33 EXPECT_EQ(1, pos); in TEST()
34 EXPECT_EQ(1, valid_utf8_string("\xc2\x80", &pos)); in TEST()
35 EXPECT_EQ(2, pos); in TEST()
[all …]
/external/swiftshader/third_party/SPIRV-Tools/test/opt/
Dstruct_cfg_analysis_test.cpp58 EXPECT_EQ(analysis.ContainingConstruct(1), 0); in TEST_F()
59 EXPECT_EQ(analysis.ContainingLoop(1), 0); in TEST_F()
60 EXPECT_EQ(analysis.MergeBlock(1), 0); in TEST_F()
61 EXPECT_EQ(analysis.LoopMergeBlock(1), 0); in TEST_F()
64 EXPECT_EQ(analysis.ContainingConstruct(2), 1); in TEST_F()
65 EXPECT_EQ(analysis.ContainingLoop(2), 0); in TEST_F()
66 EXPECT_EQ(analysis.MergeBlock(2), 3); in TEST_F()
67 EXPECT_EQ(analysis.LoopMergeBlock(2), 0); in TEST_F()
70 EXPECT_EQ(analysis.ContainingConstruct(3), 0); in TEST_F()
71 EXPECT_EQ(analysis.ContainingLoop(3), 0); in TEST_F()
[all …]
/external/deqp-deps/SPIRV-Tools/test/opt/
Dstruct_cfg_analysis_test.cpp58 EXPECT_EQ(analysis.ContainingConstruct(1), 0); in TEST_F()
59 EXPECT_EQ(analysis.ContainingLoop(1), 0); in TEST_F()
60 EXPECT_EQ(analysis.MergeBlock(1), 0); in TEST_F()
61 EXPECT_EQ(analysis.LoopMergeBlock(1), 0); in TEST_F()
64 EXPECT_EQ(analysis.ContainingConstruct(2), 1); in TEST_F()
65 EXPECT_EQ(analysis.ContainingLoop(2), 0); in TEST_F()
66 EXPECT_EQ(analysis.MergeBlock(2), 3); in TEST_F()
67 EXPECT_EQ(analysis.LoopMergeBlock(2), 0); in TEST_F()
70 EXPECT_EQ(analysis.ContainingConstruct(3), 0); in TEST_F()
71 EXPECT_EQ(analysis.ContainingLoop(3), 0); in TEST_F()
[all …]
/external/mesa3d/src/glx/tests/
Dindirect_api.cpp762 EXPECT_EQ((_glapi_proc) __indirect_glAccum, table[_gloffset_Accum]); in TEST_F()
763 EXPECT_EQ((_glapi_proc) __indirect_glAlphaFunc, table[_gloffset_AlphaFunc]); in TEST_F()
764 EXPECT_EQ((_glapi_proc) __indirect_glBegin, table[_gloffset_Begin]); in TEST_F()
765 EXPECT_EQ((_glapi_proc) __indirect_glBitmap, table[_gloffset_Bitmap]); in TEST_F()
766 EXPECT_EQ((_glapi_proc) __indirect_glBlendFunc, table[_gloffset_BlendFunc]); in TEST_F()
767 EXPECT_EQ((_glapi_proc) __indirect_glCallList, table[_gloffset_CallList]); in TEST_F()
768 EXPECT_EQ((_glapi_proc) __indirect_glCallLists, table[_gloffset_CallLists]); in TEST_F()
769 EXPECT_EQ((_glapi_proc) __indirect_glClear, table[_gloffset_Clear]); in TEST_F()
770 EXPECT_EQ((_glapi_proc) __indirect_glClearAccum, table[_gloffset_ClearAccum]); in TEST_F()
771 EXPECT_EQ((_glapi_proc) __indirect_glClearColor, table[_gloffset_ClearColor]); in TEST_F()
[all …]
Denum_sizes.cpp44 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 …]
/external/swiftshader/third_party/llvm-7.0/llvm/unittests/ADT/
DAPIntTest.cpp37 EXPECT_EQ(neg_one, neg_one.ashr(7)); in TEST()
42 EXPECT_EQ(126u, Minus3.countLeadingOnes()); in TEST()
43 EXPECT_EQ(-3, Minus3.getSExtValue()); in TEST()
46 EXPECT_EQ(0u, Minus1.countLeadingZeros()); in TEST()
47 EXPECT_EQ(128u, Minus1.countLeadingOnes()); in TEST()
48 EXPECT_EQ(128u, Minus1.getActiveBits()); in TEST()
49 EXPECT_EQ(0u, Minus1.countTrailingZeros()); in TEST()
50 EXPECT_EQ(128u, Minus1.countTrailingOnes()); in TEST()
51 EXPECT_EQ(128u, Minus1.countPopulation()); in TEST()
52 EXPECT_EQ(-1, Minus1.getSExtValue()); in TEST()
[all …]
DTripleTest.cpp21 EXPECT_EQ("", T.getArchName().str()); in TEST()
22 EXPECT_EQ("", T.getVendorName().str()); in TEST()
23 EXPECT_EQ("", T.getOSName().str()); in TEST()
24 EXPECT_EQ("", T.getEnvironmentName().str()); in TEST()
27 EXPECT_EQ("", T.getArchName().str()); in TEST()
28 EXPECT_EQ("", T.getVendorName().str()); in TEST()
29 EXPECT_EQ("", T.getOSName().str()); in TEST()
30 EXPECT_EQ("", T.getEnvironmentName().str()); in TEST()
33 EXPECT_EQ("", T.getArchName().str()); in TEST()
34 EXPECT_EQ("", T.getVendorName().str()); in TEST()
[all …]
/external/libchrome/base/strings/
Dsafe_sprintf_unittest.cc34 EXPECT_EQ(-1, SafeSNPrintf(buf, static_cast<size_t>(-1), "")); in TEST()
35 EXPECT_EQ('X', buf[0]); in TEST()
36 EXPECT_EQ('X', buf[1]); in TEST()
39 EXPECT_EQ(-1, SafeSNPrintf(buf, 0, "")); in TEST()
40 EXPECT_EQ('X', buf[0]); in TEST()
41 EXPECT_EQ('X', buf[1]); in TEST()
44 EXPECT_EQ(0, SafeSNPrintf(buf, 1, "")); in TEST()
45 EXPECT_EQ(0, buf[0]); in TEST()
46 EXPECT_EQ('X', buf[1]); in TEST()
50 EXPECT_EQ(0, SafeSNPrintf(buf, 2, "")); in TEST()
[all …]
/external/protobuf/src/google/protobuf/
Dmap_test_util_impl.h41 #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 …]
/external/llvm/unittests/ADT/
DTripleTest.cpp21 EXPECT_EQ("", T.getArchName().str()); in TEST()
22 EXPECT_EQ("", T.getVendorName().str()); in TEST()
23 EXPECT_EQ("", T.getOSName().str()); in TEST()
24 EXPECT_EQ("", T.getEnvironmentName().str()); in TEST()
27 EXPECT_EQ("", T.getArchName().str()); in TEST()
28 EXPECT_EQ("", T.getVendorName().str()); in TEST()
29 EXPECT_EQ("", T.getOSName().str()); in TEST()
30 EXPECT_EQ("", T.getEnvironmentName().str()); in TEST()
33 EXPECT_EQ("", T.getArchName().str()); in TEST()
34 EXPECT_EQ("", T.getVendorName().str()); in TEST()
[all …]
DAPIntTest.cpp37 EXPECT_EQ(126u, Minus3.countLeadingOnes()); in TEST()
38 EXPECT_EQ(-3, Minus3.getSExtValue()); in TEST()
41 EXPECT_EQ(0u, Minus1.countLeadingZeros()); in TEST()
42 EXPECT_EQ(128u, Minus1.countLeadingOnes()); in TEST()
43 EXPECT_EQ(128u, Minus1.getActiveBits()); in TEST()
44 EXPECT_EQ(0u, Minus1.countTrailingZeros()); in TEST()
45 EXPECT_EQ(128u, Minus1.countTrailingOnes()); in TEST()
46 EXPECT_EQ(128u, Minus1.countPopulation()); in TEST()
47 EXPECT_EQ(-1, Minus1.getSExtValue()); in TEST()
55 EXPECT_EQ(0u, i33minus2.countLeadingZeros()); in TEST()
[all …]
/external/webrtc/webrtc/modules/audio_device/test/
Daudio_device_test_api.cc65 EXPECT_EQ(0, audio_device_->StopRecording()); in OnWarningIsReported()
66 EXPECT_EQ(0, audio_device_->StopPlayout()); in OnWarningIsReported()
162 EXPECT_EQ(0, audio_device_->Release()); in SetUpTestCase()
167 EXPECT_EQ(0, audio_device_->Release()); in SetUpTestCase()
179 EXPECT_EQ(0, audio_device_->Release()); in SetUpTestCase()
208 EXPECT_EQ(0, audio_device_->Terminate()); in SetUpTestCase()
209 EXPECT_EQ(0, audio_device_->Release()); in SetUpTestCase()
241 EXPECT_EQ(0, audio_device_->ActiveAudioLayer(&audio_layer)); in SetUpTestCase()
262 EXPECT_EQ(0, audio_device_->Release()); in TearDownTestCase()
271 EXPECT_EQ(0, audio_device_->Init()); in SetUp()
[all …]
/external/libbrillo/brillo/strings/
Dstring_utils_unittest.cc20 EXPECT_EQ(0, parts.size()); in TEST()
23 EXPECT_EQ(1, parts.size()); in TEST()
24 EXPECT_EQ("abc", parts[0]); in TEST()
27 EXPECT_EQ(4, parts.size()); in TEST()
28 EXPECT_EQ("a", parts[0]); in TEST()
29 EXPECT_EQ("bc", parts[1]); in TEST()
30 EXPECT_EQ("d", parts[2]); in TEST()
31 EXPECT_EQ("e", parts[3]); in TEST()
34 EXPECT_EQ(6, parts.size()); in TEST()
35 EXPECT_EQ("a", parts[0]); in TEST()
[all …]
/external/protobuf/src/google/protobuf/stubs/
Dstringpiece_unittest.cc50 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 …]
/external/tensorflow/tensorflow/core/lib/strings/
Dnumbers_test.cc36 EXPECT_EQ(fp, fp2); in TEST()
53 EXPECT_EQ(fp, fp2) << s; in TEST()
63 EXPECT_EQ(HumanReadableNum(823), "823"); in TEST()
64 EXPECT_EQ(HumanReadableNum(1024), "1.02k"); in TEST()
65 EXPECT_EQ(HumanReadableNum(4000), "4.00k"); in TEST()
66 EXPECT_EQ(HumanReadableNum(999499), "999.50k"); in TEST()
67 EXPECT_EQ(HumanReadableNum(1000000), "1.00M"); in TEST()
68 EXPECT_EQ(HumanReadableNum(1048575), "1.05M"); in TEST()
69 EXPECT_EQ(HumanReadableNum(1048576), "1.05M"); in TEST()
70 EXPECT_EQ(HumanReadableNum(23956812342), "23.96B"); in TEST()
[all …]

12345678910>>...122