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 #ifndef GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_UNITTEST_BASE_H_ | 5 #ifndef GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_UNITTEST_BASE_H_ |
6 #define GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_UNITTEST_BASE_H_ | 6 #define GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_UNITTEST_BASE_H_ |
7 | 7 |
8 #include "gpu/command_buffer/common/gl_mock.h" | 8 #include "gpu/command_buffer/common/gl_mock.h" |
9 #include "gpu/command_buffer/common/gles2_cmd_format.h" | 9 #include "gpu/command_buffer/common/gles2_cmd_format.h" |
10 #include "gpu/command_buffer/common/gles2_cmd_utils.h" | 10 #include "gpu/command_buffer/common/gles2_cmd_utils.h" |
(...skipping 482 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
493 DCHECK(false); | 493 DCHECK(false); |
494 return 0; | 494 return 0; |
495 } | 495 } |
496 | 496 |
497 private: | 497 private: |
498 scoped_array<int8> data_; | 498 scoped_array<int8> data_; |
499 Buffer valid_buffer_; | 499 Buffer valid_buffer_; |
500 Buffer invalid_buffer_; | 500 Buffer invalid_buffer_; |
501 }; | 501 }; |
502 | 502 |
503 void AddExpectationsForCopyTextureCHROMIUM(); | |
504 void AddExpectationsForVertexAttribManager(); | 503 void AddExpectationsForVertexAttribManager(); |
505 | 504 |
506 scoped_ptr< ::testing::StrictMock<MockCommandBufferEngine> > engine_; | 505 scoped_ptr< ::testing::StrictMock<MockCommandBufferEngine> > engine_; |
507 ContextGroup::Ref group_; | 506 ContextGroup::Ref group_; |
508 }; | 507 }; |
509 | 508 |
510 class GLES2DecoderWithShaderTestBase : public GLES2DecoderTestBase { | 509 class GLES2DecoderWithShaderTestBase : public GLES2DecoderTestBase { |
511 public: | 510 public: |
512 GLES2DecoderWithShaderTestBase() | 511 GLES2DecoderWithShaderTestBase() |
513 : GLES2DecoderTestBase() { | 512 : GLES2DecoderTestBase() { |
514 } | 513 } |
515 | 514 |
516 protected: | 515 protected: |
517 virtual void SetUp() OVERRIDE; | 516 virtual void SetUp() OVERRIDE; |
518 virtual void TearDown() OVERRIDE; | 517 virtual void TearDown() OVERRIDE; |
519 | 518 |
520 }; | 519 }; |
521 | 520 |
522 } // namespace gles2 | 521 } // namespace gles2 |
523 } // namespace gpu | 522 } // namespace gpu |
524 | 523 |
525 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_UNITTEST_BASE_H_ | 524 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_UNITTEST_BASE_H_ |
OLD | NEW |