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

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

Issue 7522024: Refactor chromedriver's script execution to reduce amount of custom Value parsing. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: ... Created 9 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) 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 <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 28 matching lines...) Expand all
39 #include "chrome/test/webdriver/commands/screenshot_command.h" 39 #include "chrome/test/webdriver/commands/screenshot_command.h"
40 #include "chrome/test/webdriver/commands/session_with_id.h" 40 #include "chrome/test/webdriver/commands/session_with_id.h"
41 #include "chrome/test/webdriver/commands/set_timeout_commands.h" 41 #include "chrome/test/webdriver/commands/set_timeout_commands.h"
42 #include "chrome/test/webdriver/commands/source_command.h" 42 #include "chrome/test/webdriver/commands/source_command.h"
43 #include "chrome/test/webdriver/commands/target_locator_commands.h" 43 #include "chrome/test/webdriver/commands/target_locator_commands.h"
44 #include "chrome/test/webdriver/commands/title_command.h" 44 #include "chrome/test/webdriver/commands/title_command.h"
45 #include "chrome/test/webdriver/commands/url_command.h" 45 #include "chrome/test/webdriver/commands/url_command.h"
46 #include "chrome/test/webdriver/commands/webelement_commands.h" 46 #include "chrome/test/webdriver/commands/webelement_commands.h"
47 #include "chrome/test/webdriver/dispatch.h" 47 #include "chrome/test/webdriver/dispatch.h"
48 #include "chrome/test/webdriver/session_manager.h" 48 #include "chrome/test/webdriver/session_manager.h"
49 #include "chrome/test/webdriver/utility_functions.h"
50 #include "chrome/test/webdriver/webdriver_logging.h" 49 #include "chrome/test/webdriver/webdriver_logging.h"
50 #include "chrome/test/webdriver/webdriver_util.h"
51 #include "third_party/mongoose/mongoose.h" 51 #include "third_party/mongoose/mongoose.h"
52 52
53 #if defined(OS_WIN) 53 #if defined(OS_WIN)
54 #include <time.h> 54 #include <time.h>
55 #elif defined(OS_POSIX) 55 #elif defined(OS_POSIX)
56 #include <errno.h> 56 #include <errno.h>
57 #include <sys/time.h> 57 #include <sys/time.h>
58 #include <sys/types.h> 58 #include <sys/types.h>
59 #include <sys/wait.h> 59 #include <sys/wait.h>
60 #endif 60 #endif
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after
235 235
236 // Run until we receive command to shutdown. 236 // Run until we receive command to shutdown.
237 shutdown_event.Wait(); 237 shutdown_event.Wait();
238 238
239 // We should not reach here since the service should never quit. 239 // We should not reach here since the service should never quit.
240 // TODO(jmikhail): register a listener for SIGTERM and break the 240 // TODO(jmikhail): register a listener for SIGTERM and break the
241 // message loop gracefully. 241 // message loop gracefully.
242 mg_stop(ctx); 242 mg_stop(ctx);
243 return (EXIT_SUCCESS); 243 return (EXIT_SUCCESS);
244 } 244 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698