OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 CHROME_BROWSER_CHROMEOS_LOGIN_SCREENSHOT_TESTING_SCREENSHOT_TESTER_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_SCREENSHOT_TESTING_SCREENSHOT_TESTER_H_ |
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_SCREENSHOT_TESTING_SCREENSHOT_TESTER_H_ | 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_SCREENSHOT_TESTING_SCREENSHOT_TESTER_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
11 #include "base/files/file_path.h" | 11 #include "base/files/file_path.h" |
| 12 #include "base/macros.h" |
12 #include "base/memory/ref_counted_memory.h" | 13 #include "base/memory/ref_counted_memory.h" |
13 #include "base/memory/weak_ptr.h" | 14 #include "base/memory/weak_ptr.h" |
14 #include "base/run_loop.h" | 15 #include "base/run_loop.h" |
15 #include "third_party/skia/include/core/SkBitmap.h" | 16 #include "third_party/skia/include/core/SkBitmap.h" |
16 | 17 |
17 namespace chromeos { | 18 namespace chromeos { |
18 | 19 |
19 // A class that allows taking, saving and comparing screnshots while | 20 // A class that allows taking, saving and comparing screnshots while |
20 // running tests. | 21 // running tests. |
21 class ScreenshotTester { | 22 class ScreenshotTester { |
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
156 std::vector<SkIRect> ignored_areas_; | 157 std::vector<SkIRect> ignored_areas_; |
157 | 158 |
158 base::WeakPtrFactory<ScreenshotTester> weak_factory_; | 159 base::WeakPtrFactory<ScreenshotTester> weak_factory_; |
159 | 160 |
160 DISALLOW_COPY_AND_ASSIGN(ScreenshotTester); | 161 DISALLOW_COPY_AND_ASSIGN(ScreenshotTester); |
161 }; | 162 }; |
162 | 163 |
163 } // namespace chromeos | 164 } // namespace chromeos |
164 | 165 |
165 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SCREENSHOT_TESTING_SCREENSHOT_TESTER_H_ | 166 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SCREENSHOT_TESTING_SCREENSHOT_TESTER_H_ |
OLD | NEW |