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 #include <string> | 5 #include <string> |
6 | 6 |
7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
9 #include "base/file_path.h" | 9 #include "base/file_path.h" |
10 #include "base/file_util.h" | 10 #include "base/file_util.h" |
11 #include "base/i18n/rtl.h" | 11 #include "base/i18n/rtl.h" |
12 #include "base/memory/scoped_ptr.h" | 12 #include "base/memory/scoped_ptr.h" |
13 #include "base/memory/scoped_temp_dir.h" | 13 #include "base/scoped_temp_dir.h" |
14 #include "base/string_util.h" | 14 #include "base/string_util.h" |
15 #include "base/stringprintf.h" | 15 #include "base/stringprintf.h" |
16 #include "base/sys_info.h" | 16 #include "base/sys_info.h" |
17 #include "base/test/test_timeouts.h" | 17 #include "base/test/test_timeouts.h" |
18 #include "base/utf_string_conversions.h" | 18 #include "base/utf_string_conversions.h" |
19 #include "build/build_config.h" | 19 #include "build/build_config.h" |
20 #include "chrome/app/chrome_command_ids.h" | 20 #include "chrome/app/chrome_command_ids.h" |
21 #include "chrome/browser/net/url_request_slow_http_job.h" | 21 #include "chrome/browser/net/url_request_slow_http_job.h" |
22 #include "chrome/browser/ui/view_ids.h" | 22 #include "chrome/browser/ui/view_ids.h" |
23 #include "chrome/common/automation_messages.h" | 23 #include "chrome/common/automation_messages.h" |
24 #include "chrome/common/chrome_constants.h" | 24 #include "chrome/common/chrome_constants.h" |
25 #include "chrome/common/chrome_switches.h" | 25 #include "chrome/common/chrome_switches.h" |
26 #include "chrome/common/url_constants.h" | 26 #include "chrome/common/url_constants.h" |
27 #include "chrome/test/automation/autocomplete_edit_proxy.h" | 27 #include "chrome/test/automation/autocomplete_edit_proxy.h" |
28 #include "chrome/test/automation/automation_proxy_uitest.h" | 28 #include "chrome/test/automation/automation_proxy_uitest.h" |
29 #include "chrome/test/automation/browser_proxy.h" | 29 #include "chrome/test/automation/browser_proxy.h" |
30 #include "chrome/test/automation/proxy_launcher.h" | 30 #include "chrome/test/automation/proxy_launcher.h" |
31 #include "chrome/test/automation/tab_proxy.h" | 31 #include "chrome/test/automation/tab_proxy.h" |
32 #include "chrome/test/automation/window_proxy.h" | 32 #include "chrome/test/automation/window_proxy.h" |
| 33 #include "chrome/test/ui/ui_test.h" |
33 #include "chrome/test/ui_test_utils.h" | 34 #include "chrome/test/ui_test_utils.h" |
34 #include "chrome/test/ui/ui_test.h" | |
35 #include "content/common/json_value_serializer.h" | 35 #include "content/common/json_value_serializer.h" |
36 #include "net/base/host_port_pair.h" | 36 #include "net/base/host_port_pair.h" |
37 #include "net/base/net_util.h" | 37 #include "net/base/net_util.h" |
38 #include "net/test/test_server.h" | 38 #include "net/test/test_server.h" |
39 #define GMOCK_MUTANT_INCLUDE_LATE_OBJECT_BINDING | 39 #define GMOCK_MUTANT_INCLUDE_LATE_OBJECT_BINDING |
40 #include "testing/gmock_mutant.h" | 40 #include "testing/gmock_mutant.h" |
41 #include "third_party/skia/include/core/SkBitmap.h" | 41 #include "third_party/skia/include/core/SkBitmap.h" |
42 #include "ui/base/message_box_flags.h" | 42 #include "ui/base/message_box_flags.h" |
43 #include "ui/base/ui_base_switches.h" | 43 #include "ui/base/ui_base_switches.h" |
44 #include "ui/gfx/codec/png_codec.h" | 44 #include "ui/gfx/codec/png_codec.h" |
(...skipping 1678 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1723 int diff_pixels_count = 0; | 1723 int diff_pixels_count = 0; |
1724 for (int x = 0; x < img_size.width(); ++x) { | 1724 for (int x = 0; x < img_size.width(); ++x) { |
1725 for (int y = 0; y < img_size.height(); ++y) { | 1725 for (int y = 0; y < img_size.height(); ++y) { |
1726 if (*snapshot_bmp.getAddr32(x, y) != *reference_bmp.getAddr32(x, y)) { | 1726 if (*snapshot_bmp.getAddr32(x, y) != *reference_bmp.getAddr32(x, y)) { |
1727 ++diff_pixels_count; | 1727 ++diff_pixels_count; |
1728 } | 1728 } |
1729 } | 1729 } |
1730 } | 1730 } |
1731 ASSERT_EQ(diff_pixels_count, 0); | 1731 ASSERT_EQ(diff_pixels_count, 0); |
1732 } | 1732 } |
OLD | NEW |