OLD | NEW |
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 "jingle/glue/fake_socket_factory.h" | 5 #include "jingle/glue/fake_socket_factory.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/message_loop.h" | 8 #include "base/message_loop/message_loop.h" |
9 #include "jingle/glue/utils.h" | 9 #include "jingle/glue/utils.h" |
10 #include "third_party/libjingle/source/talk/base/asyncsocket.h" | 10 #include "third_party/libjingle/source/talk/base/asyncsocket.h" |
11 | 11 |
12 namespace jingle_glue { | 12 namespace jingle_glue { |
13 | 13 |
14 FakeUDPPacketSocket::FakeUDPPacketSocket(FakeSocketManager* fake_socket_manager, | 14 FakeUDPPacketSocket::FakeUDPPacketSocket(FakeSocketManager* fake_socket_manager, |
15 const net::IPEndPoint& address) | 15 const net::IPEndPoint& address) |
16 : fake_socket_manager_(fake_socket_manager), | 16 : fake_socket_manager_(fake_socket_manager), |
17 endpoint_(address), state_(IS_OPEN), error_(0) { | 17 endpoint_(address), state_(IS_OPEN), error_(0) { |
18 CHECK(IPEndPointToSocketAddress(endpoint_, &local_address_)); | 18 CHECK(IPEndPointToSocketAddress(endpoint_, &local_address_)); |
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
186 const talk_base::SocketAddress& local_address, | 186 const talk_base::SocketAddress& local_address, |
187 const talk_base::SocketAddress& remote_address, | 187 const talk_base::SocketAddress& remote_address, |
188 const talk_base::ProxyInfo& proxy_info, const std::string& user_agent, | 188 const talk_base::ProxyInfo& proxy_info, const std::string& user_agent, |
189 int opts) { | 189 int opts) { |
190 // TODO(sergeyu): Implement fake TCP sockets. | 190 // TODO(sergeyu): Implement fake TCP sockets. |
191 NOTIMPLEMENTED(); | 191 NOTIMPLEMENTED(); |
192 return NULL; | 192 return NULL; |
193 } | 193 } |
194 | 194 |
195 } // namespace jingle_glue | 195 } // namespace jingle_glue |
OLD | NEW |