Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(644)

Side by Side Diff: chrome/test/tab_switching/tab_switching_test.cc

Issue 239006: [chromium-reviews] Updated comment in tab_switching.cc to replect that Tab-switching test in bui... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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_path.h" 6 #include "base/file_path.h"
7 #include "base/file_util.h" 7 #include "base/file_util.h"
8 #include "base/platform_thread.h" 8 #include "base/platform_thread.h"
9 #include "chrome/app/chrome_dll_resource.h" 9 #include "chrome/app/chrome_dll_resource.h"
10 #include "chrome/common/chrome_paths.h" 10 #include "chrome/common/chrome_paths.h"
11 #include "chrome/common/chrome_switches.h" 11 #include "chrome/common/chrome_switches.h"
12 #include "chrome/common/pref_names.h" 12 #include "chrome/common/pref_names.h"
13 #include "chrome/test/automation/tab_proxy.h" 13 #include "chrome/test/automation/tab_proxy.h"
14 #include "chrome/test/automation/browser_proxy.h" 14 #include "chrome/test/automation/browser_proxy.h"
15 #include "chrome/test/ui/ui_test.h" 15 #include "chrome/test/ui/ui_test.h"
16 #include "googleurl/src/gurl.h" 16 #include "googleurl/src/gurl.h"
17 #include "net/base/net_util.h" 17 #include "net/base/net_util.h"
18 18
19 #define NUMBER_OF_ITERATIONS 5 19 #define NUMBER_OF_ITERATIONS 5
20 20
21 namespace { 21 namespace {
22 22
23 // This Automated UI test opens static files in different tabs in a proxy 23 // This Automated UI test opens static files in different tabs in a proxy
24 // browser. After all the tabs have opened, it switches between tabs, and notes 24 // browser. After all the tabs have opened, it switches between tabs, and notes
25 // time taken for each switch. It then prints out the times on the console, 25 // time taken for each switch. It then prints out the times on the console,
26 // with the aim that the page cycler parser can interpret these numbers to 26 // with the aim that the page cycler parser can interpret these numbers to
27 // draw graphs for page cycler Tab Switching Performance. 27 // draw graphs for page cycler Tab Switching Performance.
28 // Usage Flags: -enable-logging -dump-histograms-on-exit 28 // Usage Flags: -enable-logging -dump-histograms-on-exit -log-level=0
29 class TabSwitchingUITest : public UITest { 29 class TabSwitchingUITest : public UITest {
30 public: 30 public:
31 TabSwitchingUITest() { 31 TabSwitchingUITest() {
32 PathService::Get(base::DIR_SOURCE_ROOT, &path_prefix_); 32 PathService::Get(base::DIR_SOURCE_ROOT, &path_prefix_);
33 path_prefix_ = path_prefix_.AppendASCII("data"); 33 path_prefix_ = path_prefix_.AppendASCII("data");
34 path_prefix_ = path_prefix_.AppendASCII("tab_switching"); 34 path_prefix_ = path_prefix_.AppendASCII("tab_switching");
35 35
36 show_window_ = true; 36 show_window_ = true;
37 } 37 }
38 38
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
137 137
138 private: 138 private:
139 DISALLOW_EVIL_CONSTRUCTORS(TabSwitchingUITest); 139 DISALLOW_EVIL_CONSTRUCTORS(TabSwitchingUITest);
140 }; 140 };
141 141
142 TEST_F(TabSwitchingUITest, GenerateTabSwitchStats) { 142 TEST_F(TabSwitchingUITest, GenerateTabSwitchStats) {
143 RunTabSwitchingUITest(); 143 RunTabSwitchingUITest();
144 } 144 }
145 145
146 } // namespace 146 } // namespace
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698