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/environment.h" | 6 #include "base/environment.h" |
7 #include "base/file_util.h" | 7 #include "base/file_util.h" |
8 #include "base/files/file_path.h" | 8 #include "base/files/file_path.h" |
9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
10 #include "base/path_service.h" | 10 #include "base/path_service.h" |
11 #include "base/strings/stringprintf.h" | 11 #include "base/strings/stringprintf.h" |
12 #include "base/strings/utf_string_conversions.h" | 12 #include "base/strings/utf_string_conversions.h" |
13 #include "base/threading/platform_thread.h" | 13 #include "base/threading/platform_thread.h" |
14 #include "base/time/time.h" | 14 #include "base/time/time.h" |
15 #include "chrome/app/chrome_command_ids.h" | 15 #include "chrome/app/chrome_command_ids.h" |
16 #include "chrome/common/chrome_paths.h" | 16 #include "chrome/common/chrome_paths.h" |
17 #include "chrome/common/chrome_switches.h" | 17 #include "chrome/common/chrome_switches.h" |
18 #include "chrome/common/env_vars.h" | 18 #include "chrome/common/env_vars.h" |
19 #include "chrome/test/automation/automation_proxy.h" | 19 #include "chrome/test/automation/automation_proxy.h" |
20 #include "chrome/test/automation/browser_proxy.h" | 20 #include "chrome/test/automation/browser_proxy.h" |
21 #include "chrome/test/automation/tab_proxy.h" | 21 #include "chrome/test/automation/tab_proxy.h" |
22 #include "chrome/test/perf/perf_test.h" | 22 #include "chrome/test/perf/perf_test.h" |
23 #include "chrome/test/ui/ui_perf_test.h" | 23 #include "chrome/test/ui/ui_perf_test.h" |
24 #include "net/base/net_util.h" | 24 #include "net/base/net_util.h" |
| 25 #include "testing/perf/perf_test.h" |
25 #include "url/gurl.h" | 26 #include "url/gurl.h" |
26 | 27 |
27 using base::TimeDelta; | 28 using base::TimeDelta; |
28 | 29 |
29 namespace { | 30 namespace { |
30 | 31 |
31 // This Automated UI test opens static files in different tabs in a proxy | 32 // This Automated UI test opens static files in different tabs in a proxy |
32 // browser. After all the tabs have opened, it switches between tabs, and notes | 33 // browser. After all the tabs have opened, it switches between tabs, and notes |
33 // time taken for each switch. It then prints out the times on the console, | 34 // time taken for each switch. It then prints out the times on the console, |
34 // with the aim that the page cycler parser can interpret these numbers to | 35 // with the aim that the page cycler parser can interpret these numbers to |
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
193 RunTabSwitchingUITest("t", true); | 194 RunTabSwitchingUITest("t", true); |
194 } | 195 } |
195 | 196 |
196 // Started failing with a webkit roll in r49936. See http://crbug.com/46751 | 197 // Started failing with a webkit roll in r49936. See http://crbug.com/46751 |
197 TEST_F(TabSwitchingUITest, DISABLED_TabSwitchRef) { | 198 TEST_F(TabSwitchingUITest, DISABLED_TabSwitchRef) { |
198 UseReferenceBuild(); | 199 UseReferenceBuild(); |
199 RunTabSwitchingUITest("t_ref", true); | 200 RunTabSwitchingUITest("t_ref", true); |
200 } | 201 } |
201 | 202 |
202 } // namespace | 203 } // namespace |
OLD | NEW |