Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(270)

Side by Side Diff: gpu/command_buffer/service/gles2_cmd_decoder_unittest_2_autogen.h

Issue 1747013: Changes the code to use separate ids namspaces... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 // 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_2.cc 7 // It is included by gles2_cmd_decoder_unittest_2.cc
8 #ifndef GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_UNITTEST_2_AUTOGEN_H_ 8 #ifndef GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_UNITTEST_2_AUTOGEN_H_
9 #define GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_UNITTEST_2_AUTOGEN_H_ 9 #define GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_UNITTEST_2_AUTOGEN_H_
10 10
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after
185 IsEnabled cmd; 185 IsEnabled cmd;
186 cmd.Init(GL_BLEND, kInvalidSharedMemoryId, shared_memory_offset_); 186 cmd.Init(GL_BLEND, kInvalidSharedMemoryId, shared_memory_offset_);
187 EXPECT_EQ(error::kOutOfBounds, ExecuteCmd(cmd)); 187 EXPECT_EQ(error::kOutOfBounds, ExecuteCmd(cmd));
188 cmd.Init(GL_BLEND, shared_memory_id_, kInvalidSharedMemoryOffset); 188 cmd.Init(GL_BLEND, shared_memory_id_, kInvalidSharedMemoryOffset);
189 EXPECT_EQ(error::kOutOfBounds, ExecuteCmd(cmd)); 189 EXPECT_EQ(error::kOutOfBounds, ExecuteCmd(cmd));
190 } 190 }
191 191
192 TEST_F(GLES2DecoderTest2, IsFramebufferValidArgs) { 192 TEST_F(GLES2DecoderTest2, IsFramebufferValidArgs) {
193 SpecializedSetup<IsFramebuffer, 0>(); 193 SpecializedSetup<IsFramebuffer, 0>();
194 IsFramebuffer cmd; 194 IsFramebuffer cmd;
195 cmd.Init(1, shared_memory_id_, shared_memory_offset_); 195 cmd.Init(client_framebuffer_id_, shared_memory_id_, shared_memory_offset_);
196 EXPECT_EQ(error::kNoError, ExecuteCmd(cmd)); 196 EXPECT_EQ(error::kNoError, ExecuteCmd(cmd));
197 EXPECT_EQ(GL_NO_ERROR, GetGLError()); 197 EXPECT_EQ(GL_NO_ERROR, GetGLError());
198 } 198 }
199 199
200 TEST_F(GLES2DecoderTest2, IsFramebufferInvalidArgsBadSharedMemoryId) { 200 TEST_F(GLES2DecoderTest2, IsFramebufferInvalidArgsBadSharedMemoryId) {
201 SpecializedSetup<IsFramebuffer, 0>(); 201 SpecializedSetup<IsFramebuffer, 0>();
202 IsFramebuffer cmd; 202 IsFramebuffer cmd;
203 cmd.Init(1, kInvalidSharedMemoryId, shared_memory_offset_); 203 cmd.Init(
204 client_framebuffer_id_, kInvalidSharedMemoryId, shared_memory_offset_);
204 EXPECT_EQ(error::kOutOfBounds, ExecuteCmd(cmd)); 205 EXPECT_EQ(error::kOutOfBounds, ExecuteCmd(cmd));
205 cmd.Init(1, shared_memory_id_, kInvalidSharedMemoryOffset); 206 cmd.Init(
207 client_framebuffer_id_, shared_memory_id_, kInvalidSharedMemoryOffset);
206 EXPECT_EQ(error::kOutOfBounds, ExecuteCmd(cmd)); 208 EXPECT_EQ(error::kOutOfBounds, ExecuteCmd(cmd));
207 } 209 }
208 210
209 TEST_F(GLES2DecoderTest2, IsProgramValidArgs) { 211 TEST_F(GLES2DecoderTest2, IsProgramValidArgs) {
210 SpecializedSetup<IsProgram, 0>(); 212 SpecializedSetup<IsProgram, 0>();
211 IsProgram cmd; 213 IsProgram cmd;
212 cmd.Init(1, shared_memory_id_, shared_memory_offset_); 214 cmd.Init(client_program_id_, shared_memory_id_, shared_memory_offset_);
213 EXPECT_EQ(error::kNoError, ExecuteCmd(cmd)); 215 EXPECT_EQ(error::kNoError, ExecuteCmd(cmd));
214 EXPECT_EQ(GL_NO_ERROR, GetGLError()); 216 EXPECT_EQ(GL_NO_ERROR, GetGLError());
215 } 217 }
216 218
217 TEST_F(GLES2DecoderTest2, IsProgramInvalidArgsBadSharedMemoryId) { 219 TEST_F(GLES2DecoderTest2, IsProgramInvalidArgsBadSharedMemoryId) {
218 SpecializedSetup<IsProgram, 0>(); 220 SpecializedSetup<IsProgram, 0>();
219 IsProgram cmd; 221 IsProgram cmd;
220 cmd.Init(1, kInvalidSharedMemoryId, shared_memory_offset_); 222 cmd.Init(client_program_id_, kInvalidSharedMemoryId, shared_memory_offset_);
221 EXPECT_EQ(error::kOutOfBounds, ExecuteCmd(cmd)); 223 EXPECT_EQ(error::kOutOfBounds, ExecuteCmd(cmd));
222 cmd.Init(1, shared_memory_id_, kInvalidSharedMemoryOffset); 224 cmd.Init(client_program_id_, shared_memory_id_, kInvalidSharedMemoryOffset);
223 EXPECT_EQ(error::kOutOfBounds, ExecuteCmd(cmd)); 225 EXPECT_EQ(error::kOutOfBounds, ExecuteCmd(cmd));
224 } 226 }
225 227
226 TEST_F(GLES2DecoderTest2, IsRenderbufferValidArgs) { 228 TEST_F(GLES2DecoderTest2, IsRenderbufferValidArgs) {
227 SpecializedSetup<IsRenderbuffer, 0>(); 229 SpecializedSetup<IsRenderbuffer, 0>();
228 IsRenderbuffer cmd; 230 IsRenderbuffer cmd;
229 cmd.Init(1, shared_memory_id_, shared_memory_offset_); 231 cmd.Init(client_renderbuffer_id_, shared_memory_id_, shared_memory_offset_);
230 EXPECT_EQ(error::kNoError, ExecuteCmd(cmd)); 232 EXPECT_EQ(error::kNoError, ExecuteCmd(cmd));
231 EXPECT_EQ(GL_NO_ERROR, GetGLError()); 233 EXPECT_EQ(GL_NO_ERROR, GetGLError());
232 } 234 }
233 235
234 TEST_F(GLES2DecoderTest2, IsRenderbufferInvalidArgsBadSharedMemoryId) { 236 TEST_F(GLES2DecoderTest2, IsRenderbufferInvalidArgsBadSharedMemoryId) {
235 SpecializedSetup<IsRenderbuffer, 0>(); 237 SpecializedSetup<IsRenderbuffer, 0>();
236 IsRenderbuffer cmd; 238 IsRenderbuffer cmd;
237 cmd.Init(1, kInvalidSharedMemoryId, shared_memory_offset_); 239 cmd.Init(
240 client_renderbuffer_id_, kInvalidSharedMemoryId, shared_memory_offset_);
238 EXPECT_EQ(error::kOutOfBounds, ExecuteCmd(cmd)); 241 EXPECT_EQ(error::kOutOfBounds, ExecuteCmd(cmd));
239 cmd.Init(1, shared_memory_id_, kInvalidSharedMemoryOffset); 242 cmd.Init(
243 client_renderbuffer_id_, shared_memory_id_, kInvalidSharedMemoryOffset);
240 EXPECT_EQ(error::kOutOfBounds, ExecuteCmd(cmd)); 244 EXPECT_EQ(error::kOutOfBounds, ExecuteCmd(cmd));
241 } 245 }
242 246
243 TEST_F(GLES2DecoderTest2, IsShaderValidArgs) { 247 TEST_F(GLES2DecoderTest2, IsShaderValidArgs) {
244 SpecializedSetup<IsShader, 0>(); 248 SpecializedSetup<IsShader, 0>();
245 IsShader cmd; 249 IsShader cmd;
246 cmd.Init(1, shared_memory_id_, shared_memory_offset_); 250 cmd.Init(client_shader_id_, shared_memory_id_, shared_memory_offset_);
247 EXPECT_EQ(error::kNoError, ExecuteCmd(cmd)); 251 EXPECT_EQ(error::kNoError, ExecuteCmd(cmd));
248 EXPECT_EQ(GL_NO_ERROR, GetGLError()); 252 EXPECT_EQ(GL_NO_ERROR, GetGLError());
249 } 253 }
250 254
251 TEST_F(GLES2DecoderTest2, IsShaderInvalidArgsBadSharedMemoryId) { 255 TEST_F(GLES2DecoderTest2, IsShaderInvalidArgsBadSharedMemoryId) {
252 SpecializedSetup<IsShader, 0>(); 256 SpecializedSetup<IsShader, 0>();
253 IsShader cmd; 257 IsShader cmd;
254 cmd.Init(1, kInvalidSharedMemoryId, shared_memory_offset_); 258 cmd.Init(client_shader_id_, kInvalidSharedMemoryId, shared_memory_offset_);
255 EXPECT_EQ(error::kOutOfBounds, ExecuteCmd(cmd)); 259 EXPECT_EQ(error::kOutOfBounds, ExecuteCmd(cmd));
256 cmd.Init(1, shared_memory_id_, kInvalidSharedMemoryOffset); 260 cmd.Init(client_shader_id_, shared_memory_id_, kInvalidSharedMemoryOffset);
257 EXPECT_EQ(error::kOutOfBounds, ExecuteCmd(cmd)); 261 EXPECT_EQ(error::kOutOfBounds, ExecuteCmd(cmd));
258 } 262 }
259 263
260 TEST_F(GLES2DecoderTest2, IsTextureValidArgs) { 264 TEST_F(GLES2DecoderTest2, IsTextureValidArgs) {
261 SpecializedSetup<IsTexture, 0>(); 265 SpecializedSetup<IsTexture, 0>();
262 IsTexture cmd; 266 IsTexture cmd;
263 cmd.Init(1, shared_memory_id_, shared_memory_offset_); 267 cmd.Init(client_texture_id_, shared_memory_id_, shared_memory_offset_);
264 EXPECT_EQ(error::kNoError, ExecuteCmd(cmd)); 268 EXPECT_EQ(error::kNoError, ExecuteCmd(cmd));
265 EXPECT_EQ(GL_NO_ERROR, GetGLError()); 269 EXPECT_EQ(GL_NO_ERROR, GetGLError());
266 } 270 }
267 271
268 TEST_F(GLES2DecoderTest2, IsTextureInvalidArgsBadSharedMemoryId) { 272 TEST_F(GLES2DecoderTest2, IsTextureInvalidArgsBadSharedMemoryId) {
269 SpecializedSetup<IsTexture, 0>(); 273 SpecializedSetup<IsTexture, 0>();
270 IsTexture cmd; 274 IsTexture cmd;
271 cmd.Init(1, kInvalidSharedMemoryId, shared_memory_offset_); 275 cmd.Init(client_texture_id_, kInvalidSharedMemoryId, shared_memory_offset_);
272 EXPECT_EQ(error::kOutOfBounds, ExecuteCmd(cmd)); 276 EXPECT_EQ(error::kOutOfBounds, ExecuteCmd(cmd));
273 cmd.Init(1, shared_memory_id_, kInvalidSharedMemoryOffset); 277 cmd.Init(client_texture_id_, shared_memory_id_, kInvalidSharedMemoryOffset);
274 EXPECT_EQ(error::kOutOfBounds, ExecuteCmd(cmd)); 278 EXPECT_EQ(error::kOutOfBounds, ExecuteCmd(cmd));
275 } 279 }
276 280
277 TEST_F(GLES2DecoderTest2, LineWidthValidArgs) { 281 TEST_F(GLES2DecoderTest2, LineWidthValidArgs) {
278 EXPECT_CALL(*gl_, LineWidth(1)); 282 EXPECT_CALL(*gl_, LineWidth(1));
279 SpecializedSetup<LineWidth, 0>(); 283 SpecializedSetup<LineWidth, 0>();
280 LineWidth cmd; 284 LineWidth cmd;
281 cmd.Init(1); 285 cmd.Init(1);
282 EXPECT_EQ(error::kNoError, ExecuteCmd(cmd)); 286 EXPECT_EQ(error::kNoError, ExecuteCmd(cmd));
283 EXPECT_EQ(GL_NO_ERROR, GetGLError()); 287 EXPECT_EQ(GL_NO_ERROR, GetGLError());
(...skipping 1329 matching lines...) Expand 10 before | Expand all | Expand 10 after
1613 SpecializedSetup<Viewport, 0>(); 1617 SpecializedSetup<Viewport, 0>();
1614 Viewport cmd; 1618 Viewport cmd;
1615 cmd.Init(1, 2, 3, -1); 1619 cmd.Init(1, 2, 3, -1);
1616 EXPECT_EQ(error::kNoError, ExecuteCmd(cmd)); 1620 EXPECT_EQ(error::kNoError, ExecuteCmd(cmd));
1617 EXPECT_EQ(GL_INVALID_VALUE, GetGLError()); 1621 EXPECT_EQ(GL_INVALID_VALUE, GetGLError());
1618 } 1622 }
1619 // TODO(gman): SwapBuffers 1623 // TODO(gman): SwapBuffers
1620 // TODO(gman): GetMaxValueInBuffer 1624 // TODO(gman): GetMaxValueInBuffer
1621 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_UNITTEST_2_AUTOGEN_H_ 1625 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_UNITTEST_2_AUTOGEN_H_
1622 1626
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698