Fix crash in SpeechRecognizerImpl introduced in AudioParams refactor.
[chromium-blink-merge.git] / gpu / command_buffer / service / gles2_cmd_decoder_unittest_0_autogen.h
blobdd117162b8a589630fcd8e98db8c5621375a5941
1 // Copyright 2014 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
7 // It's formatted by clang-format using chromium coding style:
8 // clang-format -i -style=chromium filename
9 // DO NOT EDIT!
11 // It is included by gles2_cmd_decoder_unittest_base.cc
12 #ifndef GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_UNITTEST_0_AUTOGEN_H_
13 #define GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_UNITTEST_0_AUTOGEN_H_
15 void GLES2DecoderTestBase::SetupInitCapabilitiesExpectations(bool es3_capable) {
16 ExpectEnableDisable(GL_BLEND, false);
17 ExpectEnableDisable(GL_CULL_FACE, false);
18 ExpectEnableDisable(GL_DEPTH_TEST, false);
19 ExpectEnableDisable(GL_DITHER, true);
20 ExpectEnableDisable(GL_POLYGON_OFFSET_FILL, false);
21 ExpectEnableDisable(GL_SAMPLE_ALPHA_TO_COVERAGE, false);
22 ExpectEnableDisable(GL_SAMPLE_COVERAGE, false);
23 ExpectEnableDisable(GL_SCISSOR_TEST, false);
24 ExpectEnableDisable(GL_STENCIL_TEST, false);
25 if (es3_capable) {
26 ExpectEnableDisable(GL_RASTERIZER_DISCARD, false);
27 ExpectEnableDisable(GL_PRIMITIVE_RESTART_FIXED_INDEX, false);
31 void GLES2DecoderTestBase::SetupInitStateExpectations() {
32 EXPECT_CALL(*gl_, BlendColor(0.0f, 0.0f, 0.0f, 0.0f))
33 .Times(1)
34 .RetiresOnSaturation();
35 EXPECT_CALL(*gl_, BlendEquationSeparate(GL_FUNC_ADD, GL_FUNC_ADD))
36 .Times(1)
37 .RetiresOnSaturation();
38 EXPECT_CALL(*gl_, BlendFuncSeparate(GL_ONE, GL_ZERO, GL_ONE, GL_ZERO))
39 .Times(1)
40 .RetiresOnSaturation();
41 EXPECT_CALL(*gl_, ClearColor(0.0f, 0.0f, 0.0f, 0.0f))
42 .Times(1)
43 .RetiresOnSaturation();
44 EXPECT_CALL(*gl_, ClearDepth(1.0f)).Times(1).RetiresOnSaturation();
45 EXPECT_CALL(*gl_, ClearStencil(0)).Times(1).RetiresOnSaturation();
46 EXPECT_CALL(*gl_, ColorMask(true, true, true, true))
47 .Times(1)
48 .RetiresOnSaturation();
49 EXPECT_CALL(*gl_, CullFace(GL_BACK)).Times(1).RetiresOnSaturation();
50 EXPECT_CALL(*gl_, DepthFunc(GL_LESS)).Times(1).RetiresOnSaturation();
51 EXPECT_CALL(*gl_, DepthMask(true)).Times(1).RetiresOnSaturation();
52 EXPECT_CALL(*gl_, DepthRange(0.0f, 1.0f)).Times(1).RetiresOnSaturation();
53 EXPECT_CALL(*gl_, FrontFace(GL_CCW)).Times(1).RetiresOnSaturation();
54 EXPECT_CALL(*gl_, Hint(GL_GENERATE_MIPMAP_HINT, GL_DONT_CARE))
55 .Times(1)
56 .RetiresOnSaturation();
57 if (group_->feature_info()->feature_flags().oes_standard_derivatives) {
58 EXPECT_CALL(*gl_,
59 Hint(GL_FRAGMENT_SHADER_DERIVATIVE_HINT_OES, GL_DONT_CARE))
60 .Times(1)
61 .RetiresOnSaturation();
63 EXPECT_CALL(*gl_, LineWidth(1.0f)).Times(1).RetiresOnSaturation();
64 if (group_->feature_info()->feature_flags().chromium_path_rendering) {
65 EXPECT_CALL(*gl_, MatrixLoadfEXT(GL_PATH_MODELVIEW_CHROMIUM, _))
66 .Times(1)
67 .RetiresOnSaturation();
69 if (group_->feature_info()->feature_flags().chromium_path_rendering) {
70 EXPECT_CALL(*gl_, MatrixLoadfEXT(GL_PATH_PROJECTION_CHROMIUM, _))
71 .Times(1)
72 .RetiresOnSaturation();
74 if (group_->feature_info()->feature_flags().chromium_path_rendering) {
75 EXPECT_CALL(*gl_, PathStencilFuncNV(GL_ALWAYS, 0, 0xFFFFFFFFU))
76 .Times(1)
77 .RetiresOnSaturation();
79 EXPECT_CALL(*gl_, PixelStorei(GL_PACK_ALIGNMENT, 4))
80 .Times(1)
81 .RetiresOnSaturation();
82 EXPECT_CALL(*gl_, PixelStorei(GL_UNPACK_ALIGNMENT, 4))
83 .Times(1)
84 .RetiresOnSaturation();
85 EXPECT_CALL(*gl_, PolygonOffset(0.0f, 0.0f)).Times(1).RetiresOnSaturation();
86 EXPECT_CALL(*gl_, SampleCoverage(1.0f, false)).Times(1).RetiresOnSaturation();
87 EXPECT_CALL(*gl_,
88 Scissor(kViewportX, kViewportY, kViewportWidth, kViewportHeight))
89 .Times(1)
90 .RetiresOnSaturation();
91 EXPECT_CALL(*gl_, StencilFuncSeparate(GL_FRONT, GL_ALWAYS, 0, 0xFFFFFFFFU))
92 .Times(1)
93 .RetiresOnSaturation();
94 EXPECT_CALL(*gl_, StencilFuncSeparate(GL_BACK, GL_ALWAYS, 0, 0xFFFFFFFFU))
95 .Times(1)
96 .RetiresOnSaturation();
97 EXPECT_CALL(*gl_, StencilMaskSeparate(GL_FRONT, 0xFFFFFFFFU))
98 .Times(1)
99 .RetiresOnSaturation();
100 EXPECT_CALL(*gl_, StencilMaskSeparate(GL_BACK, 0xFFFFFFFFU))
101 .Times(1)
102 .RetiresOnSaturation();
103 EXPECT_CALL(*gl_, StencilOpSeparate(GL_FRONT, GL_KEEP, GL_KEEP, GL_KEEP))
104 .Times(1)
105 .RetiresOnSaturation();
106 EXPECT_CALL(*gl_, StencilOpSeparate(GL_BACK, GL_KEEP, GL_KEEP, GL_KEEP))
107 .Times(1)
108 .RetiresOnSaturation();
109 EXPECT_CALL(*gl_,
110 Viewport(kViewportX, kViewportY, kViewportWidth, kViewportHeight))
111 .Times(1)
112 .RetiresOnSaturation();
114 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_UNITTEST_0_AUTOGEN_H_