| 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 #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 Loading... |
| 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 Loading... |
| 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_ |
| OLD | NEW |