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 #include <GLES2/gl2.h> | 5 #include <GLES2/gl2.h> |
6 #include <GLES2/gl2ext.h> | 6 #include <GLES2/gl2ext.h> |
| 7 #include <GLES2/gl2extchromium.h> |
7 | 8 |
8 #include "base/logging.h" | 9 #include "base/logging.h" |
9 #include "gpu/command_buffer/tests/gl_manager.h" | 10 #include "gpu/command_buffer/tests/gl_manager.h" |
10 #include "gpu/command_buffer/tests/gl_test_utils.h" | 11 #include "gpu/command_buffer/tests/gl_test_utils.h" |
11 #include "testing/gmock/include/gmock/gmock.h" | 12 #include "testing/gmock/include/gmock/gmock.h" |
12 #include "testing/gtest/include/gtest/gtest.h" | 13 #include "testing/gtest/include/gtest/gtest.h" |
13 | 14 |
14 namespace gpu { | 15 namespace gpu { |
15 | 16 |
16 class GLLoseContextTest : public testing::Test { | 17 class GLLoseContextTest : public testing::Test { |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
54 // Expect the read will fail. | 55 // Expect the read will fail. |
55 EXPECT_TRUE(GLTestHelper::CheckPixels(0, 0, 1, 1, 0, expected_no_draw)); | 56 EXPECT_TRUE(GLTestHelper::CheckPixels(0, 0, 1, 1, 0, expected_no_draw)); |
56 gl2_.MakeCurrent(); | 57 gl2_.MakeCurrent(); |
57 uint8 expected_draw[] = { 0, 0, 0, 0, }; | 58 uint8 expected_draw[] = { 0, 0, 0, 0, }; |
58 // Expect the read will succeed. | 59 // Expect the read will succeed. |
59 EXPECT_TRUE(GLTestHelper::CheckPixels(0, 0, 1, 1, 0, expected_draw)); | 60 EXPECT_TRUE(GLTestHelper::CheckPixels(0, 0, 1, 1, 0, expected_draw)); |
60 } | 61 } |
61 | 62 |
62 } // namespace gpu | 63 } // namespace gpu |
63 | 64 |
OLD | NEW |