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 <stdio.h> | 5 #include <stdio.h> |
6 #include <string> | 6 #include <string> |
7 #include <vector> | 7 #include <vector> |
8 | 8 |
9 #include "base/at_exit.h" | 9 #include "base/at_exit.h" |
10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
11 #include "base/files/file_path.h" | 11 #include "base/files/file_path.h" |
12 #include "base/logging.h" | 12 #include "base/logging.h" |
13 #include "base/memory/scoped_ptr.h" | 13 #include "base/memory/scoped_ptr.h" |
14 #include "base/stringprintf.h" | |
15 #include "base/strings/string_number_conversions.h" | 14 #include "base/strings/string_number_conversions.h" |
| 15 #include "base/strings/stringprintf.h" |
16 #include "base/synchronization/waitable_event.h" | 16 #include "base/synchronization/waitable_event.h" |
17 #include "chrome/test/chromedriver/chrome/log.h" | 17 #include "chrome/test/chromedriver/chrome/log.h" |
18 #include "chrome/test/chromedriver/chrome/version.h" | 18 #include "chrome/test/chromedriver/chrome/version.h" |
19 #include "chrome/test/chromedriver/command_executor_impl.h" | 19 #include "chrome/test/chromedriver/command_executor_impl.h" |
20 #include "chrome/test/chromedriver/server/http_handler.h" | 20 #include "chrome/test/chromedriver/server/http_handler.h" |
21 #include "chrome/test/chromedriver/server/http_response.h" | 21 #include "chrome/test/chromedriver/server/http_response.h" |
22 #include "third_party/mongoose/mongoose.h" | 22 #include "third_party/mongoose/mongoose.h" |
23 | 23 |
24 #if defined(OS_POSIX) | 24 #if defined(OS_POSIX) |
25 #include <fcntl.h> | 25 #include <fcntl.h> |
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
195 // Close stderr on exec, so that Chrome log spew doesn't confuse users. | 195 // Close stderr on exec, so that Chrome log spew doesn't confuse users. |
196 fcntl(STDERR_FILENO, F_SETFD, FD_CLOEXEC); | 196 fcntl(STDERR_FILENO, F_SETFD, FD_CLOEXEC); |
197 } | 197 } |
198 #endif | 198 #endif |
199 | 199 |
200 // Run until we receive command to shutdown. | 200 // Run until we receive command to shutdown. |
201 shutdown_event.Wait(); | 201 shutdown_event.Wait(); |
202 | 202 |
203 return 0; | 203 return 0; |
204 } | 204 } |
OLD | NEW |