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

Unified Diff: net/dns/dns_test_util.h

Issue 10855163: Revert 151586 - [net/dns] Resolve AF_UNSPEC on dual-stacked systems. Sort addresses according to RF… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 4 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_response_unittest.cc ('k') | net/dns/dns_test_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/dns/dns_test_util.h
===================================================================
--- net/dns/dns_test_util.h (revision 151600)
+++ net/dns/dns_test_util.h (working copy)
@@ -5,9 +5,6 @@
#ifndef NET_DNS_DNS_TEST_UTIL_H_
#define NET_DNS_DNS_TEST_UTIL_H_
-#include <string>
-#include <vector>
-
#include "base/basictypes.h"
#include "base/memory/scoped_ptr.h"
#include "net/dns/dns_config_service.h"
@@ -169,25 +166,8 @@
static const unsigned kT3RecordCount = arraysize(kT3IpAddresses) + 2;
class DnsClient;
-
-struct MockDnsClientRule {
- enum Result {
- FAIL_SYNC, // Fail synchronously with ERR_NAME_NOT_RESOLVED.
- FAIL_ASYNC, // Fail asynchronously with ERR_NAME_NOT_RESOLVED.
- EMPTY, // Return an empty response.
- OK, // Return a response with loopback address.
- };
-
- std::string prefix;
- uint16 qtype;
- Result result;
-};
-
-typedef std::vector<MockDnsClientRule> MockDnsClientRuleList;
-
// Creates mock DnsClient for testing HostResolverImpl.
-scoped_ptr<DnsClient> CreateMockDnsClient(const DnsConfig& config,
- const MockDnsClientRuleList& rules);
+scoped_ptr<DnsClient> CreateMockDnsClient(const DnsConfig& config);
class MockDnsConfigService : public DnsConfigService {
public:
Property changes on: net/dns/dns_test_util.h
___________________________________________________________________
Added: svn:mergeinfo
« no previous file with comments | « net/dns/dns_response_unittest.cc ('k') | net/dns/dns_test_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698