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

Unified Diff: chrome/browser/autocomplete/search_provider_unittest.cc

Issue 7524033: Add a scoper object for URLFetcher::Factory (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 9 years, 5 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 | « no previous file | chrome/browser/autofill/autofill_browsertest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/autocomplete/search_provider_unittest.cc
diff --git a/chrome/browser/autocomplete/search_provider_unittest.cc b/chrome/browser/autocomplete/search_provider_unittest.cc
index 7a2da1959842d2744145394a2cce5563770a721e..cc27f2dbb9d6b48317bda18a2bc803a9ab1ce774 100644
--- a/chrome/browser/autocomplete/search_provider_unittest.cc
+++ b/chrome/browser/autocomplete/search_provider_unittest.cc
@@ -20,7 +20,7 @@
#include "chrome/test/testing_browser_process_test.h"
#include "chrome/test/testing_profile.h"
#include "content/browser/browser_thread.h"
-#include "content/common/test_url_fetcher_factory.h"
+#include "content/test/test_url_fetcher_factory.h"
#include "net/url_request/url_request_status.h"
#include "testing/gtest/include/gtest/gtest.h"
@@ -152,8 +152,6 @@ void SearchProviderTest::SetUp() {
provider_ = new SearchProvider(this, &profile_);
- URLFetcher::set_factory(&test_factory_);
-
// Prevent the Instant field trial from kicking in.
PrefService* service = profile_.GetPrefs();
service->SetBoolean(prefs::kInstantEnabledOnce, true);
@@ -209,8 +207,6 @@ void SearchProviderTest::QueryForInputAndSetWYTMatch(
void SearchProviderTest::TearDown() {
message_loop_.RunAllPending();
- URLFetcher::set_factory(NULL);
-
// Shutdown the provider before the profile.
provider_ = NULL;
}
« no previous file with comments | « no previous file | chrome/browser/autofill/autofill_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698