Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(589)

Side by Side Diff: ppapi/tests/test_graphics_2d.h

Issue 8477015: Make it possible to enable/disable specific ppapi tests. Migrate PostMessage tests. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix license headers. Created 9 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « ppapi/tests/test_fullscreen.cc ('k') | ppapi/tests/test_graphics_2d.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 PAPPI_TESTS_TEST_GRAPHICS_2D_H_ 5 #ifndef PAPPI_TESTS_TEST_GRAPHICS_2D_H_
6 #define PAPPI_TESTS_TEST_GRAPHICS_2D_H_ 6 #define PAPPI_TESTS_TEST_GRAPHICS_2D_H_
7 7
8 #include "ppapi/c/pp_stdint.h" 8 #include "ppapi/c/pp_stdint.h"
9 #include "ppapi/tests/test_case.h" 9 #include "ppapi/tests/test_case.h"
10 10
11 struct PPB_Graphics2D; 11 struct PPB_Graphics2D;
12 struct PPB_ImageData; 12 struct PPB_ImageData;
13 struct PPB_Testing_Dev; 13 struct PPB_Testing_Dev;
14 14
15 namespace pp { 15 namespace pp {
16 class Graphics2D; 16 class Graphics2D;
17 class ImageData; 17 class ImageData;
18 class Point; 18 class Point;
19 class Rect; 19 class Rect;
20 } 20 }
21 21
22 class TestGraphics2D : public TestCase { 22 class TestGraphics2D : public TestCase {
23 public: 23 public:
24 TestGraphics2D(TestingInstance* instance) : TestCase(instance) {} 24 TestGraphics2D(TestingInstance* instance) : TestCase(instance) {}
25 25
26 // TestCase implementation. 26 // TestCase implementation.
27 virtual bool Init(); 27 virtual bool Init();
28 virtual void RunTest(); 28 virtual void RunTests(const std::string& filter);
29 29
30 void QuitMessageLoop(); 30 void QuitMessageLoop();
31 31
32 private: 32 private:
33 bool ReadImageData(const pp::Graphics2D& dc, 33 bool ReadImageData(const pp::Graphics2D& dc,
34 pp::ImageData* image, 34 pp::ImageData* image,
35 const pp::Point& top_left) const; 35 const pp::Point& top_left) const;
36 36
37 void FillRectInImage(pp::ImageData* image, 37 void FillRectInImage(pp::ImageData* image,
38 const pp::Rect& rect, 38 const pp::Rect& rect,
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 std::string TestScroll(); 78 std::string TestScroll();
79 std::string TestReplace(); 79 std::string TestReplace();
80 std::string TestFlush(); 80 std::string TestFlush();
81 81
82 // Used by the tests that access the C API directly. 82 // Used by the tests that access the C API directly.
83 const PPB_Graphics2D* graphics_2d_interface_; 83 const PPB_Graphics2D* graphics_2d_interface_;
84 const PPB_ImageData* image_data_interface_; 84 const PPB_ImageData* image_data_interface_;
85 }; 85 };
86 86
87 #endif // PAPPI_TESTS_TEST_GRAPHICS_2D_H_ 87 #endif // PAPPI_TESTS_TEST_GRAPHICS_2D_H_
OLDNEW
« no previous file with comments | « ppapi/tests/test_fullscreen.cc ('k') | ppapi/tests/test_graphics_2d.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698