Home | History | Annotate | Download | only in service
      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.
      4 
      5 // This file is auto-generated from
      6 // gpu/command_buffer/build_gles2_cmd_buffer.py
      7 // DO NOT EDIT!
      8 
      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_
     12 
     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);
     23 }
     24 
     25 void GLES2DecoderTestBase::SetupInitStateExpectations() {
     26   EXPECT_CALL(*gl_, BlendColor(0.0f, 0.0f, 0.0f, 0.0f))
     27       .Times(1)
     28       .RetiresOnSaturation();
     29   EXPECT_CALL(*gl_, BlendEquationSeparate(GL_FUNC_ADD, GL_FUNC_ADD))
     30       .Times(1)
     31       .RetiresOnSaturation();
     32   EXPECT_CALL(*gl_, BlendFuncSeparate(GL_ONE, GL_ZERO, GL_ONE, GL_ZERO))
     33       .Times(1)
     34       .RetiresOnSaturation();
     35   EXPECT_CALL(*gl_, ClearColor(0.0f, 0.0f, 0.0f, 0.0f))
     36       .Times(1)
     37       .RetiresOnSaturation();
     38   EXPECT_CALL(*gl_, ClearDepth(1.0f))
     39       .Times(1)
     40       .RetiresOnSaturation();
     41   EXPECT_CALL(*gl_, ClearStencil(0))
     42       .Times(1)
     43       .RetiresOnSaturation();
     44   EXPECT_CALL(*gl_, ColorMask(true, true, true, true))
     45       .Times(1)
     46       .RetiresOnSaturation();
     47   EXPECT_CALL(*gl_, CullFace(GL_BACK))
     48       .Times(1)
     49       .RetiresOnSaturation();
     50   EXPECT_CALL(*gl_, DepthFunc(GL_LESS))
     51       .Times(1)
     52       .RetiresOnSaturation();
     53   EXPECT_CALL(*gl_, DepthMask(true))
     54       .Times(1)
     55       .RetiresOnSaturation();
     56   EXPECT_CALL(*gl_, DepthRange(0.0f, 1.0f))
     57       .Times(1)
     58       .RetiresOnSaturation();
     59   EXPECT_CALL(*gl_, FrontFace(GL_CCW))
     60       .Times(1)
     61       .RetiresOnSaturation();
     62   EXPECT_CALL(*gl_, Hint(GL_GENERATE_MIPMAP_HINT, GL_DONT_CARE))
     63       .Times(1)
     64       .RetiresOnSaturation();
     65   EXPECT_CALL(*gl_, LineWidth(1.0f))
     66       .Times(1)
     67       .RetiresOnSaturation();
     68   EXPECT_CALL(*gl_, PixelStorei(GL_PACK_ALIGNMENT, 4))
     69       .Times(1)
     70       .RetiresOnSaturation();
     71   EXPECT_CALL(*gl_, PixelStorei(GL_UNPACK_ALIGNMENT, 4))
     72       .Times(1)
     73       .RetiresOnSaturation();
     74   EXPECT_CALL(*gl_, PolygonOffset(0.0f, 0.0f))
     75       .Times(1)
     76       .RetiresOnSaturation();
     77   EXPECT_CALL(*gl_, SampleCoverage(1.0f, false))
     78       .Times(1)
     79       .RetiresOnSaturation();
     80   EXPECT_CALL(
     81       *gl_, Scissor(kViewportX, kViewportY, kViewportWidth, kViewportHeight))
     82       .Times(1)
     83       .RetiresOnSaturation();
     84   EXPECT_CALL(*gl_, StencilFuncSeparate(GL_FRONT, GL_ALWAYS, 0, 0xFFFFFFFFU))
     85       .Times(1)
     86       .RetiresOnSaturation();
     87   EXPECT_CALL(*gl_, StencilFuncSeparate(GL_BACK, GL_ALWAYS, 0, 0xFFFFFFFFU))
     88       .Times(1)
     89       .RetiresOnSaturation();
     90   EXPECT_CALL(*gl_, StencilMaskSeparate(GL_FRONT, 0xFFFFFFFFU))
     91       .Times(1)
     92       .RetiresOnSaturation();
     93   EXPECT_CALL(*gl_, StencilMaskSeparate(GL_BACK, 0xFFFFFFFFU))
     94       .Times(1)
     95       .RetiresOnSaturation();
     96   EXPECT_CALL(*gl_, StencilOpSeparate(GL_FRONT, GL_KEEP, GL_KEEP, GL_KEEP))
     97       .Times(1)
     98       .RetiresOnSaturation();
     99   EXPECT_CALL(*gl_, StencilOpSeparate(GL_BACK, GL_KEEP, GL_KEEP, GL_KEEP))
    100       .Times(1)
    101       .RetiresOnSaturation();
    102   EXPECT_CALL(
    103       *gl_, Viewport(kViewportX, kViewportY, kViewportWidth, kViewportHeight))
    104       .Times(1)
    105       .RetiresOnSaturation();
    106 }
    107 #endif  // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_UNITTEST_0_AUTOGEN_H_
    108 
    109