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

Unified Diff: gpu/command_buffer/client/gles2_implementation_unittest_autogen.h

Issue 706903004: Revert of Add subscribeUniform extension pipeline (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 1 month 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/client/gles2_implementation_unittest_autogen.h
diff --git a/gpu/command_buffer/client/gles2_implementation_unittest_autogen.h b/gpu/command_buffer/client/gles2_implementation_unittest_autogen.h
index 240f554edc45e54b6c6e743baf91587b50bc7e12..a42d6d5d78ea8f936812adbe9a196cc35fd96cd7 100644
--- a/gpu/command_buffer/client/gles2_implementation_unittest_autogen.h
+++ b/gpu/command_buffer/client/gles2_implementation_unittest_autogen.h
@@ -1804,108 +1804,6 @@
// TODO: Implement unit test for GenMailboxCHROMIUM
// TODO: Implement unit test for BindUniformLocationCHROMIUM
-TEST_F(GLES2ImplementationTest, GenValuebuffersCHROMIUM) {
- GLuint ids[2] = {
- 0,
- };
- struct Cmds {
- cmds::GenValuebuffersCHROMIUMImmediate gen;
- GLuint data[2];
- };
- Cmds expected;
- expected.gen.Init(arraysize(ids), &ids[0]);
- expected.data[0] = kValuebuffersStartId;
- expected.data[1] = kValuebuffersStartId + 1;
- gl_->GenValuebuffersCHROMIUM(arraysize(ids), &ids[0]);
- EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected)));
- EXPECT_EQ(kValuebuffersStartId, ids[0]);
- EXPECT_EQ(kValuebuffersStartId + 1, ids[1]);
-}
-
-TEST_F(GLES2ImplementationTest, DeleteValuebuffersCHROMIUM) {
- GLuint ids[2] = {kValuebuffersStartId, kValuebuffersStartId + 1};
- struct Cmds {
- cmds::DeleteValuebuffersCHROMIUMImmediate del;
- GLuint data[2];
- };
- Cmds expected;
- expected.del.Init(arraysize(ids), &ids[0]);
- expected.data[0] = kValuebuffersStartId;
- expected.data[1] = kValuebuffersStartId + 1;
- gl_->DeleteValuebuffersCHROMIUM(arraysize(ids), &ids[0]);
- EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected)));
-}
-
-TEST_F(GLES2ImplementationTest, IsValuebufferCHROMIUM) {
- struct Cmds {
- cmds::IsValuebufferCHROMIUM cmd;
- };
-
- Cmds expected;
- ExpectedMemoryInfo result1 =
- GetExpectedResultMemory(sizeof(cmds::IsValuebufferCHROMIUM::Result));
- expected.cmd.Init(1, result1.id, result1.offset);
-
- EXPECT_CALL(*command_buffer(), OnFlush())
- .WillOnce(SetMemory(result1.ptr, uint32_t(1)))
- .RetiresOnSaturation();
-
- GLboolean result = gl_->IsValuebufferCHROMIUM(1);
- EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected)));
- EXPECT_TRUE(result);
-}
-
-TEST_F(GLES2ImplementationTest, BindValuebufferCHROMIUM) {
- struct Cmds {
- cmds::BindValuebufferCHROMIUM cmd;
- };
- Cmds expected;
- expected.cmd.Init(GL_SUBSCRIBED_VALUES_BUFFER_CHROMIUM, 2);
-
- gl_->BindValuebufferCHROMIUM(GL_SUBSCRIBED_VALUES_BUFFER_CHROMIUM, 2);
- EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected)));
- ClearCommands();
- gl_->BindValuebufferCHROMIUM(GL_SUBSCRIBED_VALUES_BUFFER_CHROMIUM, 2);
- EXPECT_TRUE(NoCommandsWritten());
-}
-
-TEST_F(GLES2ImplementationTest, SubscribeValueCHROMIUM) {
- struct Cmds {
- cmds::SubscribeValueCHROMIUM cmd;
- };
- Cmds expected;
- expected.cmd.Init(GL_SUBSCRIBED_VALUES_BUFFER_CHROMIUM,
- GL_MOUSE_POSITION_CHROMIUM);
-
- gl_->SubscribeValueCHROMIUM(GL_SUBSCRIBED_VALUES_BUFFER_CHROMIUM,
- GL_MOUSE_POSITION_CHROMIUM);
- EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected)));
-}
-
-TEST_F(GLES2ImplementationTest, PopulateSubscribedValuesCHROMIUM) {
- struct Cmds {
- cmds::PopulateSubscribedValuesCHROMIUM cmd;
- };
- Cmds expected;
- expected.cmd.Init(GL_SUBSCRIBED_VALUES_BUFFER_CHROMIUM);
-
- gl_->PopulateSubscribedValuesCHROMIUM(GL_SUBSCRIBED_VALUES_BUFFER_CHROMIUM);
- EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected)));
-}
-
-TEST_F(GLES2ImplementationTest, UniformValuebufferCHROMIUM) {
- struct Cmds {
- cmds::UniformValuebufferCHROMIUM cmd;
- };
- Cmds expected;
- expected.cmd.Init(1, GL_SUBSCRIBED_VALUES_BUFFER_CHROMIUM,
- GL_MOUSE_POSITION_CHROMIUM);
-
- gl_->UniformValuebufferCHROMIUM(1, GL_SUBSCRIBED_VALUES_BUFFER_CHROMIUM,
- GL_MOUSE_POSITION_CHROMIUM);
- EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected)));
-}
-
TEST_F(GLES2ImplementationTest, BindTexImage2DCHROMIUM) {
struct Cmds {
cmds::BindTexImage2DCHROMIUM cmd;
« no previous file with comments | « gpu/command_buffer/client/gles2_implementation_unittest.cc ('k') | gpu/command_buffer/client/gles2_interface_autogen.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698