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 // 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 // DO NOT EDIT! | 7 // DO NOT EDIT! |
8 | 8 |
9 // It is included by gles2_cmd_decoder_unittest_1.cc | 9 // It is included by gles2_cmd_decoder_unittest_1.cc |
10 #ifndef GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_UNITTEST_1_AUTOGEN_H_ | 10 #ifndef GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_UNITTEST_1_AUTOGEN_H_ |
(...skipping 662 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
673 TEST_F(GLES2DecoderTest1, DetachShaderValidArgs) { | 673 TEST_F(GLES2DecoderTest1, DetachShaderValidArgs) { |
674 EXPECT_CALL(*gl_, DetachShader(kServiceProgramId, kServiceShaderId)); | 674 EXPECT_CALL(*gl_, DetachShader(kServiceProgramId, kServiceShaderId)); |
675 SpecializedSetup<DetachShader, 0>(true); | 675 SpecializedSetup<DetachShader, 0>(true); |
676 DetachShader cmd; | 676 DetachShader cmd; |
677 cmd.Init(client_program_id_, client_shader_id_); | 677 cmd.Init(client_program_id_, client_shader_id_); |
678 EXPECT_EQ(error::kNoError, ExecuteCmd(cmd)); | 678 EXPECT_EQ(error::kNoError, ExecuteCmd(cmd)); |
679 EXPECT_EQ(GL_NO_ERROR, GetGLError()); | 679 EXPECT_EQ(GL_NO_ERROR, GetGLError()); |
680 } | 680 } |
681 | 681 |
682 TEST_F(GLES2DecoderTest1, DisableValidArgs) { | 682 TEST_F(GLES2DecoderTest1, DisableValidArgs) { |
683 EXPECT_CALL(*gl_, Disable(GL_DITHER)); | 683 EXPECT_CALL(*gl_, Disable(GL_BLEND)); |
684 SpecializedSetup<Disable, 0>(true); | 684 SpecializedSetup<Disable, 0>(true); |
685 Disable cmd; | 685 Disable cmd; |
686 cmd.Init(GL_DITHER); | 686 cmd.Init(GL_BLEND); |
687 EXPECT_EQ(error::kNoError, ExecuteCmd(cmd)); | 687 EXPECT_EQ(error::kNoError, ExecuteCmd(cmd)); |
688 EXPECT_EQ(GL_NO_ERROR, GetGLError()); | 688 EXPECT_EQ(GL_NO_ERROR, GetGLError()); |
689 } | 689 } |
690 | 690 |
691 TEST_F(GLES2DecoderTest1, DisableInvalidArgs0_0) { | 691 TEST_F(GLES2DecoderTest1, DisableInvalidArgs0_0) { |
692 EXPECT_CALL(*gl_, Disable(_)).Times(0); | 692 EXPECT_CALL(*gl_, Disable(_)).Times(0); |
693 SpecializedSetup<Disable, 0>(false); | 693 SpecializedSetup<Disable, 0>(false); |
694 Disable cmd; | 694 Disable cmd; |
695 cmd.Init(GL_CLIP_PLANE0); | 695 cmd.Init(GL_CLIP_PLANE0); |
696 EXPECT_EQ(error::kNoError, ExecuteCmd(cmd)); | 696 EXPECT_EQ(error::kNoError, ExecuteCmd(cmd)); |
(...skipping 16 matching lines...) Expand all Loading... |
713 cmd.Init(1); | 713 cmd.Init(1); |
714 EXPECT_EQ(error::kNoError, ExecuteCmd(cmd)); | 714 EXPECT_EQ(error::kNoError, ExecuteCmd(cmd)); |
715 EXPECT_EQ(GL_NO_ERROR, GetGLError()); | 715 EXPECT_EQ(GL_NO_ERROR, GetGLError()); |
716 } | 716 } |
717 // TODO(gman): DrawArrays | 717 // TODO(gman): DrawArrays |
718 | 718 |
719 // TODO(gman): DrawElements | 719 // TODO(gman): DrawElements |
720 | 720 |
721 | 721 |
722 TEST_F(GLES2DecoderTest1, EnableValidArgs) { | 722 TEST_F(GLES2DecoderTest1, EnableValidArgs) { |
723 EXPECT_CALL(*gl_, Enable(GL_DITHER)); | 723 EXPECT_CALL(*gl_, Enable(GL_BLEND)); |
724 SpecializedSetup<Enable, 0>(true); | 724 SpecializedSetup<Enable, 0>(true); |
725 Enable cmd; | 725 Enable cmd; |
726 cmd.Init(GL_DITHER); | 726 cmd.Init(GL_BLEND); |
727 EXPECT_EQ(error::kNoError, ExecuteCmd(cmd)); | 727 EXPECT_EQ(error::kNoError, ExecuteCmd(cmd)); |
728 EXPECT_EQ(GL_NO_ERROR, GetGLError()); | 728 EXPECT_EQ(GL_NO_ERROR, GetGLError()); |
729 } | 729 } |
730 | 730 |
731 TEST_F(GLES2DecoderTest1, EnableInvalidArgs0_0) { | 731 TEST_F(GLES2DecoderTest1, EnableInvalidArgs0_0) { |
732 EXPECT_CALL(*gl_, Enable(_)).Times(0); | 732 EXPECT_CALL(*gl_, Enable(_)).Times(0); |
733 SpecializedSetup<Enable, 0>(false); | 733 SpecializedSetup<Enable, 0>(false); |
734 Enable cmd; | 734 Enable cmd; |
735 cmd.Init(GL_CLIP_PLANE0); | 735 cmd.Init(GL_CLIP_PLANE0); |
736 EXPECT_EQ(error::kNoError, ExecuteCmd(cmd)); | 736 EXPECT_EQ(error::kNoError, ExecuteCmd(cmd)); |
(...skipping 1110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1847 result->size = 0; | 1847 result->size = 0; |
1848 GetVertexAttribfv cmd; | 1848 GetVertexAttribfv cmd; |
1849 cmd.Init( | 1849 cmd.Init( |
1850 1, GL_VERTEX_ATTRIB_ARRAY_NORMALIZED, shared_memory_id_, | 1850 1, GL_VERTEX_ATTRIB_ARRAY_NORMALIZED, shared_memory_id_, |
1851 kInvalidSharedMemoryOffset); | 1851 kInvalidSharedMemoryOffset); |
1852 EXPECT_EQ(error::kOutOfBounds, ExecuteCmd(cmd)); | 1852 EXPECT_EQ(error::kOutOfBounds, ExecuteCmd(cmd)); |
1853 EXPECT_EQ(0u, result->size); | 1853 EXPECT_EQ(0u, result->size); |
1854 } | 1854 } |
1855 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_UNITTEST_1_AUTOGEN_H_ | 1855 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_UNITTEST_1_AUTOGEN_H_ |
1856 | 1856 |
OLD | NEW |