OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 "chrome/test/webdriver/session_manager.h" | 5 #include "chrome/test/webdriver/session_manager.h" |
6 | 6 |
7 #ifdef OS_POSIX | 7 #ifdef OS_POSIX |
8 #include <netdb.h> | 8 #include <netdb.h> |
9 #include <unistd.h> | 9 #include <unistd.h> |
10 #include <arpa/inet.h> | 10 #include <arpa/inet.h> |
11 #include <net/if.h> | 11 #include <net/if.h> |
12 #include <sys/ioctl.h> | 12 #include <sys/ioctl.h> |
13 #include <sys/socket.h> | 13 #include <sys/socket.h> |
14 #include <sys/types.h> | 14 #include <sys/types.h> |
15 #elif OS_WIN | 15 #elif OS_WIN |
16 #include <Shellapi.h> | 16 #include <Shellapi.h> |
17 #include <Winsock2.h> | 17 #include <Winsock2.h> |
18 #endif | 18 #endif |
19 | 19 |
20 #include "base/command_line.h" | 20 #include "base/command_line.h" |
21 #include "base/lock.h" | |
22 #include "base/logging.h" | 21 #include "base/logging.h" |
23 #include "base/process.h" | 22 #include "base/process.h" |
24 #include "base/process_util.h" | 23 #include "base/process_util.h" |
25 #include "base/ref_counted.h" | 24 #include "base/ref_counted.h" |
26 #include "base/scoped_ptr.h" | 25 #include "base/scoped_ptr.h" |
27 #include "base/test/test_timeouts.h" | 26 #include "base/test/test_timeouts.h" |
28 | 27 |
29 #include "chrome/common/chrome_constants.h" | 28 #include "chrome/common/chrome_constants.h" |
30 #include "chrome/common/chrome_switches.h" | 29 #include "chrome/common/chrome_switches.h" |
31 | 30 |
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
178 std::map<std::string, Session*>::const_iterator it; | 177 std::map<std::string, Session*>::const_iterator it; |
179 it = map_.find(id); | 178 it = map_.find(id); |
180 if (it == map_.end()) { | 179 if (it == map_.end()) { |
181 VLOG(1) << "No such session with ID " << id; | 180 VLOG(1) << "No such session with ID " << id; |
182 return NULL; | 181 return NULL; |
183 } | 182 } |
184 return it->second; | 183 return it->second; |
185 } | 184 } |
186 | 185 |
187 } // namespace webdriver | 186 } // namespace webdriver |
OLD | NEW |