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 |
11 #include <GLES2/gl2ext.h> | 11 #include <GLES2/gl2ext.h> |
12 #include <GLES2/gl2extchromium.h> | 12 #include <GLES2/gl2extchromium.h> |
| 13 #include <GLES3/gl3.h> |
13 #include "base/compiler_specific.h" | 14 #include "base/compiler_specific.h" |
14 #include "gpu/command_buffer/client/client_test_helper.h" | 15 #include "gpu/command_buffer/client/client_test_helper.h" |
15 #include "gpu/command_buffer/client/program_info_manager.h" | 16 #include "gpu/command_buffer/client/program_info_manager.h" |
16 #include "gpu/command_buffer/client/transfer_buffer.h" | 17 #include "gpu/command_buffer/client/transfer_buffer.h" |
17 #include "gpu/command_buffer/common/command_buffer.h" | 18 #include "gpu/command_buffer/common/command_buffer.h" |
18 #include "testing/gtest/include/gtest/gtest.h" | 19 #include "testing/gtest/include/gtest/gtest.h" |
19 #include "testing/gmock/include/gmock/gmock.h" | 20 #include "testing/gmock/include/gmock/gmock.h" |
20 | 21 |
21 #if !defined(GLES2_SUPPORT_CLIENT_SIDE_ARRAYS) | 22 #if !defined(GLES2_SUPPORT_CLIENT_SIDE_ARRAYS) |
22 #define GLES2_SUPPORT_CLIENT_SIDE_ARRAYS | 23 #define GLES2_SUPPORT_CLIENT_SIDE_ARRAYS |
(...skipping 3290 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3313 TEST_F(GLES2ImplementationManualInitTest, FailInitOnTransferBufferFail) { | 3314 TEST_F(GLES2ImplementationManualInitTest, FailInitOnTransferBufferFail) { |
3314 ContextInitOptions init_options; | 3315 ContextInitOptions init_options; |
3315 init_options.transfer_buffer_initialize_fail = true; | 3316 init_options.transfer_buffer_initialize_fail = true; |
3316 EXPECT_FALSE(Initialize(init_options)); | 3317 EXPECT_FALSE(Initialize(init_options)); |
3317 } | 3318 } |
3318 | 3319 |
3319 #include "gpu/command_buffer/client/gles2_implementation_unittest_autogen.h" | 3320 #include "gpu/command_buffer/client/gles2_implementation_unittest_autogen.h" |
3320 | 3321 |
3321 } // namespace gles2 | 3322 } // namespace gles2 |
3322 } // namespace gpu | 3323 } // namespace gpu |
OLD | NEW |