Lines Matching refs:binary
47 std::vector<uint32_t> binary; in TEST() local
48 EXPECT_TRUE(t.Assemble(input_text, &binary)); in TEST()
49 EXPECT_TRUE(binary.size() > 5u); in TEST()
50 EXPECT_EQ(SpvMagicNumber, binary[0]); in TEST()
51 EXPECT_EQ(kExpectedSpvVersion, binary[1]); in TEST()
64 EXPECT_FALSE(t.Validate(binary)); in TEST()
67 EXPECT_TRUE(t.Disassemble(binary, &output_text)); in TEST()
72 std::vector<uint32_t> binary(10, 42); in TEST() local
74 EXPECT_TRUE(t.Assemble("", &binary)); in TEST()
76 EXPECT_EQ(5u, binary.size()); in TEST()
77 EXPECT_EQ(SpvMagicNumber, binary[0]); in TEST()
78 EXPECT_EQ(kExpectedSpvVersion, binary[1]); in TEST()
85 std::vector<uint32_t> binary; in TEST() local
86 EXPECT_TRUE(t.Assemble(input_text, &binary)); in TEST()
87 EXPECT_TRUE(binary.size() > 5u); in TEST()
88 EXPECT_EQ(SpvMagicNumber, binary[0]); in TEST()
89 EXPECT_EQ(kExpectedSpvVersion, binary[1]); in TEST()
92 std::vector<uint32_t> binary; in TEST() local
93 EXPECT_TRUE(t.Assemble(input_text.data(), input_text.size(), &binary)); in TEST()
94 EXPECT_TRUE(binary.size() > 5u); in TEST()
95 EXPECT_EQ(SpvMagicNumber, binary[0]); in TEST()
96 EXPECT_EQ(kExpectedSpvVersion, binary[1]); in TEST()
99 std::vector<uint32_t> binary; in TEST() local
100 EXPECT_TRUE(t.Assemble(input_text.data(), input_text.size() - 1, &binary)); in TEST()
101 EXPECT_TRUE(binary.size() > 5u); in TEST()
102 EXPECT_EQ(SpvMagicNumber, binary[0]); in TEST()
103 EXPECT_EQ(kExpectedSpvVersion, binary[1]); in TEST()
131 std::vector<uint32_t> binary; in TEST() local
132 EXPECT_TRUE(t.Assemble(input_text, &binary)); in TEST()
136 EXPECT_TRUE(t.Disassemble(binary, &output_text)); in TEST()
141 EXPECT_TRUE(t.Disassemble(binary.data(), binary.size(), &output_text)); in TEST()
154 std::vector<uint32_t> binary; in TEST() local
155 EXPECT_TRUE(t.Assemble(Header(), &binary)); in TEST()
156 EXPECT_TRUE(t.Validate(binary)); in TEST()
162 std::vector<uint32_t> binary; in TEST() local
163 EXPECT_TRUE(t.Assemble(Header(), &binary)); in TEST()
165 { EXPECT_TRUE(t.Validate(binary)); } in TEST()
166 { EXPECT_TRUE(t.Validate(binary.data(), binary.size())); } in TEST()
200 std::vector<uint32_t> binary; in TEST() local
201 EXPECT_TRUE(t.Assemble(MakeModuleHavingStruct(10), &binary)); in TEST()
204 EXPECT_TRUE(t.Validate(binary.data(), binary.size(), opts)); in TEST()
209 std::vector<uint32_t> binary; in TEST() local
210 EXPECT_TRUE(t.Assemble(MakeModuleHavingStruct(10), &binary)); in TEST()
218 EXPECT_FALSE(t.Validate(binary.data(), binary.size(), opts)); in TEST()
244 std::vector<uint32_t> binary; in TEST() local
245 EXPECT_TRUE(t.Assemble("", &binary)); in TEST()
251 EXPECT_FALSE(o.Run(binary.data(), binary.size(), &binary)); in TEST()
313 std::vector<uint32_t> binary; in TEST() local
314 ASSERT_TRUE(t.Assemble(Header() + "OpSource GLSL 450", &binary)); in TEST()
318 .Run(binary.data(), binary.size(), &binary)); in TEST()
321 EXPECT_TRUE(t.Disassemble(binary, &optimized_text)); in TEST()