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

Side by Side Diff: chrome/test/webdriver/webdriver_server.cc

Issue 10827362: Fix ChromeDriver flakiness with the C# webdriver bindings. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 4 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
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 #include <signal.h> 5 #include <signal.h>
6 #include <stdlib.h> 6 #include <stdlib.h>
7 7
8 #if defined(OS_WIN) 8 #if defined(OS_WIN)
9 #include <windows.h> 9 #include <windows.h>
10 #endif 10 #endif
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 #include "chrome/test/webdriver/commands/set_timeout_commands.h" 52 #include "chrome/test/webdriver/commands/set_timeout_commands.h"
53 #include "chrome/test/webdriver/commands/source_command.h" 53 #include "chrome/test/webdriver/commands/source_command.h"
54 #include "chrome/test/webdriver/commands/target_locator_commands.h" 54 #include "chrome/test/webdriver/commands/target_locator_commands.h"
55 #include "chrome/test/webdriver/commands/title_command.h" 55 #include "chrome/test/webdriver/commands/title_command.h"
56 #include "chrome/test/webdriver/commands/url_command.h" 56 #include "chrome/test/webdriver/commands/url_command.h"
57 #include "chrome/test/webdriver/commands/webelement_commands.h" 57 #include "chrome/test/webdriver/commands/webelement_commands.h"
58 #include "chrome/test/webdriver/commands/window_commands.h" 58 #include "chrome/test/webdriver/commands/window_commands.h"
59 #include "chrome/test/webdriver/webdriver_dispatch.h" 59 #include "chrome/test/webdriver/webdriver_dispatch.h"
60 #include "chrome/test/webdriver/webdriver_logging.h" 60 #include "chrome/test/webdriver/webdriver_logging.h"
61 #include "chrome/test/webdriver/webdriver_session_manager.h" 61 #include "chrome/test/webdriver/webdriver_session_manager.h"
62 #include "chrome/test/webdriver/webdriver_switches.h"
62 #include "chrome/test/webdriver/webdriver_util.h" 63 #include "chrome/test/webdriver/webdriver_util.h"
63 #include "third_party/mongoose/mongoose.h" 64 #include "third_party/mongoose/mongoose.h"
64 65
65 #if defined(OS_WIN) 66 #if defined(OS_WIN)
66 #include <time.h> 67 #include <time.h>
67 #elif defined(OS_POSIX) 68 #elif defined(OS_POSIX)
68 #include <errno.h> 69 #include <errno.h>
69 #include <sys/time.h> 70 #include <sys/time.h>
70 #include <sys/types.h> 71 #include <sys/types.h>
71 #include <sys/wait.h> 72 #include <sys/wait.h>
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after
252 root = cmd_line->GetSwitchValueASCII("root"); 253 root = cmd_line->GetSwitchValueASCII("root");
253 if (cmd_line->HasSwitch("url-base")) 254 if (cmd_line->HasSwitch("url-base"))
254 url_base = cmd_line->GetSwitchValueASCII("url-base"); 255 url_base = cmd_line->GetSwitchValueASCII("url-base");
255 if (cmd_line->HasSwitch("http-threads")) { 256 if (cmd_line->HasSwitch("http-threads")) {
256 if (!base::StringToInt(cmd_line->GetSwitchValueASCII("http-threads"), 257 if (!base::StringToInt(cmd_line->GetSwitchValueASCII("http-threads"),
257 &http_threads)) { 258 &http_threads)) {
258 std::cerr << "'http-threads' option must be an integer"; 259 std::cerr << "'http-threads' option must be an integer";
259 return 1; 260 return 1;
260 } 261 }
261 } 262 }
262 if (cmd_line->HasSwitch("enable-keep-alive")) 263 if (cmd_line->HasSwitch(kEnableKeepAlive))
263 enable_keep_alive = true; 264 enable_keep_alive = true;
264 265
265 bool logging_success = InitWebDriverLogging(log_path, kAllLogLevel); 266 bool logging_success = InitWebDriverLogging(log_path, kAllLogLevel);
266 std::string chromedriver_info = base::StringPrintf( 267 std::string chromedriver_info = base::StringPrintf(
267 "ChromeDriver %s", chrome::kChromeVersion); 268 "ChromeDriver %s", chrome::kChromeVersion);
268 FilePath chromedriver_exe; 269 FilePath chromedriver_exe;
269 if (PathService::Get(base::FILE_EXE, &chromedriver_exe)) { 270 if (PathService::Get(base::FILE_EXE, &chromedriver_exe)) {
270 chromedriver_info += base::StringPrintf( 271 chromedriver_info += base::StringPrintf(
271 " %" PRFilePath, chromedriver_exe.value().c_str()); 272 " %" PRFilePath, chromedriver_exe.value().c_str());
272 } 273 }
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
322 323
323 return (EXIT_SUCCESS); 324 return (EXIT_SUCCESS);
324 } 325 }
325 326
326 } // namespace webdriver 327 } // namespace webdriver
327 328
328 int main(int argc, char *argv[]) { 329 int main(int argc, char *argv[]) {
329 CommandLine::Init(argc, argv); 330 CommandLine::Init(argc, argv);
330 return webdriver::RunChromeDriver(); 331 return webdriver::RunChromeDriver();
331 } 332 }
OLDNEW
« no previous file with comments | « chrome/test/webdriver/webdriver_dispatch_unittest.cc ('k') | chrome/test/webdriver/webdriver_switches.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698