Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(307)

Side by Side Diff: gpu/command_buffer/service/gles2_cmd_decoder_unittest_2_autogen.h

Issue 952893003: Update from https://crrev.com/317530 (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Fix gn for nacl Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 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 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 from 5 // This file is auto-generated from
6 // gpu/command_buffer/build_gles2_cmd_buffer.py 6 // gpu/command_buffer/build_gles2_cmd_buffer.py
7 // It's formatted by clang-format using chromium coding style: 7 // It's formatted by clang-format using chromium coding style:
8 // clang-format -i -style=chromium filename 8 // clang-format -i -style=chromium filename
9 // DO NOT EDIT! 9 // DO NOT EDIT!
10 10
11 // It is included by gles2_cmd_decoder_unittest_2.cc 11 // It is included by gles2_cmd_decoder_unittest_2.cc
12 #ifndef GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_UNITTEST_2_AUTOGEN_H_ 12 #ifndef GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_UNITTEST_2_AUTOGEN_H_
13 #define GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_UNITTEST_2_AUTOGEN_H_ 13 #define GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_UNITTEST_2_AUTOGEN_H_
14 14
15 // TODO(gman): GetString
16
15 TEST_P(GLES2DecoderTest2, GetTexParameterfvValidArgs) { 17 TEST_P(GLES2DecoderTest2, GetTexParameterfvValidArgs) {
16 EXPECT_CALL(*gl_, GetError()) 18 EXPECT_CALL(*gl_, GetError())
17 .WillOnce(Return(GL_NO_ERROR)) 19 .WillOnce(Return(GL_NO_ERROR))
18 .WillOnce(Return(GL_NO_ERROR)) 20 .WillOnce(Return(GL_NO_ERROR))
19 .RetiresOnSaturation(); 21 .RetiresOnSaturation();
20 SpecializedSetup<cmds::GetTexParameterfv, 0>(true); 22 SpecializedSetup<cmds::GetTexParameterfv, 0>(true);
21 typedef cmds::GetTexParameterfv::Result Result; 23 typedef cmds::GetTexParameterfv::Result Result;
22 Result* result = static_cast<Result*>(shared_memory_address_); 24 Result* result = static_cast<Result*>(shared_memory_address_);
23 EXPECT_CALL(*gl_, GetTexParameterfv(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, 25 EXPECT_CALL(*gl_, GetTexParameterfv(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER,
24 result->GetData())); 26 result->GetData()));
(...skipping 1549 matching lines...) Expand 10 before | Expand all | Expand 10 after
1574 } 1576 }
1575 1577
1576 TEST_P(GLES2DecoderTest2, VertexAttrib2fValidArgs) { 1578 TEST_P(GLES2DecoderTest2, VertexAttrib2fValidArgs) {
1577 EXPECT_CALL(*gl_, VertexAttrib2f(1, 2, 3)); 1579 EXPECT_CALL(*gl_, VertexAttrib2f(1, 2, 3));
1578 SpecializedSetup<cmds::VertexAttrib2f, 0>(true); 1580 SpecializedSetup<cmds::VertexAttrib2f, 0>(true);
1579 cmds::VertexAttrib2f cmd; 1581 cmds::VertexAttrib2f cmd;
1580 cmd.Init(1, 2, 3); 1582 cmd.Init(1, 2, 3);
1581 EXPECT_EQ(error::kNoError, ExecuteCmd(cmd)); 1583 EXPECT_EQ(error::kNoError, ExecuteCmd(cmd));
1582 EXPECT_EQ(GL_NO_ERROR, GetGLError()); 1584 EXPECT_EQ(GL_NO_ERROR, GetGLError());
1583 } 1585 }
1584
1585 TEST_P(GLES2DecoderTest2, VertexAttrib2fvImmediateValidArgs) {
1586 cmds::VertexAttrib2fvImmediate& cmd =
1587 *GetImmediateAs<cmds::VertexAttrib2fvImmediate>();
1588 SpecializedSetup<cmds::VertexAttrib2fvImmediate, 0>(true);
1589 GLfloat temp[2] = {
1590 0,
1591 };
1592 cmd.Init(1, &temp[0]);
1593 EXPECT_CALL(*gl_, VertexAttrib2fv(1, reinterpret_cast<GLfloat*>(
1594 ImmediateDataAddress(&cmd))));
1595 EXPECT_EQ(error::kNoError, ExecuteImmediateCmd(cmd, sizeof(temp)));
1596 EXPECT_EQ(GL_NO_ERROR, GetGLError());
1597 }
1598 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_UNITTEST_2_AUTOGEN_H_ 1586 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_UNITTEST_2_AUTOGEN_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698