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

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

Issue 12542009: Revert "Revert 186416" (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 9 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 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 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 // DO NOT EDIT! 7 // DO NOT EDIT!
8 8
9 // It is included by gles2_cmd_decoder_unittest_1.cc 9 // It is included by gles2_cmd_decoder_unittest_1.cc
10 #ifndef GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_UNITTEST_1_AUTOGEN_H_ 10 #ifndef GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_UNITTEST_1_AUTOGEN_H_
(...skipping 1154 matching lines...) Expand 10 before | Expand all | Expand 10 after
1165 cmds::GetBooleanv::Result* result = 1165 cmds::GetBooleanv::Result* result =
1166 static_cast<cmds::GetBooleanv::Result*>(shared_memory_address_); 1166 static_cast<cmds::GetBooleanv::Result*>(shared_memory_address_);
1167 result->size = 0; 1167 result->size = 0;
1168 cmds::GetBooleanv cmd; 1168 cmds::GetBooleanv cmd;
1169 cmd.Init(GL_ACTIVE_TEXTURE, shared_memory_id_, kInvalidSharedMemoryOffset); 1169 cmd.Init(GL_ACTIVE_TEXTURE, shared_memory_id_, kInvalidSharedMemoryOffset);
1170 EXPECT_EQ(error::kOutOfBounds, ExecuteCmd(cmd)); 1170 EXPECT_EQ(error::kOutOfBounds, ExecuteCmd(cmd));
1171 EXPECT_EQ(0u, result->size); 1171 EXPECT_EQ(0u, result->size);
1172 } 1172 }
1173 1173
1174 TEST_F(GLES2DecoderTest1, GetBufferParameterivValidArgs) { 1174 TEST_F(GLES2DecoderTest1, GetBufferParameterivValidArgs) {
1175 EXPECT_CALL(*gl_, GetError())
1176 .WillOnce(Return(GL_NO_ERROR))
1177 .WillOnce(Return(GL_NO_ERROR))
1178 .RetiresOnSaturation();
1179 SpecializedSetup<cmds::GetBufferParameteriv, 0>(true); 1175 SpecializedSetup<cmds::GetBufferParameteriv, 0>(true);
1180 typedef cmds::GetBufferParameteriv::Result Result; 1176 typedef cmds::GetBufferParameteriv::Result Result;
1181 Result* result = static_cast<Result*>(shared_memory_address_); 1177 Result* result = static_cast<Result*>(shared_memory_address_);
1182 EXPECT_CALL(
1183 *gl_, GetBufferParameteriv(
1184 GL_ARRAY_BUFFER, GL_BUFFER_SIZE, result->GetData()));
1185 result->size = 0; 1178 result->size = 0;
1186 cmds::GetBufferParameteriv cmd; 1179 cmds::GetBufferParameteriv cmd;
1187 cmd.Init( 1180 cmd.Init(
1188 GL_ARRAY_BUFFER, GL_BUFFER_SIZE, shared_memory_id_, 1181 GL_ARRAY_BUFFER, GL_BUFFER_SIZE, shared_memory_id_,
1189 shared_memory_offset_); 1182 shared_memory_offset_);
1190 EXPECT_EQ(error::kNoError, ExecuteCmd(cmd)); 1183 EXPECT_EQ(error::kNoError, ExecuteCmd(cmd));
1191 EXPECT_EQ(decoder_->GetGLES2Util()->GLGetNumValuesReturned( 1184 EXPECT_EQ(decoder_->GetGLES2Util()->GLGetNumValuesReturned(
1192 GL_BUFFER_SIZE), 1185 GL_BUFFER_SIZE),
1193 result->GetNumResults()); 1186 result->GetNumResults());
1194 EXPECT_EQ(GL_NO_ERROR, GetGLError()); 1187 EXPECT_EQ(GL_NO_ERROR, GetGLError());
(...skipping 672 matching lines...) Expand 10 before | Expand all | Expand 10 after
1867 result->size = 0; 1860 result->size = 0;
1868 cmds::GetVertexAttribfv cmd; 1861 cmds::GetVertexAttribfv cmd;
1869 cmd.Init( 1862 cmd.Init(
1870 1, GL_VERTEX_ATTRIB_ARRAY_NORMALIZED, shared_memory_id_, 1863 1, GL_VERTEX_ATTRIB_ARRAY_NORMALIZED, shared_memory_id_,
1871 kInvalidSharedMemoryOffset); 1864 kInvalidSharedMemoryOffset);
1872 EXPECT_EQ(error::kOutOfBounds, ExecuteCmd(cmd)); 1865 EXPECT_EQ(error::kOutOfBounds, ExecuteCmd(cmd));
1873 EXPECT_EQ(0u, result->size); 1866 EXPECT_EQ(0u, result->size);
1874 } 1867 }
1875 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_UNITTEST_1_AUTOGEN_H_ 1868 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_UNITTEST_1_AUTOGEN_H_
1876 1869
OLDNEW
« no previous file with comments | « gpu/command_buffer/service/gles2_cmd_decoder_unittest_1.cc ('k') | gpu/command_buffer/service/query_manager_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698