| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 PPAPI_TESTS_TEST_GRAPHICS_2D_H_ | 5 #ifndef PPAPI_TESTS_TEST_GRAPHICS_2D_H_ |
| 6 #define PPAPI_TESTS_TEST_GRAPHICS_2D_H_ | 6 #define PPAPI_TESTS_TEST_GRAPHICS_2D_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "ppapi/c/pp_stdint.h" | 10 #include "ppapi/c/pp_stdint.h" |
| 11 #include "ppapi/c/ppb_graphics_2d.h" |
| 12 #include "ppapi/c/ppb_image_data.h" |
| 11 #include "ppapi/tests/test_case.h" | 13 #include "ppapi/tests/test_case.h" |
| 12 | 14 |
| 13 struct PPB_Graphics2D; | |
| 14 struct PPB_ImageData; | |
| 15 | |
| 16 namespace pp { | 15 namespace pp { |
| 17 class Graphics2D; | 16 class Graphics2D; |
| 18 class ImageData; | 17 class ImageData; |
| 19 class Point; | 18 class Point; |
| 20 class Rect; | 19 class Rect; |
| 21 } | 20 } |
| 22 | 21 |
| 23 class TestGraphics2D : public TestCase { | 22 class TestGraphics2D : public TestCase { |
| 24 public: | 23 public: |
| 25 explicit TestGraphics2D(TestingInstance* instance) : TestCase(instance) {} | 24 explicit TestGraphics2D(TestingInstance* instance) : TestCase(instance) {} |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 79 std::string TestScroll(); | 78 std::string TestScroll(); |
| 80 std::string TestReplace(); | 79 std::string TestReplace(); |
| 81 std::string TestFlush(); | 80 std::string TestFlush(); |
| 82 | 81 |
| 83 // Used by the tests that access the C API directly. | 82 // Used by the tests that access the C API directly. |
| 84 const PPB_Graphics2D* graphics_2d_interface_; | 83 const PPB_Graphics2D* graphics_2d_interface_; |
| 85 const PPB_ImageData* image_data_interface_; | 84 const PPB_ImageData* image_data_interface_; |
| 86 }; | 85 }; |
| 87 | 86 |
| 88 #endif // PPAPI_TESTS_TEST_GRAPHICS_2D_H_ | 87 #endif // PPAPI_TESTS_TEST_GRAPHICS_2D_H_ |
| OLD | NEW |