| 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, 2)); | 285 EXPECT_CALL(*gl_, SampleCoverage(1, true)); |
| 286 SpecializedSetup<SampleCoverage, 0>(true); | 286 SpecializedSetup<SampleCoverage, 0>(true); |
| 287 SampleCoverage cmd; | 287 SampleCoverage cmd; |
| 288 cmd.Init(1, 2); | 288 cmd.Init(1, true); |
| 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)); | |
| 347 SpecializedSetup<StencilMask, 0>(true); | 346 SpecializedSetup<StencilMask, 0>(true); |
| 348 StencilMask cmd; | 347 StencilMask cmd; |
| 349 cmd.Init(1); | 348 cmd.Init(1); |
| 350 EXPECT_EQ(error::kNoError, ExecuteCmd(cmd)); | 349 EXPECT_EQ(error::kNoError, ExecuteCmd(cmd)); |
| 351 EXPECT_EQ(GL_NO_ERROR, GetGLError()); | 350 EXPECT_EQ(GL_NO_ERROR, GetGLError()); |
| 352 } | 351 } |
| 353 | 352 |
| 354 TEST_F(GLES2DecoderTest2, StencilMaskSeparateValidArgs) { | 353 TEST_F(GLES2DecoderTest2, StencilMaskSeparateValidArgs) { |
| 355 EXPECT_CALL(*gl_, StencilMaskSeparate(GL_FRONT, 2)); | |
| 356 SpecializedSetup<StencilMaskSeparate, 0>(true); | 354 SpecializedSetup<StencilMaskSeparate, 0>(true); |
| 357 StencilMaskSeparate cmd; | 355 StencilMaskSeparate cmd; |
| 358 cmd.Init(GL_FRONT, 2); | 356 cmd.Init(GL_FRONT, 2); |
| 359 EXPECT_EQ(error::kNoError, ExecuteCmd(cmd)); | 357 EXPECT_EQ(error::kNoError, ExecuteCmd(cmd)); |
| 360 EXPECT_EQ(GL_NO_ERROR, GetGLError()); | 358 EXPECT_EQ(GL_NO_ERROR, GetGLError()); |
| 361 } | 359 } |
| 362 | 360 |
| 363 TEST_F(GLES2DecoderTest2, StencilOpValidArgs) { | 361 TEST_F(GLES2DecoderTest2, StencilOpValidArgs) { |
| 364 EXPECT_CALL(*gl_, StencilOp(GL_KEEP, GL_KEEP, GL_KEEP)); | 362 EXPECT_CALL(*gl_, StencilOp(GL_KEEP, GL_KEEP, GL_KEEP)); |
| 365 SpecializedSetup<StencilOp, 0>(true); | 363 SpecializedSetup<StencilOp, 0>(true); |
| (...skipping 1343 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1709 // TODO(gman): CopyTextureToParentTextureCHROMIUM | 1707 // TODO(gman): CopyTextureToParentTextureCHROMIUM |
| 1710 // TODO(gman): ResizeCHROMIUM | 1708 // TODO(gman): ResizeCHROMIUM |
| 1711 // TODO(gman): GetRequestableExtensionsCHROMIUM | 1709 // TODO(gman): GetRequestableExtensionsCHROMIUM |
| 1712 | 1710 |
| 1713 // TODO(gman): RequestExtensionCHROMIUM | 1711 // TODO(gman): RequestExtensionCHROMIUM |
| 1714 | 1712 |
| 1715 // TODO(gman): SetLatchCHROMIUM | 1713 // TODO(gman): SetLatchCHROMIUM |
| 1716 | 1714 |
| 1717 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_UNITTEST_2_AUTOGEN_H_ | 1715 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_UNITTEST_2_AUTOGEN_H_ |
| 1718 | 1716 |
| OLD | NEW |