OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 #ifndef CHROME_BROWSER_DEBUGGER_DEVTOOLS_REMOTE_LISTEN_SOCKET_UNITTEST_H_ | 5 #ifndef CHROME_BROWSER_DEBUGGER_DEVTOOLS_REMOTE_LISTEN_SOCKET_UNITTEST_H_ |
6 #define CHROME_BROWSER_DEBUGGER_DEVTOOLS_REMOTE_LISTEN_SOCKET_UNITTEST_H_ | 6 #define CHROME_BROWSER_DEBUGGER_DEVTOOLS_REMOTE_LISTEN_SOCKET_UNITTEST_H_ |
7 | 7 |
8 #include "build/build_config.h" | 8 #include "build/build_config.h" |
9 | 9 |
10 #include <deque> | 10 #include <deque> |
11 #include <string> | 11 #include <string> |
12 | 12 |
13 #if defined(OS_WIN) | 13 #if defined(OS_WIN) |
14 #include <winsock2.h> | 14 #include <winsock2.h> |
15 #elif defined(OS_POSIX) | 15 #elif defined(OS_POSIX) |
16 #include <sys/socket.h> | 16 #include <sys/socket.h> |
17 #include <errno.h> | 17 #include <errno.h> |
18 #include <semaphore.h> | 18 #include <semaphore.h> |
19 #include <arpa/inet.h> | 19 #include <arpa/inet.h> |
20 #endif | 20 #endif |
21 | 21 |
22 #include "base/thread.h" | 22 #include "base/thread.h" |
23 #include "base/basictypes.h" | 23 #include "base/basictypes.h" |
24 #include "base/message_loop.h" | 24 #include "base/message_loop.h" |
25 #include "base/ref_counted.h" | 25 #include "base/ref_counted.h" |
26 #include "base/scoped_ptr.h" | |
27 #include "base/string_util.h" | 26 #include "base/string_util.h" |
28 #include "base/thread.h" | 27 #include "base/thread.h" |
29 #include "chrome/browser/debugger/devtools_remote.h" | 28 #include "chrome/browser/debugger/devtools_remote.h" |
30 #include "chrome/browser/debugger/devtools_remote_listen_socket.h" | 29 #include "chrome/browser/debugger/devtools_remote_listen_socket.h" |
31 #include "chrome/browser/debugger/devtools_remote_message.h" | 30 #include "chrome/browser/debugger/devtools_remote_message.h" |
32 #include "net/base/net_util.h" | 31 #include "net/base/net_util.h" |
33 #include "net/base/listen_socket.h" | 32 #include "net/base/listen_socket.h" |
34 #include "net/base/winsock_init.h" | 33 #include "net/base/winsock_init.h" |
35 #include "testing/gtest/include/gtest/gtest.h" | 34 #include "testing/gtest/include/gtest/gtest.h" |
36 | 35 |
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
132 static const int kTestPort; | 131 static const int kTestPort; |
133 | 132 |
134 protected: | 133 protected: |
135 virtual ListenSocket* DoListen(); | 134 virtual ListenSocket* DoListen(); |
136 | 135 |
137 private: | 136 private: |
138 virtual ~DevToolsRemoteListenSocketTester() {} | 137 virtual ~DevToolsRemoteListenSocketTester() {} |
139 }; | 138 }; |
140 | 139 |
141 #endif // CHROME_BROWSER_DEBUGGER_DEVTOOLS_REMOTE_LISTEN_SOCKET_UNITTEST_H_ | 140 #endif // CHROME_BROWSER_DEBUGGER_DEVTOOLS_REMOTE_LISTEN_SOCKET_UNITTEST_H_ |
OLD | NEW |