OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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.h" | 5 #include "gpu/command_buffer/service/gles2_cmd_decoder.h" |
6 | 6 |
7 #include "gpu/command_buffer/common/gl_mock.h" | 7 #include "gpu/command_buffer/common/gl_mock.h" |
8 #include "gpu/command_buffer/common/gles2_cmd_format.h" | 8 #include "gpu/command_buffer/common/gles2_cmd_format.h" |
9 #include "gpu/command_buffer/common/gles2_cmd_utils.h" | 9 #include "gpu/command_buffer/common/gles2_cmd_utils.h" |
10 #include "gpu/command_buffer/service/gles2_cmd_decoder_unittest_base.h" | 10 #include "gpu/command_buffer/service/gles2_cmd_decoder_unittest_base.h" |
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
112 kServiceRenderbufferId); | 112 kServiceRenderbufferId); |
113 }; | 113 }; |
114 | 114 |
115 template <> | 115 template <> |
116 void GLES2DecoderTestBase::SpecializedSetup<GetProgramInfoLog, 0>( | 116 void GLES2DecoderTestBase::SpecializedSetup<GetProgramInfoLog, 0>( |
117 bool /* valid */) { | 117 bool /* valid */) { |
118 ProgramManager::ProgramInfo* info = GetProgramInfo(client_program_id_); | 118 ProgramManager::ProgramInfo* info = GetProgramInfo(client_program_id_); |
119 info->set_log_info("hello"); | 119 info->set_log_info("hello"); |
120 }; | 120 }; |
121 | 121 |
| 122 template <> |
| 123 void GLES2DecoderTestBase::SpecializedSetup<GetVertexAttribfv, 0>(bool valid) { |
| 124 DoBindBuffer(GL_ARRAY_BUFFER, client_buffer_id_, kServiceBufferId); |
| 125 DoVertexAttribPointer(1, 1, GL_FLOAT, 0, 0); |
| 126 if (valid) { |
| 127 EXPECT_CALL(*gl_, GetError()) |
| 128 .WillOnce(Return(GL_NO_ERROR)) |
| 129 .WillOnce(Return(GL_NO_ERROR)) |
| 130 .RetiresOnSaturation(); |
| 131 } |
| 132 }; |
122 | 133 |
123 #include "gpu/command_buffer/service/gles2_cmd_decoder_unittest_1_autogen.h" | 134 #include "gpu/command_buffer/service/gles2_cmd_decoder_unittest_1_autogen.h" |
124 | 135 |
125 } // namespace gles2 | 136 } // namespace gles2 |
126 } // namespace gpu | 137 } // namespace gpu |
127 | 138 |
OLD | NEW |