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

Unified Diff: chrome/browser/captive_portal/captive_portal_service_unittest.cc

Issue 10581012: Move test_url_fetcher_factory.* from content/ to net/url_request (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove export annotations Created 8 years, 6 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: chrome/browser/captive_portal/captive_portal_service_unittest.cc
diff --git a/chrome/browser/captive_portal/captive_portal_service_unittest.cc b/chrome/browser/captive_portal/captive_portal_service_unittest.cc
index b6a270c32f9088c51212261dfe67647d2a4c0a61..4dcce0cea11a1802eaf00ea44259131fd7db3d77 100644
--- a/chrome/browser/captive_portal/captive_portal_service_unittest.cc
+++ b/chrome/browser/captive_portal/captive_portal_service_unittest.cc
@@ -18,10 +18,10 @@
#include "content/public/browser/notification_observer.h"
#include "content/public/browser/notification_registrar.h"
#include "content/public/browser/notification_source.h"
-#include "content/public/test/test_url_fetcher_factory.h"
#include "net/base/net_errors.h"
#include "net/http/http_response_headers.h"
#include "net/http/http_util.h"
+#include "net/url_request/test_url_fetcher_factory.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace captive_portal {
@@ -201,7 +201,7 @@ class CaptivePortalServiceTest : public testing::Test {
ASSERT_EQ(base::TimeDelta(), GetTimeUntilNextRequest());
CaptivePortalObserver observer(profile(), service());
- TestURLFetcherFactory factory;
+ net::TestURLFetcherFactory factory;
service()->DetectCaptivePortal();
EXPECT_EQ(CaptivePortalService::STATE_TIMER_RUNNING, service()->state());
@@ -214,7 +214,7 @@ class CaptivePortalServiceTest : public testing::Test {
ASSERT_TRUE(FetchingURL());
EXPECT_FALSE(TimerRunning());
- TestURLFetcher* fetcher = factory.GetFetcherByID(0);
+ net::TestURLFetcher* fetcher = factory.GetFetcherByID(0);
if (net_error != net::OK) {
EXPECT_FALSE(response_headers);
fetcher->set_status(net::URLRequestStatus(net::URLRequestStatus::FAILED,
@@ -453,7 +453,7 @@ TEST_F(CaptivePortalServiceTest, CaptivePortalPrefDisabledWhileRunning) {
CaptivePortalObserver observer(profile(), service());
// Needed to create the URLFetcher, even if it never returns any results.
- TestURLFetcherFactory factory;
+ net::TestURLFetcherFactory factory;
service()->DetectCaptivePortal();
MessageLoop::current()->RunAllPending();
@@ -481,7 +481,7 @@ TEST_F(CaptivePortalServiceTest, CaptivePortalPrefDisabledWhilePending) {
set_initial_backoff_no_portal(base::TimeDelta::FromDays(1));
// Needed to create the URLFetcher, even if it never returns any results.
- TestURLFetcherFactory factory;
+ net::TestURLFetcherFactory factory;
CaptivePortalObserver observer(profile(), service());
service()->DetectCaptivePortal();
@@ -515,7 +515,7 @@ TEST_F(CaptivePortalServiceTest, CaptivePortalPrefEnabledWhilePending) {
EXPECT_FALSE(FetchingURL());
EXPECT_TRUE(TimerRunning());
- TestURLFetcherFactory factory;
+ net::TestURLFetcherFactory factory;
EnableCaptivePortalDetection(true);
EXPECT_FALSE(FetchingURL());
@@ -525,7 +525,7 @@ TEST_F(CaptivePortalServiceTest, CaptivePortalPrefEnabledWhilePending) {
ASSERT_TRUE(FetchingURL());
EXPECT_FALSE(TimerRunning());
- TestURLFetcher* fetcher = factory.GetFetcherByID(0);
+ net::TestURLFetcher* fetcher = factory.GetFetcherByID(0);
fetcher->set_response_code(200);
OnURLFetchComplete(fetcher);
EXPECT_FALSE(FetchingURL());
« no previous file with comments | « chrome/browser/autofill/autofill_download_unittest.cc ('k') | chrome/browser/chromeos/login/login_utils_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698