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_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 264 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
275 TEST_F(GLES2DecoderTest2, RenderbufferStorageInvalidArgs3_0) { | 275 TEST_F(GLES2DecoderTest2, RenderbufferStorageInvalidArgs3_0) { |
276 EXPECT_CALL(*gl_, RenderbufferStorageEXT(_, _, _, _)).Times(0); | 276 EXPECT_CALL(*gl_, RenderbufferStorageEXT(_, _, _, _)).Times(0); |
277 SpecializedSetup<RenderbufferStorage, 0>(false); | 277 SpecializedSetup<RenderbufferStorage, 0>(false); |
278 RenderbufferStorage cmd; | 278 RenderbufferStorage cmd; |
279 cmd.Init(GL_RENDERBUFFER, GL_RGBA4, 3, -1); | 279 cmd.Init(GL_RENDERBUFFER, GL_RGBA4, 3, -1); |
280 EXPECT_EQ(error::kNoError, ExecuteCmd(cmd)); | 280 EXPECT_EQ(error::kNoError, ExecuteCmd(cmd)); |
281 EXPECT_EQ(GL_INVALID_VALUE, GetGLError()); | 281 EXPECT_EQ(GL_INVALID_VALUE, GetGLError()); |
282 } | 282 } |
283 | 283 |
284 TEST_F(GLES2DecoderTest2, SampleCoverageValidArgs) { | 284 TEST_F(GLES2DecoderTest2, SampleCoverageValidArgs) { |
285 EXPECT_CALL(*gl_, SampleCoverage(1, true)); | 285 EXPECT_CALL(*gl_, SampleCoverage(1, 2)); |
286 SpecializedSetup<SampleCoverage, 0>(true); | 286 SpecializedSetup<SampleCoverage, 0>(true); |
287 SampleCoverage cmd; | 287 SampleCoverage cmd; |
288 cmd.Init(1, true); | 288 cmd.Init(1, 2); |
289 EXPECT_EQ(error::kNoError, ExecuteCmd(cmd)); | 289 EXPECT_EQ(error::kNoError, ExecuteCmd(cmd)); |
290 EXPECT_EQ(GL_NO_ERROR, GetGLError()); | 290 EXPECT_EQ(GL_NO_ERROR, GetGLError()); |
291 } | 291 } |
292 | 292 |
293 TEST_F(GLES2DecoderTest2, ScissorValidArgs) { | 293 TEST_F(GLES2DecoderTest2, ScissorValidArgs) { |
294 EXPECT_CALL(*gl_, Scissor(1, 2, 3, 4)); | 294 EXPECT_CALL(*gl_, Scissor(1, 2, 3, 4)); |
295 SpecializedSetup<Scissor, 0>(true); | 295 SpecializedSetup<Scissor, 0>(true); |
296 Scissor cmd; | 296 Scissor cmd; |
297 cmd.Init(1, 2, 3, 4); | 297 cmd.Init(1, 2, 3, 4); |
298 EXPECT_EQ(error::kNoError, ExecuteCmd(cmd)); | 298 EXPECT_EQ(error::kNoError, ExecuteCmd(cmd)); |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
336 TEST_F(GLES2DecoderTest2, StencilFuncSeparateValidArgs) { | 336 TEST_F(GLES2DecoderTest2, StencilFuncSeparateValidArgs) { |
337 EXPECT_CALL(*gl_, StencilFuncSeparate(GL_FRONT, GL_NEVER, 3, 4)); | 337 EXPECT_CALL(*gl_, StencilFuncSeparate(GL_FRONT, GL_NEVER, 3, 4)); |
338 SpecializedSetup<StencilFuncSeparate, 0>(true); | 338 SpecializedSetup<StencilFuncSeparate, 0>(true); |
339 StencilFuncSeparate cmd; | 339 StencilFuncSeparate cmd; |
340 cmd.Init(GL_FRONT, GL_NEVER, 3, 4); | 340 cmd.Init(GL_FRONT, GL_NEVER, 3, 4); |
341 EXPECT_EQ(error::kNoError, ExecuteCmd(cmd)); | 341 EXPECT_EQ(error::kNoError, ExecuteCmd(cmd)); |
342 EXPECT_EQ(GL_NO_ERROR, GetGLError()); | 342 EXPECT_EQ(GL_NO_ERROR, GetGLError()); |
343 } | 343 } |
344 | 344 |
345 TEST_F(GLES2DecoderTest2, StencilMaskValidArgs) { | 345 TEST_F(GLES2DecoderTest2, StencilMaskValidArgs) { |
| 346 EXPECT_CALL(*gl_, StencilMask(1)); |
346 SpecializedSetup<StencilMask, 0>(true); | 347 SpecializedSetup<StencilMask, 0>(true); |
347 StencilMask cmd; | 348 StencilMask cmd; |
348 cmd.Init(1); | 349 cmd.Init(1); |
349 EXPECT_EQ(error::kNoError, ExecuteCmd(cmd)); | 350 EXPECT_EQ(error::kNoError, ExecuteCmd(cmd)); |
350 EXPECT_EQ(GL_NO_ERROR, GetGLError()); | 351 EXPECT_EQ(GL_NO_ERROR, GetGLError()); |
351 } | 352 } |
352 | 353 |
353 TEST_F(GLES2DecoderTest2, StencilMaskSeparateValidArgs) { | 354 TEST_F(GLES2DecoderTest2, StencilMaskSeparateValidArgs) { |
| 355 EXPECT_CALL(*gl_, StencilMaskSeparate(GL_FRONT, 2)); |
354 SpecializedSetup<StencilMaskSeparate, 0>(true); | 356 SpecializedSetup<StencilMaskSeparate, 0>(true); |
355 StencilMaskSeparate cmd; | 357 StencilMaskSeparate cmd; |
356 cmd.Init(GL_FRONT, 2); | 358 cmd.Init(GL_FRONT, 2); |
357 EXPECT_EQ(error::kNoError, ExecuteCmd(cmd)); | 359 EXPECT_EQ(error::kNoError, ExecuteCmd(cmd)); |
358 EXPECT_EQ(GL_NO_ERROR, GetGLError()); | 360 EXPECT_EQ(GL_NO_ERROR, GetGLError()); |
359 } | 361 } |
360 | 362 |
361 TEST_F(GLES2DecoderTest2, StencilOpValidArgs) { | 363 TEST_F(GLES2DecoderTest2, StencilOpValidArgs) { |
362 EXPECT_CALL(*gl_, StencilOp(GL_KEEP, GL_KEEP, GL_KEEP)); | 364 EXPECT_CALL(*gl_, StencilOp(GL_KEEP, GL_KEEP, GL_KEEP)); |
363 SpecializedSetup<StencilOp, 0>(true); | 365 SpecializedSetup<StencilOp, 0>(true); |
(...skipping 1343 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1707 // TODO(gman): CopyTextureToParentTextureCHROMIUM | 1709 // TODO(gman): CopyTextureToParentTextureCHROMIUM |
1708 // TODO(gman): ResizeCHROMIUM | 1710 // TODO(gman): ResizeCHROMIUM |
1709 // TODO(gman): GetRequestableExtensionsCHROMIUM | 1711 // TODO(gman): GetRequestableExtensionsCHROMIUM |
1710 | 1712 |
1711 // TODO(gman): RequestExtensionCHROMIUM | 1713 // TODO(gman): RequestExtensionCHROMIUM |
1712 | 1714 |
1713 // TODO(gman): SetLatchCHROMIUM | 1715 // TODO(gman): SetLatchCHROMIUM |
1714 | 1716 |
1715 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_UNITTEST_2_AUTOGEN_H_ | 1717 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_UNITTEST_2_AUTOGEN_H_ |
1716 | 1718 |
OLD | NEW |