Fix crash in SpeechRecognizerImpl introduced in AudioParams refactor.
[chromium-blink-merge.git] / gpu / command_buffer / service / gles2_cmd_decoder_unittest_extensions_autogen.h
blob5c22b6c9c7a3918602a0a82e8ccde111b1601fe3
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_extensions.cc
12 #ifndef GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_UNITTEST_EXTENSIONS_AUTOGEN_H_
13 #define GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_UNITTEST_EXTENSIONS_AUTOGEN_H_
15 // TODO(gman): BlitFramebufferCHROMIUM
16 // TODO(gman): RenderbufferStorageMultisampleCHROMIUM
17 // TODO(gman): RenderbufferStorageMultisampleEXT
18 // TODO(gman): FramebufferTexture2DMultisampleEXT
19 // TODO(gman): DiscardFramebufferEXTImmediate
21 TEST_P(GLES2DecoderTestWithCHROMIUMPathRendering,
22 MatrixLoadfCHROMIUMImmediateValidArgs) {
23 cmds::MatrixLoadfCHROMIUMImmediate& cmd =
24 *GetImmediateAs<cmds::MatrixLoadfCHROMIUMImmediate>();
25 SpecializedSetup<cmds::MatrixLoadfCHROMIUMImmediate, 0>(true);
26 GLfloat temp[16] = {
29 cmd.Init(GL_PATH_PROJECTION_CHROMIUM, &temp[0]);
30 EXPECT_CALL(
31 *gl_,
32 MatrixLoadfEXT(GL_PATH_PROJECTION_CHROMIUM,
33 reinterpret_cast<GLfloat*>(ImmediateDataAddress(&cmd))));
34 EXPECT_EQ(error::kNoError, ExecuteImmediateCmd(cmd, sizeof(temp)));
35 EXPECT_EQ(GL_NO_ERROR, GetGLError());
38 TEST_P(GLES2DecoderTestWithCHROMIUMPathRendering,
39 MatrixLoadIdentityCHROMIUMValidArgs) {
40 EXPECT_CALL(*gl_, MatrixLoadIdentityEXT(GL_PATH_PROJECTION_CHROMIUM));
41 SpecializedSetup<cmds::MatrixLoadIdentityCHROMIUM, 0>(true);
42 cmds::MatrixLoadIdentityCHROMIUM cmd;
43 cmd.Init(GL_PATH_PROJECTION_CHROMIUM);
44 EXPECT_EQ(error::kNoError, ExecuteCmd(cmd));
45 EXPECT_EQ(GL_NO_ERROR, GetGLError());
47 // TODO(gman): GenPathsCHROMIUM
49 // TODO(gman): DeletePathsCHROMIUM
51 TEST_P(GLES2DecoderTestWithCHROMIUMPathRendering, IsPathCHROMIUMValidArgs) {
52 EXPECT_CALL(*gl_, IsPathNV(kServicePathId));
53 SpecializedSetup<cmds::IsPathCHROMIUM, 0>(true);
54 cmds::IsPathCHROMIUM cmd;
55 cmd.Init(client_path_id_, shared_memory_id_, shared_memory_offset_);
56 EXPECT_EQ(error::kNoError, ExecuteCmd(cmd));
57 EXPECT_EQ(GL_NO_ERROR, GetGLError());
60 TEST_P(GLES2DecoderTestWithCHROMIUMPathRendering,
61 IsPathCHROMIUMInvalidArgsBadSharedMemoryId) {
62 EXPECT_CALL(*gl_, IsPathNV(kServicePathId)).Times(0);
63 SpecializedSetup<cmds::IsPathCHROMIUM, 0>(false);
64 cmds::IsPathCHROMIUM cmd;
65 cmd.Init(client_path_id_, kInvalidSharedMemoryId, shared_memory_offset_);
66 EXPECT_EQ(error::kOutOfBounds, ExecuteCmd(cmd));
67 cmd.Init(client_path_id_, shared_memory_id_, kInvalidSharedMemoryOffset);
68 EXPECT_EQ(error::kOutOfBounds, ExecuteCmd(cmd));
70 // TODO(gman): PathCommandsCHROMIUM
72 // TODO(gman): PathParameterfCHROMIUM
74 // TODO(gman): PathParameteriCHROMIUM
76 TEST_P(GLES2DecoderTestWithCHROMIUMPathRendering,
77 PathStencilFuncCHROMIUMValidArgs) {
78 EXPECT_CALL(*gl_, PathStencilFuncNV(GL_NEVER, 2, 3));
79 SpecializedSetup<cmds::PathStencilFuncCHROMIUM, 0>(true);
80 cmds::PathStencilFuncCHROMIUM cmd;
81 cmd.Init(GL_NEVER, 2, 3);
82 EXPECT_EQ(error::kNoError, ExecuteCmd(cmd));
83 EXPECT_EQ(GL_NO_ERROR, GetGLError());
85 // TODO(gman): StencilFillPathCHROMIUM
87 // TODO(gman): StencilStrokePathCHROMIUM
89 // TODO(gman): CoverFillPathCHROMIUM
91 // TODO(gman): CoverStrokePathCHROMIUM
93 // TODO(gman): StencilThenCoverFillPathCHROMIUM
95 // TODO(gman): StencilThenCoverStrokePathCHROMIUM
97 TEST_P(GLES2DecoderTestWithBlendEquationAdvanced, BlendBarrierKHRValidArgs) {
98 EXPECT_CALL(*gl_, BlendBarrierKHR());
99 SpecializedSetup<cmds::BlendBarrierKHR, 0>(true);
100 cmds::BlendBarrierKHR cmd;
101 cmd.Init();
102 EXPECT_EQ(error::kNoError, ExecuteCmd(cmd));
103 EXPECT_EQ(GL_NO_ERROR, GetGLError());
105 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_UNITTEST_EXTENSIONS_AUTOGEN_H_