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

Unified Diff: net/base/host_resolver_impl_unittest.cc

Issue 9369045: [net] HostResolverImpl + DnsTransaction + DnsConfigService = Asynchronous DNS ready for experiments. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Ready for test-drive. Created 8 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 side-by-side diff with in-line comments
Download patch
Index: net/base/host_resolver_impl_unittest.cc
diff --git a/net/base/host_resolver_impl_unittest.cc b/net/base/host_resolver_impl_unittest.cc
index 9a299c1da2769957a5fffdbfe9e65256acb4c8b8..e1400076c1f2dbf8ec5c4e8f33667127a130842f 100644
--- a/net/base/host_resolver_impl_unittest.cc
+++ b/net/base/host_resolver_impl_unittest.cc
@@ -50,7 +50,9 @@ HostResolverImpl* CreateHostResolverImpl(HostResolverProc* resolver_proc) {
return new HostResolverImpl(
HostCache::CreateDefaultCache(),
DefaultLimits(),
+ DefaultLimits(),
DefaultParams(resolver_proc),
+ scoped_ptr<DnsConfigService>(NULL),
NULL);
}
@@ -64,7 +66,9 @@ HostResolverImpl* CreateSerialHostResolverImpl(
return new HostResolverImpl(HostCache::CreateDefaultCache(),
limits,
+ limits,
params,
+ scoped_ptr<DnsConfigService>(NULL),
NULL);
}
@@ -517,7 +521,9 @@ TEST_F(HostResolverImplTest, AbortedAsynchronousLookup) {
scoped_ptr<HostResolver> host_resolver(
new HostResolverImpl(HostCache::CreateDefaultCache(),
DefaultLimits(),
+ DefaultLimits(),
DefaultParams(resolver_proc),
+ scoped_ptr<DnsConfigService>(NULL),
&net_log));
AddressList addrlist;
const int kPortnum = 80;
@@ -973,7 +979,12 @@ TEST_F(HostResolverImplTest, StartWithinCallback) {
// Turn off caching for this host resolver.
scoped_ptr<HostResolver> host_resolver(new HostResolverImpl(
- NULL, DefaultLimits(), DefaultParams(resolver_proc), NULL));
+ NULL,
+ DefaultLimits(),
+ DefaultLimits(),
+ DefaultParams(resolver_proc),
+ scoped_ptr<DnsConfigService>(NULL),
+ NULL));
// The class will receive callbacks for when each resolve completes. It
// checks that the right things happened.
@@ -1585,7 +1596,9 @@ TEST_F(HostResolverImplTest, MultipleAttempts) {
scoped_ptr<HostResolverImpl> host_resolver(
new HostResolverImpl(HostCache::CreateDefaultCache(),
DefaultLimits(),
+ DefaultLimits(),
params,
+ scoped_ptr<DnsConfigService>(NULL),
NULL));
// Resolve "host1".

Powered by Google App Engine
This is Rietveld 408576698