| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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. DO NOT EDIT! | 5 // This file is auto-generated. DO NOT EDIT! |
| 6 | 6 |
| 7 // It is included by gles2_cmd_decoder_unittest_1.cc | 7 // It is included by gles2_cmd_decoder_unittest_1.cc |
| 8 #ifndef GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_UNITTEST_1_AUTOGEN_H_ | 8 #ifndef GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_UNITTEST_1_AUTOGEN_H_ |
| 9 #define GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_UNITTEST_1_AUTOGEN_H_ | 9 #define GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_UNITTEST_1_AUTOGEN_H_ |
| 10 | 10 |
| (...skipping 308 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 319 TEST_F(GLES2DecoderTest1, ClearStencilValidArgs) { | 319 TEST_F(GLES2DecoderTest1, ClearStencilValidArgs) { |
| 320 EXPECT_CALL(*gl_, ClearStencil(1)); | 320 EXPECT_CALL(*gl_, ClearStencil(1)); |
| 321 SpecializedSetup<ClearStencil, 0>(true); | 321 SpecializedSetup<ClearStencil, 0>(true); |
| 322 ClearStencil cmd; | 322 ClearStencil cmd; |
| 323 cmd.Init(1); | 323 cmd.Init(1); |
| 324 EXPECT_EQ(error::kNoError, ExecuteCmd(cmd)); | 324 EXPECT_EQ(error::kNoError, ExecuteCmd(cmd)); |
| 325 EXPECT_EQ(GL_NO_ERROR, GetGLError()); | 325 EXPECT_EQ(GL_NO_ERROR, GetGLError()); |
| 326 } | 326 } |
| 327 | 327 |
| 328 TEST_F(GLES2DecoderTest1, ColorMaskValidArgs) { | 328 TEST_F(GLES2DecoderTest1, ColorMaskValidArgs) { |
| 329 EXPECT_CALL(*gl_, ColorMask(1, 2, 3, 4)); | |
| 330 SpecializedSetup<ColorMask, 0>(true); | 329 SpecializedSetup<ColorMask, 0>(true); |
| 331 ColorMask cmd; | 330 ColorMask cmd; |
| 332 cmd.Init(1, 2, 3, 4); | 331 cmd.Init(true, true, true, true); |
| 333 EXPECT_EQ(error::kNoError, ExecuteCmd(cmd)); | 332 EXPECT_EQ(error::kNoError, ExecuteCmd(cmd)); |
| 334 EXPECT_EQ(GL_NO_ERROR, GetGLError()); | 333 EXPECT_EQ(GL_NO_ERROR, GetGLError()); |
| 335 } | 334 } |
| 336 // TODO(gman): CompileShader | 335 // TODO(gman): CompileShader |
| 337 // TODO(gman): CompressedTexImage2D | 336 // TODO(gman): CompressedTexImage2D |
| 338 | 337 |
| 339 // TODO(gman): CompressedTexImage2DImmediate | 338 // TODO(gman): CompressedTexImage2DImmediate |
| 340 | 339 |
| 341 // TODO(gman): CompressedTexImage2DBucket | 340 // TODO(gman): CompressedTexImage2DBucket |
| 342 // TODO(gman): CompressedTexSubImage2D | 341 // TODO(gman): CompressedTexSubImage2D |
| (...skipping 292 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 635 TEST_F(GLES2DecoderTest1, DepthFuncValidArgs) { | 634 TEST_F(GLES2DecoderTest1, DepthFuncValidArgs) { |
| 636 EXPECT_CALL(*gl_, DepthFunc(GL_NEVER)); | 635 EXPECT_CALL(*gl_, DepthFunc(GL_NEVER)); |
| 637 SpecializedSetup<DepthFunc, 0>(true); | 636 SpecializedSetup<DepthFunc, 0>(true); |
| 638 DepthFunc cmd; | 637 DepthFunc cmd; |
| 639 cmd.Init(GL_NEVER); | 638 cmd.Init(GL_NEVER); |
| 640 EXPECT_EQ(error::kNoError, ExecuteCmd(cmd)); | 639 EXPECT_EQ(error::kNoError, ExecuteCmd(cmd)); |
| 641 EXPECT_EQ(GL_NO_ERROR, GetGLError()); | 640 EXPECT_EQ(GL_NO_ERROR, GetGLError()); |
| 642 } | 641 } |
| 643 | 642 |
| 644 TEST_F(GLES2DecoderTest1, DepthMaskValidArgs) { | 643 TEST_F(GLES2DecoderTest1, DepthMaskValidArgs) { |
| 645 EXPECT_CALL(*gl_, DepthMask(1)); | |
| 646 SpecializedSetup<DepthMask, 0>(true); | 644 SpecializedSetup<DepthMask, 0>(true); |
| 647 DepthMask cmd; | 645 DepthMask cmd; |
| 648 cmd.Init(1); | 646 cmd.Init(true); |
| 649 EXPECT_EQ(error::kNoError, ExecuteCmd(cmd)); | 647 EXPECT_EQ(error::kNoError, ExecuteCmd(cmd)); |
| 650 EXPECT_EQ(GL_NO_ERROR, GetGLError()); | 648 EXPECT_EQ(GL_NO_ERROR, GetGLError()); |
| 651 } | 649 } |
| 652 | 650 |
| 653 TEST_F(GLES2DecoderTest1, DepthRangefValidArgs) { | 651 TEST_F(GLES2DecoderTest1, DepthRangefValidArgs) { |
| 654 EXPECT_CALL(*gl_, DepthRange(1, 2)); | 652 EXPECT_CALL(*gl_, DepthRange(1, 2)); |
| 655 SpecializedSetup<DepthRangef, 0>(true); | 653 SpecializedSetup<DepthRangef, 0>(true); |
| 656 DepthRangef cmd; | 654 DepthRangef cmd; |
| 657 cmd.Init(1, 2); | 655 cmd.Init(1, 2); |
| 658 EXPECT_EQ(error::kNoError, ExecuteCmd(cmd)); | 656 EXPECT_EQ(error::kNoError, ExecuteCmd(cmd)); |
| (...skipping 1145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1804 result->size = 0; | 1802 result->size = 0; |
| 1805 GetVertexAttribfv cmd; | 1803 GetVertexAttribfv cmd; |
| 1806 cmd.Init( | 1804 cmd.Init( |
| 1807 1, GL_VERTEX_ATTRIB_ARRAY_NORMALIZED, shared_memory_id_, | 1805 1, GL_VERTEX_ATTRIB_ARRAY_NORMALIZED, shared_memory_id_, |
| 1808 kInvalidSharedMemoryOffset); | 1806 kInvalidSharedMemoryOffset); |
| 1809 EXPECT_EQ(error::kOutOfBounds, ExecuteCmd(cmd)); | 1807 EXPECT_EQ(error::kOutOfBounds, ExecuteCmd(cmd)); |
| 1810 EXPECT_EQ(0u, result->size); | 1808 EXPECT_EQ(0u, result->size); |
| 1811 } | 1809 } |
| 1812 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_UNITTEST_1_AUTOGEN_H_ | 1810 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_UNITTEST_1_AUTOGEN_H_ |
| 1813 | 1811 |
| OLD | NEW |