OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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 <stddef.h> | 5 #include <stddef.h> |
6 #include <stdint.h> | 6 #include <stdint.h> |
7 #include <stdio.h> | 7 #include <stdio.h> |
8 | 8 |
9 #include <locale> | 9 #include <locale> |
10 #include <memory> | 10 #include <memory> |
11 #include <string> | 11 #include <string> |
12 #include <utility> | 12 #include <utility> |
13 #include <vector> | 13 #include <vector> |
14 | 14 |
15 #include "base/at_exit.h" | 15 #include "base/at_exit.h" |
16 #include "base/bind.h" | 16 #include "base/bind.h" |
17 #include "base/callback.h" | 17 #include "base/callback.h" |
18 #include "base/command_line.h" | 18 #include "base/command_line.h" |
19 #include "base/files/file_path.h" | 19 #include "base/files/file_path.h" |
20 #include "base/lazy_instance.h" | 20 #include "base/lazy_instance.h" |
21 #include "base/logging.h" | 21 #include "base/logging.h" |
22 #include "base/macros.h" | 22 #include "base/macros.h" |
23 #include "base/message_loop/message_loop.h" | 23 #include "base/message_loop/message_loop.h" |
24 #include "base/run_loop.h" | 24 #include "base/run_loop.h" |
25 #include "base/strings/string_number_conversions.h" | 25 #include "base/strings/string_number_conversions.h" |
26 #include "base/strings/string_split.h" | 26 #include "base/strings/string_split.h" |
27 #include "base/strings/string_util.h" | 27 #include "base/strings/string_util.h" |
28 #include "base/strings/stringprintf.h" | 28 #include "base/strings/stringprintf.h" |
29 #include "base/synchronization/waitable_event.h" | 29 #include "base/synchronization/waitable_event.h" |
30 #include "base/thread_task_runner_handle.h" | |
31 #include "base/threading/thread.h" | 30 #include "base/threading/thread.h" |
32 #include "base/threading/thread_local.h" | 31 #include "base/threading/thread_local.h" |
| 32 #include "base/threading/thread_task_runner_handle.h" |
33 #include "build/build_config.h" | 33 #include "build/build_config.h" |
34 #include "chrome/test/chromedriver/logging.h" | 34 #include "chrome/test/chromedriver/logging.h" |
35 #include "chrome/test/chromedriver/net/port_server.h" | 35 #include "chrome/test/chromedriver/net/port_server.h" |
36 #include "chrome/test/chromedriver/server/http_handler.h" | 36 #include "chrome/test/chromedriver/server/http_handler.h" |
37 #include "chrome/test/chromedriver/version.h" | 37 #include "chrome/test/chromedriver/version.h" |
38 #include "net/base/ip_address.h" | 38 #include "net/base/ip_address.h" |
39 #include "net/base/ip_endpoint.h" | 39 #include "net/base/ip_endpoint.h" |
40 #include "net/base/net_errors.h" | 40 #include "net/base/net_errors.h" |
41 #include "net/server/http_server.h" | 41 #include "net/server/http_server.h" |
42 #include "net/server/http_server_request_info.h" | 42 #include "net/server/http_server_request_info.h" |
(...skipping 287 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
330 } | 330 } |
331 | 331 |
332 if (!InitLogging()) { | 332 if (!InitLogging()) { |
333 printf("Unable to initialize logging. Exiting...\n"); | 333 printf("Unable to initialize logging. Exiting...\n"); |
334 return 1; | 334 return 1; |
335 } | 335 } |
336 RunServer(port, allow_remote, whitelisted_ips, url_base, adb_port, | 336 RunServer(port, allow_remote, whitelisted_ips, url_base, adb_port, |
337 std::move(port_server)); | 337 std::move(port_server)); |
338 return 0; | 338 return 0; |
339 } | 339 } |
OLD | NEW |