diff options
author | deanm@chromium.org <deanm@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-10-06 10:07:26 +0000 |
---|---|---|
committer | deanm@chromium.org <deanm@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-10-06 10:07:26 +0000 |
commit | cdd6c77f03f43b3531ae504d4c067b235d786ff4 (patch) | |
tree | 38f35dbf6ad8345c69aac034b2d9b81398d72afd /chrome/browser/net | |
parent | 8c0b363dbd7b3cc615d10fb4170508ef9e1d948e (diff) | |
download | chromium_src-cdd6c77f03f43b3531ae504d4c067b235d786ff4.zip chromium_src-cdd6c77f03f43b3531ae504d4c067b235d786ff4.tar.gz chromium_src-cdd6c77f03f43b3531ae504d4c067b235d786ff4.tar.bz2 |
Move all callers to EnsureWinsockInit, and away from using WinsockInit instances.
Review URL: http://codereview.chromium.org/6486
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@2874 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/net')
-rw-r--r-- | chrome/browser/net/dns_master_unittest.cc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/chrome/browser/net/dns_master_unittest.cc b/chrome/browser/net/dns_master_unittest.cc index dafe690..1f95742 100644 --- a/chrome/browser/net/dns_master_unittest.cc +++ b/chrome/browser/net/dns_master_unittest.cc @@ -140,7 +140,7 @@ TimeDelta BlockingDnsLookup(const std::string& hostname) { // of DNS prefetching. TEST(DnsMasterTest, OsCachesLookupsTest) { SetupNetworkInfrastructure(); - net::WinsockInit ws_init; + net::EnsureWinsockInit(); for (int i = 0; i < 5; i++) { std::string badname; @@ -160,7 +160,7 @@ TEST(DnsMasterTest, StartupShutdownTest) { TEST(DnsMasterTest, BenefitLookupTest) { SetupNetworkInfrastructure(); - net::WinsockInit ws_init; + net::EnsureWinsockInit(); DnsPrefetcherInit dns_init(NULL); // Creates global service . DnsMaster testing_master(TimeDelta::FromMilliseconds(5000)); @@ -237,7 +237,7 @@ TEST(DnsMasterTest, BenefitLookupTest) { TEST(DnsMasterTest, DISABLED_SingleSlaveLookupTest) { SetupNetworkInfrastructure(); - net::WinsockInit ws_init; + net::EnsureWinsockInit(); DnsPrefetcherInit dns_init(NULL); // Creates global service. DnsMaster testing_master(TimeDelta::FromMilliseconds(5000)); @@ -289,7 +289,7 @@ TEST(DnsMasterTest, DISABLED_SingleSlaveLookupTest) { TEST(DnsMasterTest, DISABLED_MultiThreadedLookupTest) { SetupNetworkInfrastructure(); - net::WinsockInit ws_init; + net::EnsureWinsockInit(); DnsMaster testing_master(TimeDelta::FromSeconds(30)); DnsPrefetcherInit dns_init(NULL); @@ -336,7 +336,7 @@ TEST(DnsMasterTest, DISABLED_MultiThreadedLookupTest) { TEST(DnsMasterTest, DISABLED_MultiThreadedSpeedupTest) { SetupNetworkInfrastructure(); - net::WinsockInit ws_init; + net::EnsureWinsockInit(); DnsMaster testing_master(TimeDelta::FromSeconds(30)); DnsPrefetcherInit dns_init(NULL); |