Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(62)

Side by Side Diff: content/browser/renderer_host/p2p/socket_host_udp_unittest.cc

Issue 12210030: Linux/ChromeOS Chromium style checker cleanup, content/ edition. (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: Created 7 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 *recv_address_ = address; 97 *recv_address_ = address;
98 net::CompletionCallback cb = recv_callback_; 98 net::CompletionCallback cb = recv_callback_;
99 recv_callback_.Reset(); 99 recv_callback_.Reset();
100 recv_buffer_ = NULL; 100 recv_buffer_ = NULL;
101 cb.Run(size); 101 cb.Run(size);
102 } else { 102 } else {
103 incoming_packets_.push_back(UDPPacket(address, data)); 103 incoming_packets_.push_back(UDPPacket(address, data));
104 } 104 }
105 } 105 }
106 106
107 virtual const net::BoundNetLog& NetLog() const { 107 virtual const net::BoundNetLog& NetLog() const OVERRIDE {
108 return net_log_; 108 return net_log_;
109 } 109 }
110 110
111 virtual void AllowAddressReuse() OVERRIDE { 111 virtual void AllowAddressReuse() OVERRIDE {
112 NOTIMPLEMENTED(); 112 NOTIMPLEMENTED();
113 } 113 }
114 114
115 virtual void AllowBroadcast() OVERRIDE { 115 virtual void AllowBroadcast() OVERRIDE {
116 NOTIMPLEMENTED(); 116 NOTIMPLEMENTED();
117 } 117 }
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
250 // Should fail when trying to send the same packet to |dest2_|. 250 // Should fail when trying to send the same packet to |dest2_|.
251 std::vector<char> packet; 251 std::vector<char> packet;
252 CreateRandomPacket(&packet); 252 CreateRandomPacket(&packet);
253 EXPECT_CALL(sender_, Send( 253 EXPECT_CALL(sender_, Send(
254 MatchMessage(static_cast<uint32>(P2PMsg_OnError::ID)))) 254 MatchMessage(static_cast<uint32>(P2PMsg_OnError::ID))))
255 .WillOnce(DoAll(DeleteArg<0>(), Return(true))); 255 .WillOnce(DoAll(DeleteArg<0>(), Return(true)));
256 socket_host_->Send(dest2_, packet); 256 socket_host_->Send(dest2_, packet);
257 } 257 }
258 258
259 } // namespace content 259 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698