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

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

Issue 661220: Added support for glGetString, glGetShaderSource,... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « gpu/command_buffer/service/gles2_cmd_decoder_unittest_1_autogen.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/command_buffer/service/gles2_cmd_decoder_unittest_2_autogen.h
===================================================================
--- gpu/command_buffer/service/gles2_cmd_decoder_unittest_2_autogen.h (revision 40176)
+++ gpu/command_buffer/service/gles2_cmd_decoder_unittest_2_autogen.h (working copy)
@@ -667,17 +667,6 @@
EXPECT_EQ(error::kNoError,
ExecuteImmediateCmd(cmd, sizeof(temp)));
}
-
-TEST_F(GLES2DecoderTest2, Uniform1fvImmediateInvalidArgs1_0) {
- Uniform1fvImmediate& cmd = *GetImmediateAs<Uniform1fvImmediate>();
- EXPECT_CALL(*gl_, Uniform1fv(_, _, _)).Times(0);
- SpecializedSetup<Uniform1fvImmediate, 0>();
- GLfloat temp[1 * 2] = { 0, };
- cmd.Init(1, -1, &temp[0]);
- EXPECT_EQ(error::kNoError,
- ExecuteImmediateCmd(cmd, sizeof(temp)));
- EXPECT_EQ(GL_INVALID_VALUE, GetGLError());
-}
// TODO(gman): Uniform1i
// TODO(gman): Uniform1iv
// TODO(gman): Uniform1ivImmediate
@@ -738,17 +727,6 @@
ExecuteImmediateCmd(cmd, sizeof(temp)));
}
-TEST_F(GLES2DecoderTest2, Uniform2fvImmediateInvalidArgs1_0) {
- Uniform2fvImmediate& cmd = *GetImmediateAs<Uniform2fvImmediate>();
- EXPECT_CALL(*gl_, Uniform2fv(_, _, _)).Times(0);
- SpecializedSetup<Uniform2fvImmediate, 0>();
- GLfloat temp[2 * 2] = { 0, };
- cmd.Init(1, -1, &temp[0]);
- EXPECT_EQ(error::kNoError,
- ExecuteImmediateCmd(cmd, sizeof(temp)));
- EXPECT_EQ(GL_INVALID_VALUE, GetGLError());
-}
-
TEST_F(GLES2DecoderTest2, Uniform2iValidArgs) {
EXPECT_CALL(*gl_, Uniform2i(1, 2, 3));
SpecializedSetup<Uniform2i, 0>();
@@ -805,17 +783,6 @@
ExecuteImmediateCmd(cmd, sizeof(temp)));
}
-TEST_F(GLES2DecoderTest2, Uniform2ivImmediateInvalidArgs1_0) {
- Uniform2ivImmediate& cmd = *GetImmediateAs<Uniform2ivImmediate>();
- EXPECT_CALL(*gl_, Uniform2iv(_, _, _)).Times(0);
- SpecializedSetup<Uniform2ivImmediate, 0>();
- GLint temp[2 * 2] = { 0, };
- cmd.Init(1, -1, &temp[0]);
- EXPECT_EQ(error::kNoError,
- ExecuteImmediateCmd(cmd, sizeof(temp)));
- EXPECT_EQ(GL_INVALID_VALUE, GetGLError());
-}
-
TEST_F(GLES2DecoderTest2, Uniform3fValidArgs) {
EXPECT_CALL(*gl_, Uniform3f(1, 2, 3, 4));
SpecializedSetup<Uniform3f, 0>();
@@ -872,17 +839,6 @@
ExecuteImmediateCmd(cmd, sizeof(temp)));
}
-TEST_F(GLES2DecoderTest2, Uniform3fvImmediateInvalidArgs1_0) {
- Uniform3fvImmediate& cmd = *GetImmediateAs<Uniform3fvImmediate>();
- EXPECT_CALL(*gl_, Uniform3fv(_, _, _)).Times(0);
- SpecializedSetup<Uniform3fvImmediate, 0>();
- GLfloat temp[3 * 2] = { 0, };
- cmd.Init(1, -1, &temp[0]);
- EXPECT_EQ(error::kNoError,
- ExecuteImmediateCmd(cmd, sizeof(temp)));
- EXPECT_EQ(GL_INVALID_VALUE, GetGLError());
-}
-
TEST_F(GLES2DecoderTest2, Uniform3iValidArgs) {
EXPECT_CALL(*gl_, Uniform3i(1, 2, 3, 4));
SpecializedSetup<Uniform3i, 0>();
@@ -939,17 +895,6 @@
ExecuteImmediateCmd(cmd, sizeof(temp)));
}
-TEST_F(GLES2DecoderTest2, Uniform3ivImmediateInvalidArgs1_0) {
- Uniform3ivImmediate& cmd = *GetImmediateAs<Uniform3ivImmediate>();
- EXPECT_CALL(*gl_, Uniform3iv(_, _, _)).Times(0);
- SpecializedSetup<Uniform3ivImmediate, 0>();
- GLint temp[3 * 2] = { 0, };
- cmd.Init(1, -1, &temp[0]);
- EXPECT_EQ(error::kNoError,
- ExecuteImmediateCmd(cmd, sizeof(temp)));
- EXPECT_EQ(GL_INVALID_VALUE, GetGLError());
-}
-
TEST_F(GLES2DecoderTest2, Uniform4fValidArgs) {
EXPECT_CALL(*gl_, Uniform4f(1, 2, 3, 4, 5));
SpecializedSetup<Uniform4f, 0>();
@@ -1006,17 +951,6 @@
ExecuteImmediateCmd(cmd, sizeof(temp)));
}
-TEST_F(GLES2DecoderTest2, Uniform4fvImmediateInvalidArgs1_0) {
- Uniform4fvImmediate& cmd = *GetImmediateAs<Uniform4fvImmediate>();
- EXPECT_CALL(*gl_, Uniform4fv(_, _, _)).Times(0);
- SpecializedSetup<Uniform4fvImmediate, 0>();
- GLfloat temp[4 * 2] = { 0, };
- cmd.Init(1, -1, &temp[0]);
- EXPECT_EQ(error::kNoError,
- ExecuteImmediateCmd(cmd, sizeof(temp)));
- EXPECT_EQ(GL_INVALID_VALUE, GetGLError());
-}
-
TEST_F(GLES2DecoderTest2, Uniform4iValidArgs) {
EXPECT_CALL(*gl_, Uniform4i(1, 2, 3, 4, 5));
SpecializedSetup<Uniform4i, 0>();
@@ -1073,17 +1007,6 @@
ExecuteImmediateCmd(cmd, sizeof(temp)));
}
-TEST_F(GLES2DecoderTest2, Uniform4ivImmediateInvalidArgs1_0) {
- Uniform4ivImmediate& cmd = *GetImmediateAs<Uniform4ivImmediate>();
- EXPECT_CALL(*gl_, Uniform4iv(_, _, _)).Times(0);
- SpecializedSetup<Uniform4ivImmediate, 0>();
- GLint temp[4 * 2] = { 0, };
- cmd.Init(1, -1, &temp[0]);
- EXPECT_EQ(error::kNoError,
- ExecuteImmediateCmd(cmd, sizeof(temp)));
- EXPECT_EQ(GL_INVALID_VALUE, GetGLError());
-}
-
TEST_F(GLES2DecoderTest2, UniformMatrix2fvValidArgs) {
EXPECT_CALL(
*gl_, UniformMatrix2fv(
@@ -1110,7 +1033,7 @@
UniformMatrix2fv cmd;
cmd.Init(1, 2, true, shared_memory_id_, shared_memory_offset_);
EXPECT_EQ(error::kNoError, ExecuteCmd(cmd));
- EXPECT_EQ(GL_INVALID_ENUM, GetGLError());
+ EXPECT_EQ(GL_INVALID_VALUE, GetGLError());
}
TEST_F(GLES2DecoderTest2, UniformMatrix2fvInvalidArgs3_0) {
@@ -1143,18 +1066,6 @@
ExecuteImmediateCmd(cmd, sizeof(temp)));
}
-TEST_F(GLES2DecoderTest2, UniformMatrix2fvImmediateInvalidArgs1_0) {
- UniformMatrix2fvImmediate& cmd =
- *GetImmediateAs<UniformMatrix2fvImmediate>();
- EXPECT_CALL(*gl_, UniformMatrix2fv(_, _, _, _)).Times(0);
- SpecializedSetup<UniformMatrix2fvImmediate, 0>();
- GLfloat temp[4 * 2] = { 0, };
- cmd.Init(1, -1, false, &temp[0]);
- EXPECT_EQ(error::kNoError,
- ExecuteImmediateCmd(cmd, sizeof(temp)));
- EXPECT_EQ(GL_INVALID_VALUE, GetGLError());
-}
-
TEST_F(GLES2DecoderTest2, UniformMatrix2fvImmediateInvalidArgs2_0) {
UniformMatrix2fvImmediate& cmd =
*GetImmediateAs<UniformMatrix2fvImmediate>();
@@ -1164,7 +1075,7 @@
cmd.Init(1, 2, true, &temp[0]);
EXPECT_EQ(error::kNoError,
ExecuteImmediateCmd(cmd, sizeof(temp)));
- EXPECT_EQ(GL_INVALID_ENUM, GetGLError());
+ EXPECT_EQ(GL_INVALID_VALUE, GetGLError());
}
TEST_F(GLES2DecoderTest2, UniformMatrix3fvValidArgs) {
@@ -1193,7 +1104,7 @@
UniformMatrix3fv cmd;
cmd.Init(1, 2, true, shared_memory_id_, shared_memory_offset_);
EXPECT_EQ(error::kNoError, ExecuteCmd(cmd));
- EXPECT_EQ(GL_INVALID_ENUM, GetGLError());
+ EXPECT_EQ(GL_INVALID_VALUE, GetGLError());
}
TEST_F(GLES2DecoderTest2, UniformMatrix3fvInvalidArgs3_0) {
@@ -1226,18 +1137,6 @@
ExecuteImmediateCmd(cmd, sizeof(temp)));
}
-TEST_F(GLES2DecoderTest2, UniformMatrix3fvImmediateInvalidArgs1_0) {
- UniformMatrix3fvImmediate& cmd =
- *GetImmediateAs<UniformMatrix3fvImmediate>();
- EXPECT_CALL(*gl_, UniformMatrix3fv(_, _, _, _)).Times(0);
- SpecializedSetup<UniformMatrix3fvImmediate, 0>();
- GLfloat temp[9 * 2] = { 0, };
- cmd.Init(1, -1, false, &temp[0]);
- EXPECT_EQ(error::kNoError,
- ExecuteImmediateCmd(cmd, sizeof(temp)));
- EXPECT_EQ(GL_INVALID_VALUE, GetGLError());
-}
-
TEST_F(GLES2DecoderTest2, UniformMatrix3fvImmediateInvalidArgs2_0) {
UniformMatrix3fvImmediate& cmd =
*GetImmediateAs<UniformMatrix3fvImmediate>();
@@ -1247,7 +1146,7 @@
cmd.Init(1, 2, true, &temp[0]);
EXPECT_EQ(error::kNoError,
ExecuteImmediateCmd(cmd, sizeof(temp)));
- EXPECT_EQ(GL_INVALID_ENUM, GetGLError());
+ EXPECT_EQ(GL_INVALID_VALUE, GetGLError());
}
TEST_F(GLES2DecoderTest2, UniformMatrix4fvValidArgs) {
@@ -1276,7 +1175,7 @@
UniformMatrix4fv cmd;
cmd.Init(1, 2, true, shared_memory_id_, shared_memory_offset_);
EXPECT_EQ(error::kNoError, ExecuteCmd(cmd));
- EXPECT_EQ(GL_INVALID_ENUM, GetGLError());
+ EXPECT_EQ(GL_INVALID_VALUE, GetGLError());
}
TEST_F(GLES2DecoderTest2, UniformMatrix4fvInvalidArgs3_0) {
@@ -1309,18 +1208,6 @@
ExecuteImmediateCmd(cmd, sizeof(temp)));
}
-TEST_F(GLES2DecoderTest2, UniformMatrix4fvImmediateInvalidArgs1_0) {
- UniformMatrix4fvImmediate& cmd =
- *GetImmediateAs<UniformMatrix4fvImmediate>();
- EXPECT_CALL(*gl_, UniformMatrix4fv(_, _, _, _)).Times(0);
- SpecializedSetup<UniformMatrix4fvImmediate, 0>();
- GLfloat temp[16 * 2] = { 0, };
- cmd.Init(1, -1, false, &temp[0]);
- EXPECT_EQ(error::kNoError,
- ExecuteImmediateCmd(cmd, sizeof(temp)));
- EXPECT_EQ(GL_INVALID_VALUE, GetGLError());
-}
-
TEST_F(GLES2DecoderTest2, UniformMatrix4fvImmediateInvalidArgs2_0) {
UniformMatrix4fvImmediate& cmd =
*GetImmediateAs<UniformMatrix4fvImmediate>();
@@ -1330,7 +1217,7 @@
cmd.Init(1, 2, true, &temp[0]);
EXPECT_EQ(error::kNoError,
ExecuteImmediateCmd(cmd, sizeof(temp)));
- EXPECT_EQ(GL_INVALID_ENUM, GetGLError());
+ EXPECT_EQ(GL_INVALID_VALUE, GetGLError());
}
// TODO(gman): UseProgram
« no previous file with comments | « gpu/command_buffer/service/gles2_cmd_decoder_unittest_1_autogen.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698