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

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

Issue 951673002: Revert "Pull chromium at 2c3ffb2355a27c32f45e508ef861416b820c823b" (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: 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
17 TEST_P(GLES2DecoderTest2, GetTexParameterfvValidArgs) { 15 TEST_P(GLES2DecoderTest2, GetTexParameterfvValidArgs) {
18 EXPECT_CALL(*gl_, GetError()) 16 EXPECT_CALL(*gl_, GetError())
19 .WillOnce(Return(GL_NO_ERROR)) 17 .WillOnce(Return(GL_NO_ERROR))
20 .WillOnce(Return(GL_NO_ERROR)) 18 .WillOnce(Return(GL_NO_ERROR))
21 .RetiresOnSaturation(); 19 .RetiresOnSaturation();
22 SpecializedSetup<cmds::GetTexParameterfv, 0>(true); 20 SpecializedSetup<cmds::GetTexParameterfv, 0>(true);
23 typedef cmds::GetTexParameterfv::Result Result; 21 typedef cmds::GetTexParameterfv::Result Result;
24 Result* result = static_cast<Result*>(shared_memory_address_); 22 Result* result = static_cast<Result*>(shared_memory_address_);
25 EXPECT_CALL(*gl_, GetTexParameterfv(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, 23 EXPECT_CALL(*gl_, GetTexParameterfv(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER,
26 result->GetData())); 24 result->GetData()));
(...skipping 1549 matching lines...) Expand 10 before | Expand all | Expand 10 after
1576 } 1574 }
1577 1575
1578 TEST_P(GLES2DecoderTest2, VertexAttrib2fValidArgs) { 1576 TEST_P(GLES2DecoderTest2, VertexAttrib2fValidArgs) {
1579 EXPECT_CALL(*gl_, VertexAttrib2f(1, 2, 3)); 1577 EXPECT_CALL(*gl_, VertexAttrib2f(1, 2, 3));
1580 SpecializedSetup<cmds::VertexAttrib2f, 0>(true); 1578 SpecializedSetup<cmds::VertexAttrib2f, 0>(true);
1581 cmds::VertexAttrib2f cmd; 1579 cmds::VertexAttrib2f cmd;
1582 cmd.Init(1, 2, 3); 1580 cmd.Init(1, 2, 3);
1583 EXPECT_EQ(error::kNoError, ExecuteCmd(cmd)); 1581 EXPECT_EQ(error::kNoError, ExecuteCmd(cmd));
1584 EXPECT_EQ(GL_NO_ERROR, GetGLError()); 1582 EXPECT_EQ(GL_NO_ERROR, GetGLError());
1585 } 1583 }
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 }
1586 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_UNITTEST_2_AUTOGEN_H_ 1598 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_UNITTEST_2_AUTOGEN_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698