/third_party/skia/third_party/externals/spirv-tools/test/ |
H A D | text_to_binary.pipe_storage_test.cpp | 22 using ::testing::Eq; 31 Eq(MakeInstruction(SpvOpTypePipeStorage, {1}))); in TEST_F() 37 Eq("Expected <result-id> at the beginning of an instruction, found " in TEST_F() 41 Eq(MakeInstruction(SpvOpTypePipeStorage, {1}))); in TEST_F() 44 Eq("'=' expected after result id.")); in TEST_F() 52 Eq(MakeInstruction(SpvOpConstantPipeStorage, {1, 2, 3, 4, 5}))); in TEST_F() 58 Eq("Expected <result-id> at the beginning of an instruction, found " in TEST_F() 62 Eq("Expected operand, found end of stream.")); in TEST_F() 65 Eq("Expected operand, found end of stream.")); in TEST_F() 68 Eq(MakeInstructio in TEST_F() [all...] |
H A D | text_to_binary.memory_test.cpp | 32 using ::testing::Eq; 45 Eq(MakeInstruction(SpvOpStore, {1, 2, GetParam().value()}, in TEST_P() 62 EXPECT_THAT(expected_mask, Eq(3u)); in TEST_F() 64 Eq(MakeInstruction(SpvOpStore, {1, 2, expected_mask, 16}))); in TEST_F() 75 Eq(MakeInstruction(SpvOpVariable, {1, 2, GetParam().value()}))); in TEST_P() 106 Eq(MakeInstruction(SpvOpPtrEqual, {1, 2, 3, 4}))); in TEST_F() 109 EXPECT_THAT(disassembly, Eq(spirv)); in TEST_F() 123 Eq(MakeInstruction(SpvOpPtrNotEqual, {1, 2, 3, 4}))); in TEST_F() 126 EXPECT_THAT(disassembly, Eq(spirv)); in TEST_F() 140 Eq(MakeInstructio in TEST_F() [all...] |
H A D | text_to_binary.subgroup_dispatch_test.cpp | 27 using ::testing::Eq; 38 Eq(MakeInstruction(SpvOpGetKernelLocalSizeForSubgroupCount, in TEST_F() 45 Eq("Expected <result-id> at the beginning of an instruction, " in TEST_F() 49 Eq("Expected operand, found end of stream.")); in TEST_F() 53 Eq("Expected operand, found end of stream.")); in TEST_F() 58 Eq(MakeInstruction(SpvOpGetKernelLocalSizeForSubgroupCount, in TEST_F() 64 Eq("Expected '=', found end of stream.")); in TEST_F() 71 Eq("Expected id to start with %.")); in TEST_F() 76 Eq("Expected id to start with %.")); in TEST_F() 86 Eq(MakeInstructio in TEST_F() [all...] |
H A D | text_to_binary.barrier_test.cpp | 31 using ::testing::Eq; 40 Eq(MakeInstruction(SpvOpMemoryBarrier, {1, 2}))); in TEST_F() 41 EXPECT_THAT(EncodeAndDecodeSuccessfully(input), Eq(input)); in TEST_F() 47 Eq("Expected operand, found end of stream.")); in TEST_F() 52 EXPECT_THAT(CompileFailure(input), Eq("Expected id to start with %.")); in TEST_F() 58 Eq("Expected operand, found end of stream.")); in TEST_F() 63 EXPECT_THAT(CompileFailure(input), Eq("Expected id to start with %.")); in TEST_F() 95 Eq("Expected operand, found end of stream.")); in TEST_F() 98 Eq("Expected operand, found end of stream.")); in TEST_F() 101 Eq("Expecte in TEST_F() [all...] |
H A D | operand_pattern_test.cpp | 24 using ::testing::Eq; 28 EXPECT_THAT(empty, Eq(spv_operand_pattern_t{})); in TEST() 37 EXPECT_THAT(pattern, Eq(spv_operand_pattern_t{SPV_OPERAND_TYPE_ID})); in TEST() 43 EXPECT_THAT(pattern, Eq(spv_operand_pattern_t{SPV_OPERAND_TYPE_ID, in TEST() 55 EXPECT_THAT(pattern, Eq(spv_operand_pattern_t{SPV_OPERAND_TYPE_ID})); in TEST() 58 EXPECT_THAT(pattern, Eq(spv_operand_pattern_t{})); in TEST() 79 EXPECT_THAT(pattern, Eq(GetParam().expected)); in TEST_P() 136 EXPECT_THAT(pattern, Eq(spv_operand_pattern_t{})); in TEST_P() 166 Eq(spv_operand_pattern_t{SPV_OPERAND_TYPE_OPTIONAL_CIV})); in TEST() 173 Eq(spv_operand_pattern_ in TEST() [all...] |
H A D | text_to_binary.type_declaration_test.cpp | 30 using ::testing::Eq; 42 Eq(MakeInstruction(SpvOpTypeImage, {1, 2, GetParam().value(), 2, 3, 0, 4, in TEST_P() 46 EXPECT_THAT(EncodeAndDecodeSuccessfully(input), Eq(input)); in TEST_P() 67 Eq("Invalid dimensionality 'xxyyzz'.")); in TEST_F() 79 Eq(MakeInstruction(SpvOpTypeImage, {1, 2, SpvDim1D, 2, 3, 0, 4, in TEST_P() 82 EXPECT_THAT(EncodeAndDecodeSuccessfully(input), Eq(input)); in TEST_P() 136 Eq("Invalid image format 'xxyyzz'.")); in TEST_F() 147 Eq(MakeInstruction(SpvOpTypeImage, in TEST_P() 151 EXPECT_THAT(EncodeAndDecodeSuccessfully(input), Eq(input)); in TEST_P() 174 Eq(MakeInstructio in TEST_P() [all...] |
H A D | text_to_binary.annotation_test.cpp | 36 using ::testing::Eq; 54 Eq(MakeInstruction(SpvOpDecorate, in TEST_P() 61 Eq(input.str())); in TEST_P() 77 Eq(MakeInstruction(SpvOpDecorateId, in TEST_P() 84 Eq(input.str())); in TEST_P() 158 Eq("Invalid decoration 'xxyyzz'.")); in TEST_F() 163 Eq("Expected <opcode> or <result-id> at the beginning of an " in TEST_F() 169 Eq("Expected <opcode> or <result-id> at the beginning of an " in TEST_F() 176 Eq("Expected <opcode> or <result-id> at the beginning of an " in TEST_F() 198 Eq(MakeInstructio in TEST_P() [all...] |
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/test/ |
H A D | text_to_binary.pipe_storage_test.cpp | 22 using ::testing::Eq; 31 Eq(MakeInstruction(SpvOpTypePipeStorage, {1}))); in TEST_F() 37 Eq("Expected <result-id> at the beginning of an instruction, found " in TEST_F() 41 Eq(MakeInstruction(SpvOpTypePipeStorage, {1}))); in TEST_F() 44 Eq("'=' expected after result id.")); in TEST_F() 52 Eq(MakeInstruction(SpvOpConstantPipeStorage, {1, 2, 3, 4, 5}))); in TEST_F() 58 Eq("Expected <result-id> at the beginning of an instruction, found " in TEST_F() 62 Eq("Expected operand, found end of stream.")); in TEST_F() 65 Eq("Expected operand, found end of stream.")); in TEST_F() 68 Eq(MakeInstructio in TEST_F() [all...] |
H A D | text_to_binary.memory_test.cpp | 32 using ::testing::Eq; 45 Eq(MakeInstruction(SpvOpStore, {1, 2, GetParam().value()}, in TEST_P() 62 EXPECT_THAT(expected_mask, Eq(3u)); in TEST_F() 64 Eq(MakeInstruction(SpvOpStore, {1, 2, expected_mask, 16}))); in TEST_F() 75 Eq(MakeInstruction(SpvOpVariable, {1, 2, GetParam().value()}))); in TEST_P() 106 Eq(MakeInstruction(SpvOpPtrEqual, {1, 2, 3, 4}))); in TEST_F() 109 EXPECT_THAT(disassembly, Eq(spirv)); in TEST_F() 123 Eq(MakeInstruction(SpvOpPtrNotEqual, {1, 2, 3, 4}))); in TEST_F() 126 EXPECT_THAT(disassembly, Eq(spirv)); in TEST_F() 140 Eq(MakeInstructio in TEST_F() [all...] |
H A D | text_to_binary.subgroup_dispatch_test.cpp | 27 using ::testing::Eq; 38 Eq(MakeInstruction(SpvOpGetKernelLocalSizeForSubgroupCount, in TEST_F() 45 Eq("Expected <result-id> at the beginning of an instruction, " in TEST_F() 49 Eq("Expected operand, found end of stream.")); in TEST_F() 53 Eq("Expected operand, found end of stream.")); in TEST_F() 58 Eq(MakeInstruction(SpvOpGetKernelLocalSizeForSubgroupCount, in TEST_F() 64 Eq("Expected '=', found end of stream.")); in TEST_F() 71 Eq("Expected id to start with %.")); in TEST_F() 76 Eq("Expected id to start with %.")); in TEST_F() 86 Eq(MakeInstructio in TEST_F() [all...] |
H A D | text_to_binary.barrier_test.cpp | 31 using ::testing::Eq; 40 Eq(MakeInstruction(SpvOpMemoryBarrier, {1, 2}))); in TEST_F() 41 EXPECT_THAT(EncodeAndDecodeSuccessfully(input), Eq(input)); in TEST_F() 47 Eq("Expected operand, found end of stream.")); in TEST_F() 52 EXPECT_THAT(CompileFailure(input), Eq("Expected id to start with %.")); in TEST_F() 58 Eq("Expected operand, found end of stream.")); in TEST_F() 63 EXPECT_THAT(CompileFailure(input), Eq("Expected id to start with %.")); in TEST_F() 95 Eq("Expected operand, found end of stream.")); in TEST_F() 98 Eq("Expected operand, found end of stream.")); in TEST_F() 101 Eq("Expecte in TEST_F() [all...] |
H A D | operand_pattern_test.cpp | 24 using ::testing::Eq; 28 EXPECT_THAT(empty, Eq(spv_operand_pattern_t{})); in TEST() 37 EXPECT_THAT(pattern, Eq(spv_operand_pattern_t{SPV_OPERAND_TYPE_ID})); in TEST() 43 EXPECT_THAT(pattern, Eq(spv_operand_pattern_t{SPV_OPERAND_TYPE_ID, in TEST() 55 EXPECT_THAT(pattern, Eq(spv_operand_pattern_t{SPV_OPERAND_TYPE_ID})); in TEST() 58 EXPECT_THAT(pattern, Eq(spv_operand_pattern_t{})); in TEST() 79 EXPECT_THAT(pattern, Eq(GetParam().expected)); in TEST_P() 136 EXPECT_THAT(pattern, Eq(spv_operand_pattern_t{})); in TEST_P() 166 Eq(spv_operand_pattern_t{SPV_OPERAND_TYPE_OPTIONAL_CIV})); in TEST() 173 Eq(spv_operand_pattern_ in TEST() [all...] |
H A D | text_to_binary.type_declaration_test.cpp | 30 using ::testing::Eq; 42 Eq(MakeInstruction(SpvOpTypeImage, {1, 2, GetParam().value(), 2, 3, 0, 4, in TEST_P() 46 EXPECT_THAT(EncodeAndDecodeSuccessfully(input), Eq(input)); in TEST_P() 67 Eq("Invalid dimensionality 'xxyyzz'.")); in TEST_F() 79 Eq(MakeInstruction(SpvOpTypeImage, {1, 2, SpvDim1D, 2, 3, 0, 4, in TEST_P() 82 EXPECT_THAT(EncodeAndDecodeSuccessfully(input), Eq(input)); in TEST_P() 136 Eq("Invalid image format 'xxyyzz'.")); in TEST_F() 147 Eq(MakeInstruction(SpvOpTypeImage, in TEST_P() 151 EXPECT_THAT(EncodeAndDecodeSuccessfully(input), Eq(input)); in TEST_P() 174 Eq(MakeInstructio in TEST_P() [all...] |
H A D | text_to_binary.annotation_test.cpp | 36 using ::testing::Eq; 54 Eq(MakeInstruction(SpvOpDecorate, in TEST_P() 61 Eq(input.str())); in TEST_P() 77 Eq(MakeInstruction(SpvOpDecorateId, in TEST_P() 84 Eq(input.str())); in TEST_P() 158 Eq("Invalid decoration 'xxyyzz'.")); in TEST_F() 163 Eq("Expected <opcode> or <result-id> at the beginning of an " in TEST_F() 169 Eq("Expected <opcode> or <result-id> at the beginning of an " in TEST_F() 176 Eq("Expected <opcode> or <result-id> at the beginning of an " in TEST_F() 198 Eq(MakeInstructio in TEST_P() [all...] |
/third_party/spirv-tools/test/ |
H A D | text_to_binary.pipe_storage_test.cpp | 22 using ::testing::Eq; 31 Eq(MakeInstruction(spv::Op::OpTypePipeStorage, {1}))); in TEST_F() 37 Eq("Expected <result-id> at the beginning of an instruction, found " in TEST_F() 41 Eq(MakeInstruction(spv::Op::OpTypePipeStorage, {1}))); in TEST_F() 44 Eq("'=' expected after result id but found '%2'.")); in TEST_F() 53 Eq(MakeInstruction(spv::Op::OpConstantPipeStorage, {1, 2, 3, 4, 5}))); in TEST_F() 59 Eq("Expected <result-id> at the beginning of an instruction, found " in TEST_F() 63 Eq("Expected operand for OpConstantPipeStorage instruction, but found " in TEST_F() 67 Eq("Expected operand for OpConstantPipeStorage instruction, but " in TEST_F() 72 Eq(MakeInstructio in TEST_F() [all...] |
H A D | text_to_binary.memory_test.cpp | 32 using ::testing::Eq; 46 Eq(MakeInstruction(spv::Op::OpStore, {1, 2, (uint32_t)GetParam().value()}, in TEST_P() 63 EXPECT_THAT(expected_mask, Eq(3u)); in TEST_F() 65 Eq(MakeInstruction(spv::Op::OpStore, {1, 2, expected_mask, 16}))); in TEST_F() 76 Eq(MakeInstruction(spv::Op::OpVariable, in TEST_P() 108 Eq(MakeInstruction(spv::Op::OpPtrEqual, {1, 2, 3, 4}))); in TEST_F() 111 EXPECT_THAT(disassembly, Eq(spirv)); in TEST_F() 125 Eq(MakeInstruction(spv::Op::OpPtrNotEqual, {1, 2, 3, 4}))); in TEST_F() 128 EXPECT_THAT(disassembly, Eq(spirv)); in TEST_F() 142 Eq(MakeInstructio in TEST_F() [all...] |
H A D | text_to_binary.subgroup_dispatch_test.cpp | 27 using ::testing::Eq; 38 Eq(MakeInstruction(spv::Op::OpGetKernelLocalSizeForSubgroupCount, in TEST_F() 45 Eq("Expected <result-id> at the beginning of an instruction, " in TEST_F() 49 Eq("Expected operand for OpGetKernelLocalSizeForSubgroupCount " in TEST_F() 54 Eq("Expected operand for OpGetKernelLocalSizeForSubgroupCount " in TEST_F() 60 Eq(MakeInstruction(spv::Op::OpGetKernelLocalSizeForSubgroupCount, in TEST_F() 66 Eq("Expected '=', found end of stream.")); in TEST_F() 73 Eq("Expected id to start with %.")); in TEST_F() 78 Eq("Expected id to start with %.")); in TEST_F() 87 Eq(MakeInstructio in TEST_F() [all...] |
H A D | text_to_binary.barrier_test.cpp | 31 using ::testing::Eq; 40 Eq(MakeInstruction(spv::Op::OpMemoryBarrier, {1, 2}))); in TEST_F() 41 EXPECT_THAT(EncodeAndDecodeSuccessfully(input), Eq(input)); in TEST_F() 47 Eq("Expected operand for OpMemoryBarrier instruction, but found " in TEST_F() 53 EXPECT_THAT(CompileFailure(input), Eq("Expected id to start with %.")); in TEST_F() 59 Eq("Expected operand for OpMemoryBarrier instruction, but found " in TEST_F() 65 EXPECT_THAT(CompileFailure(input), Eq("Expected id to start with %.")); in TEST_F() 97 Eq("Expected operand for OpMemoryNamedBarrier instruction, but " in TEST_F() 101 Eq("Expected operand for OpMemoryNamedBarrier instruction, but found the " in TEST_F() 105 Eq("Expecte in TEST_F() [all...] |
H A D | operand_pattern_test.cpp | 24 using ::testing::Eq; 28 EXPECT_THAT(empty, Eq(spv_operand_pattern_t{})); in TEST() 37 EXPECT_THAT(pattern, Eq(spv_operand_pattern_t{SPV_OPERAND_TYPE_ID})); in TEST() 43 EXPECT_THAT(pattern, Eq(spv_operand_pattern_t{SPV_OPERAND_TYPE_ID, in TEST() 55 EXPECT_THAT(pattern, Eq(spv_operand_pattern_t{SPV_OPERAND_TYPE_ID})); in TEST() 58 EXPECT_THAT(pattern, Eq(spv_operand_pattern_t{})); in TEST() 79 EXPECT_THAT(pattern, Eq(GetParam().expected)); in TEST_P() 143 EXPECT_THAT(pattern, Eq(spv_operand_pattern_t{})); in TEST_P() 173 Eq(spv_operand_pattern_t{SPV_OPERAND_TYPE_OPTIONAL_CIV})); in TEST() 180 Eq(spv_operand_pattern_ in TEST() [all...] |
/third_party/skia/third_party/externals/abseil-cpp/absl/strings/internal/ |
H A D | cord_rep_btree_navigator_test.cc | 35 using ::testing::Eq; 103 EXPECT_THAT(nav.btree(), Eq(nullptr)); in TEST() 113 EXPECT_THAT(nav.btree(), Eq(tree())); in TEST_P() 114 EXPECT_THAT(nav.Current(), Eq(flats().front())); in TEST_P() 115 EXPECT_THAT(edge, Eq(flats().front())); in TEST_P() 122 EXPECT_THAT(nav.btree(), Eq(tree())); in TEST_P() 123 EXPECT_THAT(nav.Current(), Eq(flats().back())); in TEST_P() 124 EXPECT_THAT(edge, Eq(flats().back())); in TEST_P() 132 EXPECT_THAT(nav.Previous(), Eq(nullptr)); in TEST_P() 133 EXPECT_THAT(nav.Current(), Eq(flat in TEST_P() [all...] |
H A D | cordz_info_test.cc | 38 using ::testing::Eq; 72 EXPECT_THAT(CordzInfo::Head(CordzSnapshot()), Eq(info)); in TEST() 73 EXPECT_THAT(info->GetCordRepForTesting(), Eq(data.rep.rep)); in TEST() 81 EXPECT_THAT(child.data.cordz_info(), Eq(nullptr)); in TEST() 88 EXPECT_THAT(child.data.cordz_info(), Eq(nullptr)); in TEST() 99 EXPECT_THAT(child_info->GetCordRepForTesting(), Eq(child.rep.rep)); in TEST() 110 EXPECT_THAT(child.data.cordz_info(), Eq(nullptr)); in TEST() 118 EXPECT_THAT(child.data.cordz_info(), Eq(nullptr)); in TEST() 137 EXPECT_THAT(CordzInfo::Head(CordzSnapshot()), Eq(nullptr)); in TEST() 138 EXPECT_THAT(info->GetCordRepForTesting(), Eq(dat in TEST() [all...] |
H A D | cord_rep_btree_reader_test.cc | 37 using ::testing::Eq; 62 EXPECT_THAT(chunk, Eq(data.substr(0, chunk.length()))); in TEST() 65 EXPECT_THAT(reader.consumed(), Eq(consumed)); in TEST() 69 EXPECT_THAT(chunk, Eq(data.substr(consumed, chunk.length()))); in TEST() 72 EXPECT_THAT(reader.consumed(), Eq(consumed)); in TEST() 75 EXPECT_THAT(consumed, Eq(data.length())); in TEST() 76 EXPECT_THAT(reader.consumed(), Eq(data.length())); in TEST() 99 ASSERT_THAT(chunk, Eq(data.substr(consumed + skip1, chunk.length()))); in TEST() 101 ASSERT_THAT(reader.consumed(), Eq(consumed)); in TEST() 107 ASSERT_THAT(chunk, Eq(dat in TEST() [all...] |
/third_party/skia/third_party/externals/tint/src/reader/spirv/ |
H A D | namer_test.cc | 24 using ::testing::Eq; 40 EXPECT_THAT(Namer::Sanitize(""), Eq("empty")); in TEST_F() 44 EXPECT_THAT(Namer::Sanitize("_"), Eq("x_")); in TEST_F() 48 EXPECT_THAT(Namer::Sanitize("7zip"), Eq("x7zip")); in TEST_F() 52 EXPECT_THAT(Namer::Sanitize("_abcdef12345"), Eq("x_abcdef12345")); in TEST_F() 83 EXPECT_THAT(namer.FindUnusedDerivedName("eleanor"), Eq("eleanor")); in TEST_F() 85 EXPECT_THAT(namer.FindUnusedDerivedName("eleanor"), Eq("eleanor")); in TEST_F() 91 EXPECT_THAT(namer.FindUnusedDerivedName("rigby"), Eq("rigby_1")); in TEST_F() 100 EXPECT_THAT(namer.FindUnusedDerivedName("rigby"), Eq("rigby_2")); in TEST_F() 123 EXPECT_THAT(namer.MakeDerivedName("eleanor"), Eq("eleano in TEST_F() [all...] |
H A D | parser_impl_user_name_test.cc | 24 using ::testing::Eq; 34 EXPECT_THAT(p->namer().GetName(1), Eq("the_void_type")); in TEST_F() 58 EXPECT_THAT(p->namer().GetName(1), Eq("vanilla")); in TEST_F() 59 EXPECT_THAT(p->namer().GetName(2), Eq("vanilla_1")); in TEST_F() 73 EXPECT_THAT(p->namer().GetMemberName(3, 0), Eq("strawberry")); in TEST_F() 74 EXPECT_THAT(p->namer().GetMemberName(3, 1), Eq("vanilla")); in TEST_F() 75 EXPECT_THAT(p->namer().GetMemberName(3, 2), Eq("chocolate")); in TEST_F() 87 EXPECT_THAT(p->namer().GetMemberName(3, 0), Eq("field0")); in TEST_F() 98 EXPECT_THAT(p->namer().GetMemberName(3, 0), Eq("field0")); in TEST_F() 99 EXPECT_THAT(p->namer().GetMemberName(3, 1), Eq("field in TEST_F() [all...] |
/third_party/skia/third_party/externals/abseil-cpp/absl/strings/ |
H A D | cord_ring_reader_test.cc | 34 using testing::Eq; 61 EXPECT_THAT(reader.ring(), Eq(nullptr)); in TEST() 77 EXPECT_THAT(first, Eq(flats[0])); in TEST() 79 EXPECT_THAT(reader.ring(), Eq(ring)); in TEST() 80 EXPECT_THAT(reader.index(), Eq(ring->head())); in TEST() 81 EXPECT_THAT(reader.node(), Eq(ring->entry_child(ring->head()))); in TEST() 82 EXPECT_THAT(reader.length(), Eq(ring->length)); in TEST() 83 EXPECT_THAT(reader.consumed(), Eq(flats[0].length())); in TEST() 84 EXPECT_THAT(reader.remaining(), Eq(ring->length - reader.consumed())); in TEST() 88 EXPECT_THAT(reader.ring(), Eq(nullpt in TEST() [all...] |