reader::spirv: Fix entry point test fixture name Bug: tint:3 Change-Id: Ie7cd4f4f45b7be527b8d38a3dd76fac860a65ad8 Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/17563 Reviewed-by: dan sinclair <dsinclair@google.com> Commit-Queue: David Neto <dneto@google.com>
diff --git a/src/reader/spirv/parser_impl_entry_point_test.cc b/src/reader/spirv/parser_impl_entry_point_test.cc index 9542a80..a678576 100644 --- a/src/reader/spirv/parser_impl_entry_point_test.cc +++ b/src/reader/spirv/parser_impl_entry_point_test.cc
@@ -25,7 +25,7 @@ using ::testing::HasSubstr; -using SpvParseImport = ::testing::Test; +using SpvParserTest_EntryPoint = ::testing::Test; std::string MakeEntryPoint(const std::string& stage, const std::string& name, @@ -35,7 +35,7 @@ "%" + id + " = OpTypeVoid\n"; } -TEST_F(SpvParseImport, NoEntryPoint) { +TEST_F(SpvParserTest_EntryPoint, NoEntryPoint) { ParserImpl p(test::Assemble("")); EXPECT_TRUE(p.BuildAndParseInternalModule()); EXPECT_TRUE(p.error().empty()); @@ -43,7 +43,7 @@ EXPECT_THAT(module_ast, Not(HasSubstr("EntryPoint"))); } -TEST_F(SpvParseImport, EntryPointVertex) { +TEST_F(SpvParserTest_EntryPoint, Vertex) { ParserImpl p(test::Assemble(MakeEntryPoint("Vertex", "foobar"))); EXPECT_TRUE(p.BuildAndParseInternalModule()); EXPECT_TRUE(p.error().empty()); @@ -51,7 +51,7 @@ EXPECT_THAT(module_str, HasSubstr(R"(EntryPoint{vertex = foobar})")); } -TEST_F(SpvParseImport, EntryPointFragment) { +TEST_F(SpvParserTest_EntryPoint, Fragment) { ParserImpl p(test::Assemble(MakeEntryPoint("Fragment", "blitz"))); EXPECT_TRUE(p.BuildAndParseInternalModule()); EXPECT_TRUE(p.error().empty()); @@ -59,7 +59,7 @@ EXPECT_THAT(module_str, HasSubstr(R"(EntryPoint{fragment = blitz})")); } -TEST_F(SpvParseImport, EntryPointCompute) { +TEST_F(SpvParserTest_EntryPoint, Compute) { ParserImpl p(test::Assemble(MakeEntryPoint("GLCompute", "sort"))); EXPECT_TRUE(p.BuildAndParseInternalModule()); EXPECT_TRUE(p.error().empty()); @@ -67,7 +67,7 @@ EXPECT_THAT(module_str, HasSubstr(R"(EntryPoint{compute = sort})")); } -TEST_F(SpvParseImport, EntryPointMultiNameConflict) { +TEST_F(SpvParserTest_EntryPoint, MultiNameConflict) { ParserImpl p(test::Assemble(MakeEntryPoint("GLCompute", "work", "40") + MakeEntryPoint("Vertex", "work", "50") + MakeEntryPoint("Fragment", "work", "60"))); @@ -79,7 +79,7 @@ EXPECT_THAT(module_str, HasSubstr(R"(EntryPoint{fragment = work_2})")); } -TEST_F(SpvParseImport, EntryPointNameIsSanitized) { +TEST_F(SpvParserTest_EntryPoint, NameIsSanitized) { ParserImpl p(test::Assemble(MakeEntryPoint("GLCompute", ".1234"))); EXPECT_TRUE(p.BuildAndParseInternalModule()); EXPECT_TRUE(p.error().empty());