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

Unified Diff: net/dns/dns_test_util.cc

Issue 9190031: DnsClient refactoring + features (timeout, suffix search, server rotation). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Delinted. Created 8 years, 11 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 | « net/dns/dns_test_util.h ('k') | net/dns/dns_transaction.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/dns/dns_test_util.cc
diff --git a/net/dns/dns_test_util.cc b/net/dns/dns_test_util.cc
deleted file mode 100644
index a3962524dcc93bee2401974546a7aca61efc7ad2..0000000000000000000000000000000000000000
--- a/net/dns/dns_test_util.cc
+++ /dev/null
@@ -1,35 +0,0 @@
-// Copyright (c) 2011 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.
-
-#include "net/dns/dns_test_util.h"
-
-#include "base/message_loop.h"
-
-namespace net {
-
-bool ConvertStringsToIPAddressList(
- const char* const ip_strings[], size_t size, IPAddressList* address_list) {
- DCHECK(address_list);
- IPAddressList ip_addresses;
- for (size_t i = 0; i < size; ++i) {
- IPAddressNumber ip;
- if (!ParseIPLiteralToNumber(ip_strings[i], &ip))
- return false;
- ip_addresses.push_back(ip);
- }
- address_list->swap(ip_addresses);
- return true;
-}
-
-bool CreateDnsAddress(
- const char* ip_string, uint16 port, IPEndPoint* endpoint) {
- DCHECK(endpoint);
- IPAddressNumber ip_address;
- if (!ParseIPLiteralToNumber(ip_string, &ip_address))
- return false;
- *endpoint = IPEndPoint(ip_address, port);
- return true;
-}
-
-} // namespace net
« no previous file with comments | « net/dns/dns_test_util.h ('k') | net/dns/dns_transaction.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698