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

Side by Side Diff: net/dns/address_sorter_posix_unittest.cc

Issue 914853002: Add CHECK() in UdpSocketLibevent to debug crbug.com/452121 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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
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 "net/dns/address_sorter_posix.h" 5 #include "net/dns/address_sorter_posix.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "net/base/net_errors.h" 9 #include "net/base/net_errors.h"
10 #include "net/base/net_util.h" 10 #include "net/base/net_util.h"
(...skipping 28 matching lines...) Expand all
39 NOTIMPLEMENTED(); 39 NOTIMPLEMENTED();
40 return OK; 40 return OK;
41 } 41 }
42 int Write(IOBuffer*, int, const CompletionCallback&) override { 42 int Write(IOBuffer*, int, const CompletionCallback&) override {
43 NOTIMPLEMENTED(); 43 NOTIMPLEMENTED();
44 return OK; 44 return OK;
45 } 45 }
46 int SetReceiveBufferSize(int32) override { return OK; } 46 int SetReceiveBufferSize(int32) override { return OK; }
47 int SetSendBufferSize(int32) override { return OK; } 47 int SetSendBufferSize(int32) override { return OK; }
48 48
49 void Close() override {} 49 int Close() override { return OK; }
50 int GetPeerAddress(IPEndPoint* address) const override { 50 int GetPeerAddress(IPEndPoint* address) const override {
51 NOTIMPLEMENTED(); 51 NOTIMPLEMENTED();
52 return OK; 52 return OK;
53 } 53 }
54 int GetLocalAddress(IPEndPoint* address) const override { 54 int GetLocalAddress(IPEndPoint* address) const override {
55 if (!connected_) 55 if (!connected_)
56 return ERR_UNEXPECTED; 56 return ERR_UNEXPECTED;
57 *address = local_endpoint_; 57 *address = local_endpoint_;
58 return OK; 58 return OK;
59 } 59 }
(...skipping 250 matching lines...) Expand 10 before | Expand all | Expand 10 after
310 AddMapping("4000::1", "4000::10"); // global unicast 310 AddMapping("4000::1", "4000::10"); // global unicast
311 AddMapping("ff32::2", "fe81::20"); // deprecated link-local multicast 311 AddMapping("ff32::2", "fe81::20"); // deprecated link-local multicast
312 GetSourceInfo("fe81::20")->deprecated = true; 312 GetSourceInfo("fe81::20")->deprecated = true;
313 const char* const addresses[] = { "ff3e::1", "ff32::2", "4000::1", "ff32::1", 313 const char* const addresses[] = { "ff3e::1", "ff32::2", "4000::1", "ff32::1",
314 "::1", "8.0.0.1", NULL }; 314 "::1", "8.0.0.1", NULL };
315 const int order[] = { 4, 3, 0, 2, 1, -1 }; 315 const int order[] = { 4, 3, 0, 2, 1, -1 };
316 Verify(addresses, order); 316 Verify(addresses, order);
317 } 317 }
318 318
319 } // namespace net 319 } // namespace net
OLDNEW
« no previous file with comments | « content/browser/renderer_host/p2p/socket_host_udp_unittest.cc ('k') | net/dns/mock_mdns_socket_factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698