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
3 // found in the LICENSE file.
5 // This file is auto-generated from
6 // gpu/command_buffer/build_gles2_cmd_buffer.py
9 // It is included by gles2_cmd_decoder_unittest_base.cc
10 #ifndef GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_UNITTEST_0_AUTOGEN_H_
11 #define GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_UNITTEST_0_AUTOGEN_H_
13 void GLES2DecoderTestBase::SetupInitCapabilitiesExpectations() {
14 ExpectEnableDisable(GL_BLEND, false);
15 ExpectEnableDisable(GL_CULL_FACE, false);
16 ExpectEnableDisable(GL_DEPTH_TEST, false);
17 ExpectEnableDisable(GL_DITHER, true);
18 ExpectEnableDisable(GL_POLYGON_OFFSET_FILL, false);
19 ExpectEnableDisable(GL_SAMPLE_ALPHA_TO_COVERAGE, false);
20 ExpectEnableDisable(GL_SAMPLE_COVERAGE, false);
21 ExpectEnableDisable(GL_SCISSOR_TEST, false);
22 ExpectEnableDisable(GL_STENCIL_TEST, false);
25 void GLES2DecoderTestBase::SetupInitStateExpectations() {
26 EXPECT_CALL(*gl_, BlendColor(0.0f, 0.0f, 0.0f, 0.0f))
28 .RetiresOnSaturation();
29 EXPECT_CALL(*gl_, BlendEquationSeparate(GL_FUNC_ADD, GL_FUNC_ADD))
31 .RetiresOnSaturation();
32 EXPECT_CALL(*gl_, BlendFuncSeparate(GL_ONE, GL_ZERO, GL_ONE, GL_ZERO))
34 .RetiresOnSaturation();
35 EXPECT_CALL(*gl_, ClearColor(0.0f, 0.0f, 0.0f, 0.0f))
37 .RetiresOnSaturation();
38 EXPECT_CALL(*gl_, ClearDepth(1.0f))
40 .RetiresOnSaturation();
41 EXPECT_CALL(*gl_, ClearStencil(0))
43 .RetiresOnSaturation();
44 EXPECT_CALL(*gl_, ColorMask(true, true, true, true))
46 .RetiresOnSaturation();
47 EXPECT_CALL(*gl_, CullFace(GL_BACK))
49 .RetiresOnSaturation();
50 EXPECT_CALL(*gl_, DepthFunc(GL_LESS))
52 .RetiresOnSaturation();
53 EXPECT_CALL(*gl_, DepthMask(true))
55 .RetiresOnSaturation();
56 EXPECT_CALL(*gl_, DepthRange(0.0f, 1.0f))
58 .RetiresOnSaturation();
59 EXPECT_CALL(*gl_, FrontFace(GL_CCW))
61 .RetiresOnSaturation();
62 EXPECT_CALL(*gl_, Hint(GL_GENERATE_MIPMAP_HINT, GL_DONT_CARE))
64 .RetiresOnSaturation();
65 EXPECT_CALL(*gl_, LineWidth(1.0f))
67 .RetiresOnSaturation();
68 EXPECT_CALL(*gl_, PixelStorei(GL_PACK_ALIGNMENT, 4))
70 .RetiresOnSaturation();
71 EXPECT_CALL(*gl_, PixelStorei(GL_UNPACK_ALIGNMENT, 4))
73 .RetiresOnSaturation();
74 EXPECT_CALL(*gl_, PolygonOffset(0.0f, 0.0f))
76 .RetiresOnSaturation();
77 EXPECT_CALL(*gl_, SampleCoverage(1.0f, false))
79 .RetiresOnSaturation();
81 *gl_, Scissor(kViewportX, kViewportY, kViewportWidth, kViewportHeight))
83 .RetiresOnSaturation();
84 EXPECT_CALL(*gl_, StencilFuncSeparate(GL_FRONT, GL_ALWAYS, 0, 0xFFFFFFFFU))
86 .RetiresOnSaturation();
87 EXPECT_CALL(*gl_, StencilFuncSeparate(GL_BACK, GL_ALWAYS, 0, 0xFFFFFFFFU))
89 .RetiresOnSaturation();
90 EXPECT_CALL(*gl_, StencilMaskSeparate(GL_FRONT, 0xFFFFFFFFU))
92 .RetiresOnSaturation();
93 EXPECT_CALL(*gl_, StencilMaskSeparate(GL_BACK, 0xFFFFFFFFU))
95 .RetiresOnSaturation();
96 EXPECT_CALL(*gl_, StencilOpSeparate(GL_FRONT, GL_KEEP, GL_KEEP, GL_KEEP))
98 .RetiresOnSaturation();
99 EXPECT_CALL(*gl_, StencilOpSeparate(GL_BACK, GL_KEEP, GL_KEEP, GL_KEEP))
101 .RetiresOnSaturation();
103 *gl_, Viewport(kViewportX, kViewportY, kViewportWidth, kViewportHeight))
105 .RetiresOnSaturation();
107 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_UNITTEST_0_AUTOGEN_H_