| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "content/browser/renderer_host/p2p/socket_host_udp.h" | 5 #include "content/browser/renderer_host/p2p/socket_host_udp.h" |
| 6 | 6 |
| 7 #include <deque> | 7 #include <deque> |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/logging.h" | 10 #include "base/logging.h" |
| (...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 133 NOTIMPLEMENTED(); | 133 NOTIMPLEMENTED(); |
| 134 return net::ERR_NOT_IMPLEMENTED; | 134 return net::ERR_NOT_IMPLEMENTED; |
| 135 } | 135 } |
| 136 | 136 |
| 137 virtual int LeaveGroup( | 137 virtual int LeaveGroup( |
| 138 const net::IPAddressNumber& group_address) const OVERRIDE { | 138 const net::IPAddressNumber& group_address) const OVERRIDE { |
| 139 NOTIMPLEMENTED(); | 139 NOTIMPLEMENTED(); |
| 140 return net::ERR_NOT_IMPLEMENTED; | 140 return net::ERR_NOT_IMPLEMENTED; |
| 141 } | 141 } |
| 142 | 142 |
| 143 virtual int SetMulticastInterface(uint32 interface_index) OVERRIDE { |
| 144 NOTIMPLEMENTED(); |
| 145 return net::ERR_NOT_IMPLEMENTED; |
| 146 } |
| 147 |
| 143 virtual int SetMulticastTimeToLive(int time_to_live) OVERRIDE { | 148 virtual int SetMulticastTimeToLive(int time_to_live) OVERRIDE { |
| 144 NOTIMPLEMENTED(); | 149 NOTIMPLEMENTED(); |
| 145 return net::ERR_NOT_IMPLEMENTED; | 150 return net::ERR_NOT_IMPLEMENTED; |
| 146 } | 151 } |
| 147 | 152 |
| 148 virtual int SetMulticastLoopbackMode(bool loopback) OVERRIDE { | 153 virtual int SetMulticastLoopbackMode(bool loopback) OVERRIDE { |
| 149 NOTIMPLEMENTED(); | 154 NOTIMPLEMENTED(); |
| 150 return net::ERR_NOT_IMPLEMENTED; | 155 return net::ERR_NOT_IMPLEMENTED; |
| 151 } | 156 } |
| 152 | 157 |
| (...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 362 socket_host_->Send(dest3, packet1, net::DSCP_NO_CHANGE, 0); | 367 socket_host_->Send(dest3, packet1, net::DSCP_NO_CHANGE, 0); |
| 363 net::IPEndPoint dest4 = ParseAddress(kTestIpAddress1, 2224); | 368 net::IPEndPoint dest4 = ParseAddress(kTestIpAddress1, 2224); |
| 364 // This packet should also be dropped. | 369 // This packet should also be dropped. |
| 365 socket_host_->Send(dest4, packet1, net::DSCP_NO_CHANGE, 0); | 370 socket_host_->Send(dest4, packet1, net::DSCP_NO_CHANGE, 0); |
| 366 // |dest1| is known, we can send as many packets to it. | 371 // |dest1| is known, we can send as many packets to it. |
| 367 socket_host_->Send(dest1_, packet1, net::DSCP_NO_CHANGE, 0); | 372 socket_host_->Send(dest1_, packet1, net::DSCP_NO_CHANGE, 0); |
| 368 ASSERT_EQ(sent_packets_.size(), 4U); | 373 ASSERT_EQ(sent_packets_.size(), 4U); |
| 369 } | 374 } |
| 370 | 375 |
| 371 } // namespace content | 376 } // namespace content |
| OLD | NEW |