| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 // This file is auto-generated from | 5 // This file is auto-generated from |
| 6 // gpu/command_buffer/build_gles2_cmd_buffer.py | 6 // gpu/command_buffer/build_gles2_cmd_buffer.py |
| 7 // It's formatted by clang-format using chromium coding style: | 7 // It's formatted by clang-format using chromium coding style: |
| 8 // clang-format -i -style=chromium filename | 8 // clang-format -i -style=chromium filename |
| 9 // DO NOT EDIT! | 9 // DO NOT EDIT! |
| 10 | 10 |
| (...skipping 328 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 339 } | 339 } |
| 340 | 340 |
| 341 TEST_P(GLES2DecoderTest3, SwapBuffersValidArgs) { | 341 TEST_P(GLES2DecoderTest3, SwapBuffersValidArgs) { |
| 342 SpecializedSetup<cmds::SwapBuffers, 0>(true); | 342 SpecializedSetup<cmds::SwapBuffers, 0>(true); |
| 343 cmds::SwapBuffers cmd; | 343 cmds::SwapBuffers cmd; |
| 344 cmd.Init(); | 344 cmd.Init(); |
| 345 EXPECT_EQ(error::kNoError, ExecuteCmd(cmd)); | 345 EXPECT_EQ(error::kNoError, ExecuteCmd(cmd)); |
| 346 EXPECT_EQ(GL_NO_ERROR, GetGLError()); | 346 EXPECT_EQ(GL_NO_ERROR, GetGLError()); |
| 347 } | 347 } |
| 348 | 348 |
| 349 TEST_P(GLES2DecoderTest3, IsValuebufferCHROMIUMValidArgs) { | |
| 350 SpecializedSetup<cmds::IsValuebufferCHROMIUM, 0>(true); | |
| 351 cmds::IsValuebufferCHROMIUM cmd; | |
| 352 cmd.Init(client_valuebuffer_id_, shared_memory_id_, shared_memory_offset_); | |
| 353 EXPECT_EQ(error::kNoError, ExecuteCmd(cmd)); | |
| 354 EXPECT_EQ(GL_NO_ERROR, GetGLError()); | |
| 355 } | |
| 356 | |
| 357 TEST_P(GLES2DecoderTest3, IsValuebufferCHROMIUMInvalidArgsBadSharedMemoryId) { | |
| 358 SpecializedSetup<cmds::IsValuebufferCHROMIUM, 0>(false); | |
| 359 cmds::IsValuebufferCHROMIUM cmd; | |
| 360 cmd.Init(client_valuebuffer_id_, kInvalidSharedMemoryId, | |
| 361 shared_memory_offset_); | |
| 362 EXPECT_EQ(error::kOutOfBounds, ExecuteCmd(cmd)); | |
| 363 cmd.Init(client_valuebuffer_id_, shared_memory_id_, | |
| 364 kInvalidSharedMemoryOffset); | |
| 365 EXPECT_EQ(error::kOutOfBounds, ExecuteCmd(cmd)); | |
| 366 } | |
| 367 | |
| 368 TEST_P(GLES2DecoderTest3, SwapIntervalValidArgs) { | 349 TEST_P(GLES2DecoderTest3, SwapIntervalValidArgs) { |
| 369 SpecializedSetup<cmds::SwapInterval, 0>(true); | 350 SpecializedSetup<cmds::SwapInterval, 0>(true); |
| 370 cmds::SwapInterval cmd; | 351 cmds::SwapInterval cmd; |
| 371 cmd.Init(1); | 352 cmd.Init(1); |
| 372 EXPECT_EQ(error::kNoError, ExecuteCmd(cmd)); | 353 EXPECT_EQ(error::kNoError, ExecuteCmd(cmd)); |
| 373 EXPECT_EQ(GL_NO_ERROR, GetGLError()); | 354 EXPECT_EQ(GL_NO_ERROR, GetGLError()); |
| 374 } | 355 } |
| 375 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_UNITTEST_3_AUTOGEN_H_ | 356 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_UNITTEST_3_AUTOGEN_H_ |
| OLD | NEW |