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

Side by Side Diff: chrome/test/page_cycler/page_cycler_test.cc

Issue 7464038: Clean up page_cycler_test.cc: (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 5 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) 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 "base/basictypes.h" 5 #include "base/basictypes.h"
6 #include "base/command_line.h" 6 #include "base/command_line.h"
7 #include "base/file_path.h" 7 #include "base/file_path.h"
8 #include "base/file_util.h" 8 #include "base/file_util.h"
9 #include "base/path_service.h" 9 #include "base/path_service.h"
10 #include "base/process_util.h" 10 #include "base/process_util.h"
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
130 130
131 if (parsed_command_line.HasSwitch(switches::kPageCyclerIterations)) { 131 if (parsed_command_line.HasSwitch(switches::kPageCyclerIterations)) {
132 std::string str = parsed_command_line.GetSwitchValueASCII( 132 std::string str = parsed_command_line.GetSwitchValueASCII(
133 switches::kPageCyclerIterations); 133 switches::kPageCyclerIterations);
134 base::StringToInt(str, &num_test_iterations_); 134 base::StringToInt(str, &num_test_iterations_);
135 } 135 }
136 136
137 // Expose garbage collection for the page cycler tests. 137 // Expose garbage collection for the page cycler tests.
138 launch_arguments_.AppendSwitchASCII(switches::kJavaScriptFlags, 138 launch_arguments_.AppendSwitchASCII(switches::kJavaScriptFlags,
139 "--expose_gc"); 139 "--expose_gc");
140 launch_arguments_.AppendSwitch(switches::kNoDefaultBrowserCheck);
141 }
142
143 void SetUp() {
144 UIPerfTest::SetUp();
145 } 140 }
146 141
147 virtual FilePath GetDataPath(const char* name) { 142 virtual FilePath GetDataPath(const char* name) {
148 // Make sure the test data is checked out 143 // Make sure the test data is checked out
149 FilePath test_path; 144 FilePath test_path;
150 PathService::Get(base::DIR_SOURCE_ROOT, &test_path); 145 PathService::Get(base::DIR_SOURCE_ROOT, &test_path);
151 test_path = test_path.Append(FILE_PATH_LITERAL("data")); 146 test_path = test_path.Append(FILE_PATH_LITERAL("data"));
152 test_path = test_path.Append(FILE_PATH_LITERAL("page_cycler")); 147 test_path = test_path.Append(FILE_PATH_LITERAL("page_cycler"));
153 test_path = test_path.AppendASCII(name); 148 test_path = test_path.AppendASCII(name);
154 return test_path; 149 return test_path;
(...skipping 377 matching lines...) Expand 10 before | Expand all | Expand 10 after
532 PAGE_CYCLER_DATABASE_TESTS("delete-transactions", 527 PAGE_CYCLER_DATABASE_TESTS("delete-transactions",
533 DeleteTransactions); 528 DeleteTransactions);
534 PAGE_CYCLER_DATABASE_TESTS("pseudo-random-transactions", 529 PAGE_CYCLER_DATABASE_TESTS("pseudo-random-transactions",
535 PseudoRandomTransactions); 530 PseudoRandomTransactions);
536 #endif 531 #endif
537 532
538 // Indexed DB tests. 533 // Indexed DB tests.
539 PAGE_CYCLER_IDB_TESTS("basic_insert", BasicInsert); 534 PAGE_CYCLER_IDB_TESTS("basic_insert", BasicInsert);
540 535
541 } // namespace 536 } // 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