OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 #include "base/command_line.h" | 5 #include "base/command_line.h" |
6 #include "base/file_util.h" | 6 #include "base/file_util.h" |
7 #include "base/files/file_enumerator.h" | 7 #include "base/files/file_enumerator.h" |
8 #include "base/files/file_path.h" | 8 #include "base/files/file_path.h" |
9 #include "base/path_service.h" | 9 #include "base/path_service.h" |
10 #include "base/string_util.h" | |
11 #include "base/stringprintf.h" | |
12 #include "base/strings/string_number_conversions.h" | 10 #include "base/strings/string_number_conversions.h" |
| 11 #include "base/strings/string_util.h" |
| 12 #include "base/strings/stringprintf.h" |
13 #include "chrome/browser/ui/browser.h" | 13 #include "chrome/browser/ui/browser.h" |
14 #include "chrome/browser/ui/browser_window.h" | 14 #include "chrome/browser/ui/browser_window.h" |
15 #include "chrome/browser/ui/tabs/tab_strip_model.h" | 15 #include "chrome/browser/ui/tabs/tab_strip_model.h" |
16 #include "chrome/browser/ui/window_snapshot/window_snapshot.h" | 16 #include "chrome/browser/ui/window_snapshot/window_snapshot.h" |
17 #include "chrome/common/chrome_switches.h" | 17 #include "chrome/common/chrome_switches.h" |
18 #include "chrome/common/chrome_version_info.h" | 18 #include "chrome/common/chrome_version_info.h" |
19 #include "chrome/test/base/in_process_browser_test.h" | 19 #include "chrome/test/base/in_process_browser_test.h" |
20 #include "chrome/test/base/test_launcher_utils.h" | 20 #include "chrome/test/base/test_launcher_utils.h" |
21 #include "chrome/test/base/tracing.h" | 21 #include "chrome/test/base/tracing.h" |
22 #include "chrome/test/base/ui_test_utils.h" | 22 #include "chrome/test/base/ui_test_utils.h" |
(...skipping 518 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
541 {160, 100, 0, 0, 0} | 541 {160, 100, 0, 0, 0} |
542 }; | 542 }; |
543 const size_t ref_pixel_count = sizeof(ref_pixels) / sizeof(ReferencePixel); | 543 const size_t ref_pixel_count = sizeof(ref_pixels) / sizeof(ReferencePixel); |
544 | 544 |
545 gfx::Size container_size(400, 300); | 545 gfx::Size container_size(400, 300); |
546 base::FilePath url = | 546 base::FilePath url = |
547 test_data_dir().AppendASCII("pixel_canvas2d.html"); | 547 test_data_dir().AppendASCII("pixel_canvas2d.html"); |
548 RunPixelTest(container_size, url, ref_img_revision_update, | 548 RunPixelTest(container_size, url, ref_img_revision_update, |
549 ref_pixels, ref_pixel_count); | 549 ref_pixels, ref_pixel_count); |
550 } | 550 } |
OLD | NEW |