OLD | NEW |
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 <limits> | 9 #include <limits> |
10 | 10 |
(...skipping 366 matching lines...) Loading... |
377 static const GLint kMaxVertexTextureImageUnits = 0; | 377 static const GLint kMaxVertexTextureImageUnits = 0; |
378 static const GLint kMaxVertexUniformVectors = 128; | 378 static const GLint kMaxVertexUniformVectors = 128; |
379 static const GLint kNumCompressedTextureFormats = 0; | 379 static const GLint kNumCompressedTextureFormats = 0; |
380 static const GLint kNumShaderBinaryFormats = 0; | 380 static const GLint kNumShaderBinaryFormats = 0; |
381 static const GLuint kStartId = 1024; | 381 static const GLuint kStartId = 1024; |
382 static const GLuint kBuffersStartId = | 382 static const GLuint kBuffersStartId = |
383 GLES2Implementation::kClientSideArrayId + 2 * kNumTestContexts; | 383 GLES2Implementation::kClientSideArrayId + 2 * kNumTestContexts; |
384 static const GLuint kFramebuffersStartId = 1; | 384 static const GLuint kFramebuffersStartId = 1; |
385 static const GLuint kProgramsAndShadersStartId = 1; | 385 static const GLuint kProgramsAndShadersStartId = 1; |
386 static const GLuint kRenderbuffersStartId = 1; | 386 static const GLuint kRenderbuffersStartId = 1; |
| 387 static const GLuint kSamplersStartId = 1; |
387 static const GLuint kTexturesStartId = 1; | 388 static const GLuint kTexturesStartId = 1; |
| 389 static const GLuint kTransformFeedbacksStartId = 1; |
388 static const GLuint kQueriesStartId = 1; | 390 static const GLuint kQueriesStartId = 1; |
389 static const GLuint kVertexArraysStartId = 1; | 391 static const GLuint kVertexArraysStartId = 1; |
390 static const GLuint kValuebuffersStartId = 1; | 392 static const GLuint kValuebuffersStartId = 1; |
391 | 393 |
392 typedef MockTransferBuffer::ExpectedMemoryInfo ExpectedMemoryInfo; | 394 typedef MockTransferBuffer::ExpectedMemoryInfo ExpectedMemoryInfo; |
393 | 395 |
394 class TestContext { | 396 class TestContext { |
395 public: | 397 public: |
396 TestContext() : commands_(NULL), token_(0) {} | 398 TestContext() : commands_(NULL), token_(0) {} |
397 | 399 |
(...skipping 349 matching lines...) Loading... |
747 const GLint GLES2ImplementationTest::kMaxVertexAttribs; | 749 const GLint GLES2ImplementationTest::kMaxVertexAttribs; |
748 const GLint GLES2ImplementationTest::kMaxVertexTextureImageUnits; | 750 const GLint GLES2ImplementationTest::kMaxVertexTextureImageUnits; |
749 const GLint GLES2ImplementationTest::kMaxVertexUniformVectors; | 751 const GLint GLES2ImplementationTest::kMaxVertexUniformVectors; |
750 const GLint GLES2ImplementationTest::kNumCompressedTextureFormats; | 752 const GLint GLES2ImplementationTest::kNumCompressedTextureFormats; |
751 const GLint GLES2ImplementationTest::kNumShaderBinaryFormats; | 753 const GLint GLES2ImplementationTest::kNumShaderBinaryFormats; |
752 const GLuint GLES2ImplementationTest::kStartId; | 754 const GLuint GLES2ImplementationTest::kStartId; |
753 const GLuint GLES2ImplementationTest::kBuffersStartId; | 755 const GLuint GLES2ImplementationTest::kBuffersStartId; |
754 const GLuint GLES2ImplementationTest::kFramebuffersStartId; | 756 const GLuint GLES2ImplementationTest::kFramebuffersStartId; |
755 const GLuint GLES2ImplementationTest::kProgramsAndShadersStartId; | 757 const GLuint GLES2ImplementationTest::kProgramsAndShadersStartId; |
756 const GLuint GLES2ImplementationTest::kRenderbuffersStartId; | 758 const GLuint GLES2ImplementationTest::kRenderbuffersStartId; |
| 759 const GLuint GLES2ImplementationTest::kSamplersStartId; |
757 const GLuint GLES2ImplementationTest::kTexturesStartId; | 760 const GLuint GLES2ImplementationTest::kTexturesStartId; |
| 761 const GLuint GLES2ImplementationTest::kTransformFeedbacksStartId; |
758 const GLuint GLES2ImplementationTest::kQueriesStartId; | 762 const GLuint GLES2ImplementationTest::kQueriesStartId; |
759 const GLuint GLES2ImplementationTest::kVertexArraysStartId; | 763 const GLuint GLES2ImplementationTest::kVertexArraysStartId; |
760 const GLuint GLES2ImplementationTest::kValuebuffersStartId; | 764 const GLuint GLES2ImplementationTest::kValuebuffersStartId; |
761 #endif | 765 #endif |
762 | 766 |
763 TEST_F(GLES2ImplementationTest, Basic) { | 767 TEST_F(GLES2ImplementationTest, Basic) { |
764 EXPECT_TRUE(gl_->share_group() != NULL); | 768 EXPECT_TRUE(gl_->share_group() != NULL); |
765 } | 769 } |
766 | 770 |
767 TEST_F(GLES2ImplementationTest, GetBucketContents) { | 771 TEST_F(GLES2ImplementationTest, GetBucketContents) { |
(...skipping 2546 matching lines...) Loading... |
3314 TEST_F(GLES2ImplementationManualInitTest, FailInitOnTransferBufferFail) { | 3318 TEST_F(GLES2ImplementationManualInitTest, FailInitOnTransferBufferFail) { |
3315 ContextInitOptions init_options; | 3319 ContextInitOptions init_options; |
3316 init_options.transfer_buffer_initialize_fail = true; | 3320 init_options.transfer_buffer_initialize_fail = true; |
3317 EXPECT_FALSE(Initialize(init_options)); | 3321 EXPECT_FALSE(Initialize(init_options)); |
3318 } | 3322 } |
3319 | 3323 |
3320 #include "gpu/command_buffer/client/gles2_implementation_unittest_autogen.h" | 3324 #include "gpu/command_buffer/client/gles2_implementation_unittest_autogen.h" |
3321 | 3325 |
3322 } // namespace gles2 | 3326 } // namespace gles2 |
3323 } // namespace gpu | 3327 } // namespace gpu |
OLD | NEW |