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

Side by Side Diff: webkit/tools/test_shell/test_shell.h

Issue 13145003: Rewrite std::string("") to std::string(), Linux edition. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Ugh Created 7 years, 8 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 | « webkit/quota/quota_manager_unittest.cc ('k') | 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) 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 #ifndef WEBKIT_TOOLS_TEST_SHELL_TEST_SHELL_H_ 5 #ifndef WEBKIT_TOOLS_TEST_SHELL_TEST_SHELL_H_
6 #define WEBKIT_TOOLS_TEST_SHELL_TEST_SHELL_H_ 6 #define WEBKIT_TOOLS_TEST_SHELL_TEST_SHELL_H_
7 7
8 8
9 #include <list> 9 #include <list>
10 #include <map> 10 #include <map>
(...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after
236 // Set the number of times to load each URL. 236 // Set the number of times to load each URL.
237 static void SetMultipleLoad(int load_count) { 237 static void SetMultipleLoad(int load_count) {
238 load_count_ = load_count; 238 load_count_ = load_count;
239 } 239 }
240 240
241 // Get the number of times to load each URL. 241 // Get the number of times to load each URL.
242 static int GetLoadCount() { return load_count_; } 242 static int GetLoadCount() { return load_count_; }
243 243
244 // Get the JavaScript flags for a specific load 244 // Get the JavaScript flags for a specific load
245 static std::string GetJSFlagsForLoad(size_t load) { 245 static std::string GetJSFlagsForLoad(size_t load) {
246 if (load >= js_flags_.size()) return ""; 246 if (load >= js_flags_.size())
247 return std::string();
247 return js_flags_[load]; 248 return js_flags_[load];
248 } 249 }
249 250
250 #if defined(OS_WIN) 251 #if defined(OS_WIN)
251 // Access to the finished event. Used by the static WatchDog 252 // Access to the finished event. Used by the static WatchDog
252 // thread. 253 // thread.
253 HANDLE finished_event() { return finished_event_; } 254 HANDLE finished_event() { return finished_event_; }
254 #endif 255 #endif
255 256
256 // Have the shell print the StatsTable to stdout on teardown. 257 // Have the shell print the StatsTable to stdout on teardown.
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after
399 #if defined(OS_WIN) 400 #if defined(OS_WIN)
400 // Used by the watchdog to know when it's finished. 401 // Used by the watchdog to know when it's finished.
401 HANDLE finished_event_; 402 HANDLE finished_event_;
402 #endif 403 #endif
403 404
404 // Dump the stats table counters on exit. 405 // Dump the stats table counters on exit.
405 bool dump_stats_table_on_exit_; 406 bool dump_stats_table_on_exit_;
406 }; 407 };
407 408
408 #endif // WEBKIT_TOOLS_TEST_SHELL_TEST_SHELL_H_ 409 #endif // WEBKIT_TOOLS_TEST_SHELL_TEST_SHELL_H_
OLDNEW
« no previous file with comments | « webkit/quota/quota_manager_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698