| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "gpu/command_buffer/service/gles2_cmd_decoder_unittest.h" | 5 #include "gpu/command_buffer/service/gles2_cmd_decoder_unittest.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
| (...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 231 EXPECT_TRUE(DoIsBuffer(client_buffer_id_)); | 231 EXPECT_TRUE(DoIsBuffer(client_buffer_id_)); |
| 232 DoDeleteBuffer(client_buffer_id_, kServiceBufferId); | 232 DoDeleteBuffer(client_buffer_id_, kServiceBufferId); |
| 233 EXPECT_FALSE(DoIsBuffer(client_buffer_id_)); | 233 EXPECT_FALSE(DoIsBuffer(client_buffer_id_)); |
| 234 } | 234 } |
| 235 | 235 |
| 236 TEST_P(GLES2DecoderTest, IsFramebuffer) { | 236 TEST_P(GLES2DecoderTest, IsFramebuffer) { |
| 237 EXPECT_FALSE(DoIsFramebuffer(client_framebuffer_id_)); | 237 EXPECT_FALSE(DoIsFramebuffer(client_framebuffer_id_)); |
| 238 DoBindFramebuffer( | 238 DoBindFramebuffer( |
| 239 GL_FRAMEBUFFER, client_framebuffer_id_, kServiceFramebufferId); | 239 GL_FRAMEBUFFER, client_framebuffer_id_, kServiceFramebufferId); |
| 240 EXPECT_TRUE(DoIsFramebuffer(client_framebuffer_id_)); | 240 EXPECT_TRUE(DoIsFramebuffer(client_framebuffer_id_)); |
| 241 DoDeleteFramebuffer(client_framebuffer_id_, | 241 DoDeleteFramebuffer(client_framebuffer_id_, kServiceFramebufferId); |
| 242 kServiceFramebufferId, | |
| 243 true, | |
| 244 GL_FRAMEBUFFER, | |
| 245 0, | |
| 246 true, | |
| 247 GL_FRAMEBUFFER, | |
| 248 0); | |
| 249 EXPECT_FALSE(DoIsFramebuffer(client_framebuffer_id_)); | 242 EXPECT_FALSE(DoIsFramebuffer(client_framebuffer_id_)); |
| 250 } | 243 } |
| 251 | 244 |
| 252 TEST_P(GLES2DecoderTest, IsProgram) { | 245 TEST_P(GLES2DecoderTest, IsProgram) { |
| 253 // IsProgram is true as soon as the program is created. | 246 // IsProgram is true as soon as the program is created. |
| 254 EXPECT_TRUE(DoIsProgram(client_program_id_)); | 247 EXPECT_TRUE(DoIsProgram(client_program_id_)); |
| 255 EXPECT_CALL(*gl_, DeleteProgram(kServiceProgramId)) | 248 EXPECT_CALL(*gl_, DeleteProgram(kServiceProgramId)) |
| 256 .Times(1) | 249 .Times(1) |
| 257 .RetiresOnSaturation(); | 250 .RetiresOnSaturation(); |
| 258 DoDeleteProgram(client_program_id_, kServiceProgramId); | 251 DoDeleteProgram(client_program_id_, kServiceProgramId); |
| (...skipping 1287 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1546 INSTANTIATE_TEST_CASE_P(Service, GLES2DecoderDoCommandsTest, ::testing::Bool()); | 1539 INSTANTIATE_TEST_CASE_P(Service, GLES2DecoderDoCommandsTest, ::testing::Bool()); |
| 1547 | 1540 |
| 1548 INSTANTIATE_TEST_CASE_P(Service, GLES3DecoderTest, ::testing::Bool()); | 1541 INSTANTIATE_TEST_CASE_P(Service, GLES3DecoderTest, ::testing::Bool()); |
| 1549 | 1542 |
| 1550 INSTANTIATE_TEST_CASE_P(Service, | 1543 INSTANTIATE_TEST_CASE_P(Service, |
| 1551 GLES3DecoderWithESSL3ShaderTest, | 1544 GLES3DecoderWithESSL3ShaderTest, |
| 1552 ::testing::Bool()); | 1545 ::testing::Bool()); |
| 1553 | 1546 |
| 1554 } // namespace gles2 | 1547 } // namespace gles2 |
| 1555 } // namespace gpu | 1548 } // namespace gpu |
| OLD | NEW |