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

Unified Diff: chrome/browser/autofill/autofill_download_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/autofill/autofill_download_unittest.cc
diff --git a/chrome/browser/autofill/autofill_download_unittest.cc b/chrome/browser/autofill/autofill_download_unittest.cc
index 062254bc105459389521c5a35af1de944264fcb7..c3519704cf3146c99ae16d6b5d282be83b2c2101 100644
--- a/chrome/browser/autofill/autofill_download_unittest.cc
+++ b/chrome/browser/autofill/autofill_download_unittest.cc
@@ -16,7 +16,7 @@
#include "chrome/test/base/testing_browser_process.h"
#include "chrome/test/base/testing_profile.h"
#include "content/public/test/test_browser_thread.h"
-#include "content/public/test/test_url_fetcher_factory.h"
+#include "net/url_request/test_url_fetcher_factory.h"
#include "net/url_request/url_request_status.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
@@ -41,7 +41,7 @@ class MockAutofillMetrics : public AutofillMetrics {
// Call |fetcher->OnURLFetchComplete()| as the URLFetcher would when
// a response is received. Params allow caller to set fake status.
-void FakeOnURLFetchComplete(TestURLFetcher* fetcher,
+void FakeOnURLFetchComplete(net::TestURLFetcher* fetcher,
int response_code,
const std::string& response_body) {
fetcher->set_url(GURL());
@@ -140,7 +140,7 @@ class AutofillDownloadTest : public AutofillDownloadManager::Observer,
TEST_F(AutofillDownloadTest, QueryAndUploadTest) {
MessageLoopForUI message_loop;
// Create and register factory.
- TestURLFetcherFactory factory;
+ net::TestURLFetcherFactory factory;
FormData form;
form.method = ASCIIToUTF16("post");
@@ -243,7 +243,7 @@ TEST_F(AutofillDownloadTest, QueryAndUploadTest) {
};
// Return them out of sequence.
- TestURLFetcher* fetcher = factory.GetFetcherByID(1);
+ net::TestURLFetcher* fetcher = factory.GetFetcherByID(1);
ASSERT_TRUE(fetcher);
FakeOnURLFetchComplete(fetcher, 200, std::string(responses[1]));
@@ -354,7 +354,7 @@ TEST_F(AutofillDownloadTest, QueryAndUploadTest) {
TEST_F(AutofillDownloadTest, CacheQueryTest) {
MessageLoopForUI message_loop;
// Create and register factory.
- TestURLFetcherFactory factory;
+ net::TestURLFetcherFactory factory;
FormData form;
form.method = ASCIIToUTF16("post");
@@ -428,7 +428,7 @@ TEST_F(AutofillDownloadTest, CacheQueryTest) {
// No responses yet
EXPECT_EQ(static_cast<size_t>(0), responses_.size());
- TestURLFetcher* fetcher = factory.GetFetcherByID(0);
+ net::TestURLFetcher* fetcher = factory.GetFetcherByID(0);
ASSERT_TRUE(fetcher);
FakeOnURLFetchComplete(fetcher, 200, std::string(responses[0]));
ASSERT_EQ(static_cast<size_t>(1), responses_.size());
« no previous file with comments | « chrome/browser/autofill/autofill_browsertest.cc ('k') | chrome/browser/captive_portal/captive_portal_service_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698