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

Side by Side Diff: gpu/command_buffer/client/gles2_implementation_unittest.cc

Issue 1894313002: Removed implementation of CHROMIUM_subscribe_uniform (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Missed a couple more mus/ references Created 4 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 unified diff | Download patch
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 // Tests for GLES2Implementation. 5 // Tests for GLES2Implementation.
6 6
7 #include "gpu/command_buffer/client/gles2_implementation.h" 7 #include "gpu/command_buffer/client/gles2_implementation.h"
8 8
9 #include <GLES2/gl2.h> 9 #include <GLES2/gl2.h>
10 #include <GLES2/gl2ext.h> 10 #include <GLES2/gl2ext.h>
(...skipping 398 matching lines...) Expand 10 before | Expand all | Expand 10 after
409 static const GLuint kStartId = 1024; 409 static const GLuint kStartId = 1024;
410 static const GLuint kBuffersStartId = 1; 410 static const GLuint kBuffersStartId = 1;
411 static const GLuint kFramebuffersStartId = 1; 411 static const GLuint kFramebuffersStartId = 1;
412 static const GLuint kProgramsAndShadersStartId = 1; 412 static const GLuint kProgramsAndShadersStartId = 1;
413 static const GLuint kRenderbuffersStartId = 1; 413 static const GLuint kRenderbuffersStartId = 1;
414 static const GLuint kSamplersStartId = 1; 414 static const GLuint kSamplersStartId = 1;
415 static const GLuint kTexturesStartId = 1; 415 static const GLuint kTexturesStartId = 1;
416 static const GLuint kTransformFeedbacksStartId = 1; 416 static const GLuint kTransformFeedbacksStartId = 1;
417 static const GLuint kQueriesStartId = 1; 417 static const GLuint kQueriesStartId = 1;
418 static const GLuint kVertexArraysStartId = 1; 418 static const GLuint kVertexArraysStartId = 1;
419 static const GLuint kValuebuffersStartId = 1;
420 419
421 typedef MockTransferBuffer::ExpectedMemoryInfo ExpectedMemoryInfo; 420 typedef MockTransferBuffer::ExpectedMemoryInfo ExpectedMemoryInfo;
422 421
423 class TestContext { 422 class TestContext {
424 public: 423 public:
425 TestContext() : commands_(NULL), token_(0) {} 424 TestContext() : commands_(NULL), token_(0) {}
426 425
427 bool Initialize(ShareGroup* share_group, 426 bool Initialize(ShareGroup* share_group,
428 bool bind_generates_resource_client, 427 bool bind_generates_resource_client,
429 bool bind_generates_resource_service, 428 bool bind_generates_resource_service,
(...skipping 419 matching lines...) Expand 10 before | Expand all | Expand 10 after
849 const GLuint GLES2ImplementationTest::kStartId; 848 const GLuint GLES2ImplementationTest::kStartId;
850 const GLuint GLES2ImplementationTest::kBuffersStartId; 849 const GLuint GLES2ImplementationTest::kBuffersStartId;
851 const GLuint GLES2ImplementationTest::kFramebuffersStartId; 850 const GLuint GLES2ImplementationTest::kFramebuffersStartId;
852 const GLuint GLES2ImplementationTest::kProgramsAndShadersStartId; 851 const GLuint GLES2ImplementationTest::kProgramsAndShadersStartId;
853 const GLuint GLES2ImplementationTest::kRenderbuffersStartId; 852 const GLuint GLES2ImplementationTest::kRenderbuffersStartId;
854 const GLuint GLES2ImplementationTest::kSamplersStartId; 853 const GLuint GLES2ImplementationTest::kSamplersStartId;
855 const GLuint GLES2ImplementationTest::kTexturesStartId; 854 const GLuint GLES2ImplementationTest::kTexturesStartId;
856 const GLuint GLES2ImplementationTest::kTransformFeedbacksStartId; 855 const GLuint GLES2ImplementationTest::kTransformFeedbacksStartId;
857 const GLuint GLES2ImplementationTest::kQueriesStartId; 856 const GLuint GLES2ImplementationTest::kQueriesStartId;
858 const GLuint GLES2ImplementationTest::kVertexArraysStartId; 857 const GLuint GLES2ImplementationTest::kVertexArraysStartId;
859 const GLuint GLES2ImplementationTest::kValuebuffersStartId;
860 #endif 858 #endif
861 859
862 TEST_F(GLES2ImplementationTest, Basic) { 860 TEST_F(GLES2ImplementationTest, Basic) {
863 EXPECT_TRUE(gl_->share_group() != NULL); 861 EXPECT_TRUE(gl_->share_group() != NULL);
864 } 862 }
865 863
866 TEST_F(GLES2ImplementationTest, GetBucketContents) { 864 TEST_F(GLES2ImplementationTest, GetBucketContents) {
867 const uint32_t kBucketId = GLES2Implementation::kResultBucketId; 865 const uint32_t kBucketId = GLES2Implementation::kResultBucketId;
868 const uint32_t kTestSize = MaxTransferBufferSize() + 32; 866 const uint32_t kTestSize = MaxTransferBufferSize() + 32;
869 867
(...skipping 3638 matching lines...) Expand 10 before | Expand all | Expand 10 after
4508 ContextInitOptions init_options; 4506 ContextInitOptions init_options;
4509 init_options.transfer_buffer_initialize_fail = true; 4507 init_options.transfer_buffer_initialize_fail = true;
4510 EXPECT_FALSE(Initialize(init_options)); 4508 EXPECT_FALSE(Initialize(init_options));
4511 } 4509 }
4512 4510
4513 #include "base/macros.h" 4511 #include "base/macros.h"
4514 #include "gpu/command_buffer/client/gles2_implementation_unittest_autogen.h" 4512 #include "gpu/command_buffer/client/gles2_implementation_unittest_autogen.h"
4515 4513
4516 } // namespace gles2 4514 } // namespace gles2
4517 } // namespace gpu 4515 } // namespace gpu
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698