| 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 |
| (...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 141 base::Closure run_loop_quitter_; | 141 base::Closure run_loop_quitter_; |
| 142 | 142 |
| 143 // Is true when we're in test mode: | 143 // Is true when we're in test mode: |
| 144 // comparing golden screenshots and current ones. | 144 // comparing golden screenshots and current ones. |
| 145 bool test_mode_; | 145 bool test_mode_; |
| 146 | 146 |
| 147 // Is true when switches specify that PerceptualDiff should | 147 // Is true when switches specify that PerceptualDiff should |
| 148 // be used to compare images. | 148 // be used to compare images. |
| 149 bool pdiff_enabled_; | 149 bool pdiff_enabled_; |
| 150 | 150 |
| 151 // Is true when switches specify that artifacts should be saved somewhere. |
| 152 bool generate_artifacts_; |
| 153 |
| 151 // Vector which holds areas which the comparison ignores because | 154 // Vector which holds areas which the comparison ignores because |
| 152 // them being different is not a bug (e.g. time on the clock). | 155 // them being different is not a bug (e.g. time on the clock). |
| 153 std::vector<SkIRect> ignored_areas_; | 156 std::vector<SkIRect> ignored_areas_; |
| 154 | 157 |
| 155 base::WeakPtrFactory<ScreenshotTester> weak_factory_; | 158 base::WeakPtrFactory<ScreenshotTester> weak_factory_; |
| 156 | 159 |
| 157 DISALLOW_COPY_AND_ASSIGN(ScreenshotTester); | 160 DISALLOW_COPY_AND_ASSIGN(ScreenshotTester); |
| 158 }; | 161 }; |
| 159 | 162 |
| 160 } // namespace chromeos | 163 } // namespace chromeos |
| 161 | 164 |
| 162 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SCREENSHOT_TESTING_SCREENSHOT_TESTER_H_ | 165 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SCREENSHOT_TESTING_SCREENSHOT_TESTER_H_ |
| OLD | NEW |