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

Unified Diff: gpu/command_buffer/service/gles2_cmd_decoder_unittest_2_autogen.h

Issue 1747013: Changes the code to use separate ids namspaces... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 8 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 side-by-side diff with in-line comments
Download patch
Index: gpu/command_buffer/service/gles2_cmd_decoder_unittest_2_autogen.h
===================================================================
--- gpu/command_buffer/service/gles2_cmd_decoder_unittest_2_autogen.h (revision 45605)
+++ gpu/command_buffer/service/gles2_cmd_decoder_unittest_2_autogen.h (working copy)
@@ -192,7 +192,7 @@
TEST_F(GLES2DecoderTest2, IsFramebufferValidArgs) {
SpecializedSetup<IsFramebuffer, 0>();
IsFramebuffer cmd;
- cmd.Init(1, shared_memory_id_, shared_memory_offset_);
+ cmd.Init(client_framebuffer_id_, shared_memory_id_, shared_memory_offset_);
EXPECT_EQ(error::kNoError, ExecuteCmd(cmd));
EXPECT_EQ(GL_NO_ERROR, GetGLError());
}
@@ -200,16 +200,18 @@
TEST_F(GLES2DecoderTest2, IsFramebufferInvalidArgsBadSharedMemoryId) {
SpecializedSetup<IsFramebuffer, 0>();
IsFramebuffer cmd;
- cmd.Init(1, kInvalidSharedMemoryId, shared_memory_offset_);
+ cmd.Init(
+ client_framebuffer_id_, kInvalidSharedMemoryId, shared_memory_offset_);
EXPECT_EQ(error::kOutOfBounds, ExecuteCmd(cmd));
- cmd.Init(1, shared_memory_id_, kInvalidSharedMemoryOffset);
+ cmd.Init(
+ client_framebuffer_id_, shared_memory_id_, kInvalidSharedMemoryOffset);
EXPECT_EQ(error::kOutOfBounds, ExecuteCmd(cmd));
}
TEST_F(GLES2DecoderTest2, IsProgramValidArgs) {
SpecializedSetup<IsProgram, 0>();
IsProgram cmd;
- cmd.Init(1, shared_memory_id_, shared_memory_offset_);
+ cmd.Init(client_program_id_, shared_memory_id_, shared_memory_offset_);
EXPECT_EQ(error::kNoError, ExecuteCmd(cmd));
EXPECT_EQ(GL_NO_ERROR, GetGLError());
}
@@ -217,16 +219,16 @@
TEST_F(GLES2DecoderTest2, IsProgramInvalidArgsBadSharedMemoryId) {
SpecializedSetup<IsProgram, 0>();
IsProgram cmd;
- cmd.Init(1, kInvalidSharedMemoryId, shared_memory_offset_);
+ cmd.Init(client_program_id_, kInvalidSharedMemoryId, shared_memory_offset_);
EXPECT_EQ(error::kOutOfBounds, ExecuteCmd(cmd));
- cmd.Init(1, shared_memory_id_, kInvalidSharedMemoryOffset);
+ cmd.Init(client_program_id_, shared_memory_id_, kInvalidSharedMemoryOffset);
EXPECT_EQ(error::kOutOfBounds, ExecuteCmd(cmd));
}
TEST_F(GLES2DecoderTest2, IsRenderbufferValidArgs) {
SpecializedSetup<IsRenderbuffer, 0>();
IsRenderbuffer cmd;
- cmd.Init(1, shared_memory_id_, shared_memory_offset_);
+ cmd.Init(client_renderbuffer_id_, shared_memory_id_, shared_memory_offset_);
EXPECT_EQ(error::kNoError, ExecuteCmd(cmd));
EXPECT_EQ(GL_NO_ERROR, GetGLError());
}
@@ -234,16 +236,18 @@
TEST_F(GLES2DecoderTest2, IsRenderbufferInvalidArgsBadSharedMemoryId) {
SpecializedSetup<IsRenderbuffer, 0>();
IsRenderbuffer cmd;
- cmd.Init(1, kInvalidSharedMemoryId, shared_memory_offset_);
+ cmd.Init(
+ client_renderbuffer_id_, kInvalidSharedMemoryId, shared_memory_offset_);
EXPECT_EQ(error::kOutOfBounds, ExecuteCmd(cmd));
- cmd.Init(1, shared_memory_id_, kInvalidSharedMemoryOffset);
+ cmd.Init(
+ client_renderbuffer_id_, shared_memory_id_, kInvalidSharedMemoryOffset);
EXPECT_EQ(error::kOutOfBounds, ExecuteCmd(cmd));
}
TEST_F(GLES2DecoderTest2, IsShaderValidArgs) {
SpecializedSetup<IsShader, 0>();
IsShader cmd;
- cmd.Init(1, shared_memory_id_, shared_memory_offset_);
+ cmd.Init(client_shader_id_, shared_memory_id_, shared_memory_offset_);
EXPECT_EQ(error::kNoError, ExecuteCmd(cmd));
EXPECT_EQ(GL_NO_ERROR, GetGLError());
}
@@ -251,16 +255,16 @@
TEST_F(GLES2DecoderTest2, IsShaderInvalidArgsBadSharedMemoryId) {
SpecializedSetup<IsShader, 0>();
IsShader cmd;
- cmd.Init(1, kInvalidSharedMemoryId, shared_memory_offset_);
+ cmd.Init(client_shader_id_, kInvalidSharedMemoryId, shared_memory_offset_);
EXPECT_EQ(error::kOutOfBounds, ExecuteCmd(cmd));
- cmd.Init(1, shared_memory_id_, kInvalidSharedMemoryOffset);
+ cmd.Init(client_shader_id_, shared_memory_id_, kInvalidSharedMemoryOffset);
EXPECT_EQ(error::kOutOfBounds, ExecuteCmd(cmd));
}
TEST_F(GLES2DecoderTest2, IsTextureValidArgs) {
SpecializedSetup<IsTexture, 0>();
IsTexture cmd;
- cmd.Init(1, shared_memory_id_, shared_memory_offset_);
+ cmd.Init(client_texture_id_, shared_memory_id_, shared_memory_offset_);
EXPECT_EQ(error::kNoError, ExecuteCmd(cmd));
EXPECT_EQ(GL_NO_ERROR, GetGLError());
}
@@ -268,9 +272,9 @@
TEST_F(GLES2DecoderTest2, IsTextureInvalidArgsBadSharedMemoryId) {
SpecializedSetup<IsTexture, 0>();
IsTexture cmd;
- cmd.Init(1, kInvalidSharedMemoryId, shared_memory_offset_);
+ cmd.Init(client_texture_id_, kInvalidSharedMemoryId, shared_memory_offset_);
EXPECT_EQ(error::kOutOfBounds, ExecuteCmd(cmd));
- cmd.Init(1, shared_memory_id_, kInvalidSharedMemoryOffset);
+ cmd.Init(client_texture_id_, shared_memory_id_, kInvalidSharedMemoryOffset);
EXPECT_EQ(error::kOutOfBounds, ExecuteCmd(cmd));
}

Powered by Google App Engine
This is Rietveld 408576698