OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 // This file defines tests that implementations of GLImage should pass in order | 5 // This file defines tests that implementations of GLImage should pass in order |
6 // to be conformant. | 6 // to be conformant. |
7 | 7 |
8 #ifndef UI_GL_TEST_GL_IMAGE_TEST_TEMPLATE_H_ | 8 #ifndef UI_GL_TEST_GL_IMAGE_TEST_TEMPLATE_H_ |
9 #define UI_GL_TEST_GL_IMAGE_TEST_TEMPLATE_H_ | 9 #define UI_GL_TEST_GL_IMAGE_TEST_TEMPLATE_H_ |
10 | 10 |
11 #include "base/basictypes.h" | 11 #include <stdint.h> |
| 12 |
12 #include "base/memory/scoped_ptr.h" | 13 #include "base/memory/scoped_ptr.h" |
13 #include "base/strings/stringize_macros.h" | 14 #include "base/strings/stringize_macros.h" |
14 #include "base/strings/stringprintf.h" | 15 #include "base/strings/stringprintf.h" |
15 #include "testing/gtest/include/gtest/gtest.h" | 16 #include "testing/gtest/include/gtest/gtest.h" |
16 #include "ui/gfx/buffer_format_util.h" | 17 #include "ui/gfx/buffer_format_util.h" |
17 #include "ui/gfx/buffer_types.h" | 18 #include "ui/gfx/buffer_types.h" |
18 #include "ui/gl/gl_bindings.h" | 19 #include "ui/gl/gl_bindings.h" |
19 #include "ui/gl/gl_context.h" | 20 #include "ui/gl/gl_context.h" |
20 #include "ui/gl/gl_helper.h" | 21 #include "ui/gl/gl_helper.h" |
21 #include "ui/gl/gl_image.h" | 22 #include "ui/gl/gl_image.h" |
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
181 image->Destroy(true); | 182 image->Destroy(true); |
182 } | 183 } |
183 | 184 |
184 // The GLImageCopyTest test case verifies that the GLImage implementation | 185 // The GLImageCopyTest test case verifies that the GLImage implementation |
185 // handles CopyTexImage correctly. | 186 // handles CopyTexImage correctly. |
186 REGISTER_TYPED_TEST_CASE_P(GLImageCopyTest, CopyTexImage); | 187 REGISTER_TYPED_TEST_CASE_P(GLImageCopyTest, CopyTexImage); |
187 | 188 |
188 } // namespace gl | 189 } // namespace gl |
189 | 190 |
190 #endif // UI_GL_TEST_GL_IMAGE_TEST_TEMPLATE_H_ | 191 #endif // UI_GL_TEST_GL_IMAGE_TEST_TEMPLATE_H_ |
OLD | NEW |