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

Unified Diff: content/browser/renderer_host/p2p/socket_host_udp_unittest.cc

Issue 10739002: Added broadcasting feature to UDP server sockets. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Fixed license headers. Created 8 years, 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | net/udp/datagram_server_socket.h » ('j') | net/udp/udp_socket_libevent.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/renderer_host/p2p/socket_host_udp_unittest.cc
diff --git a/content/browser/renderer_host/p2p/socket_host_udp_unittest.cc b/content/browser/renderer_host/p2p/socket_host_udp_unittest.cc
index b294c786ecd8720d9291c6eaf472d6b547d80f46..3607c42b8e74e7de64fb356bd002480d3ad8b1ed 100644
--- a/content/browser/renderer_host/p2p/socket_host_udp_unittest.cc
+++ b/content/browser/renderer_host/p2p/socket_host_udp_unittest.cc
@@ -1,4 +1,4 @@
-// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -7,6 +7,7 @@
#include <deque>
#include <vector>
+#include "base/logging.h"
#include "base/sys_byteorder.h"
#include "content/browser/renderer_host/p2p/socket_host_test_utils.h"
#include "net/base/io_buffer.h"
@@ -107,6 +108,14 @@ class FakeDatagramServerSocket : public net::DatagramServerSocket {
return net_log_;
}
+ virtual void AllowAddressReuse() OVERRIDE {
+ NOTIMPLEMENTED();
+ }
+
+ virtual void AllowBroadcast() OVERRIDE {
+ NOTIMPLEMENTED();
+ }
+
private:
net::IPEndPoint address_;
std::deque<UDPPacket>* sent_packets_;
« no previous file with comments | « no previous file | net/udp/datagram_server_socket.h » ('j') | net/udp/udp_socket_libevent.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698