summaryrefslogtreecommitdiffstats
path: root/chrome/test/tab_switching/tab_switching_test.cc
diff options
context:
space:
mode:
authorchase@chromium.org <chase@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-12-21 08:50:30 +0000
committerchase@chromium.org <chase@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-12-21 08:50:30 +0000
commit7230f2b18d934bed07f8cfcbe7ee8348d14da9e4 (patch)
tree3afb136998f2820cd17a8d64b0b7a029ac00c888 /chrome/test/tab_switching/tab_switching_test.cc
parent045405a100cc6272913ecf978cd16312c2153c4c (diff)
downloadchromium_src-7230f2b18d934bed07f8cfcbe7ee8348d14da9e4.zip
chromium_src-7230f2b18d934bed07f8cfcbe7ee8348d14da9e4.tar.gz
chromium_src-7230f2b18d934bed07f8cfcbe7ee8348d14da9e4.tar.bz2
Add tab switch test launch arguments directly.
BUG=none TEST=tab switching test runs without needing additional arguments Review URL: http://codereview.chromium.org/502091 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@35083 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/test/tab_switching/tab_switching_test.cc')
-rw-r--r--chrome/test/tab_switching/tab_switching_test.cc10
1 files changed, 9 insertions, 1 deletions
diff --git a/chrome/test/tab_switching/tab_switching_test.cc b/chrome/test/tab_switching/tab_switching_test.cc
index a367414..3c6c312 100644
--- a/chrome/test/tab_switching/tab_switching_test.cc
+++ b/chrome/test/tab_switching/tab_switching_test.cc
@@ -27,7 +27,6 @@ namespace {
// time taken for each switch. It then prints out the times on the console,
// with the aim that the page cycler parser can interpret these numbers to
// draw graphs for page cycler Tab Switching Performance.
-// Usage Flags: --enable-logging --dump-histograms-on-exit --log-level=0
class TabSwitchingUITest : public UITest {
public:
TabSwitchingUITest() {
@@ -51,6 +50,9 @@ class TabSwitchingUITest : public UITest {
log_file_name_.value().c_str(), 1);
#endif
+ // Add the necessary arguments to Chrome's launch command for these tests.
+ AddLaunchArguments();
+
// Run the rest of the UITest initialization.
UITest::SetUp();
}
@@ -165,6 +167,12 @@ class TabSwitchingUITest : public UITest {
scoped_refptr<BrowserProxy> browser_proxy_;
private:
+ void AddLaunchArguments() {
+ launch_arguments_.AppendSwitch(switches::kEnableLogging);
+ launch_arguments_.AppendSwitch(switches::kDumpHistogramsOnExit);
+ launch_arguments_.AppendSwitchWithValue(switches::kLoggingLevel, "0");
+ }
+
DISALLOW_COPY_AND_ASSIGN(TabSwitchingUITest);
};