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

Unified Diff: content/common/net/url_fetcher_impl_unittest.cc

Issue 10392192: Remove content::URLFetcherDelegate (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: More cleanup Created 8 years, 7 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 | « content/common/net/url_fetcher_impl.cc ('k') | content/public/common/url_fetcher.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/net/url_fetcher_impl_unittest.cc
diff --git a/content/common/net/url_fetcher_impl_unittest.cc b/content/common/net/url_fetcher_impl_unittest.cc
index 086f037b0e6a0e1f19443332ad3f910c1a7f96a0..9e1374b6aec42570f592ba8f64a87e3af5fad461 100644
--- a/content/common/net/url_fetcher_impl_unittest.cc
+++ b/content/common/net/url_fetcher_impl_unittest.cc
@@ -13,10 +13,10 @@
#include "base/synchronization/waitable_event.h"
#include "base/threading/thread.h"
#include "build/build_config.h"
-#include "content/public/common/url_fetcher_delegate.h"
#include "crypto/nss_util.h"
#include "net/http/http_response_headers.h"
#include "net/test/test_server.h"
+#include "net/url_request/url_fetcher_delegate.h"
#include "net/url_request/url_request_context_getter.h"
#include "net/url_request/url_request_test_util.h"
#include "net/url_request/url_request_throttler_manager.h"
@@ -71,7 +71,7 @@ class ThrottlingTestURLRequestContextGetter
} // namespace
class URLFetcherTest : public testing::Test,
- public content::URLFetcherDelegate {
+ public net::URLFetcherDelegate {
public:
URLFetcherTest()
: fetcher_(NULL),
@@ -85,7 +85,7 @@ class URLFetcherTest : public testing::Test,
// Creates a URLFetcher, using the program's main thread to do IO.
virtual void CreateFetcher(const GURL& url);
- // content::URLFetcherDelegate
+ // net::URLFetcherDelegate
virtual void OnURLFetchComplete(const net::URLFetcher* source) OVERRIDE;
scoped_refptr<base::MessageLoopProxy> io_message_loop_proxy() {
@@ -157,7 +157,7 @@ class URLFetcherPostTest : public URLFetcherTest {
// URLFetcherTest override.
virtual void CreateFetcher(const GURL& url) OVERRIDE;
- // content::URLFetcherDelegate
+ // net::URLFetcherDelegate
virtual void OnURLFetchComplete(const net::URLFetcher* source) OVERRIDE;
};
@@ -167,7 +167,7 @@ class URLFetcherDownloadProgressTest : public URLFetcherTest {
// URLFetcherTest override.
virtual void CreateFetcher(const GURL& url) OVERRIDE;
- // content::URLFetcherDelegate
+ // net::URLFetcherDelegate
virtual void OnURLFetchDownloadProgress(const net::URLFetcher* source,
int64 current, int64 total) OVERRIDE;
protected:
@@ -181,7 +181,7 @@ class URLFetcherDownloadProgressCancelTest : public URLFetcherTest {
// URLFetcherTest override.
virtual void CreateFetcher(const GURL& url) OVERRIDE;
- // content::URLFetcherDelegate
+ // net::URLFetcherDelegate
virtual void OnURLFetchComplete(const net::URLFetcher* source) OVERRIDE;
virtual void OnURLFetchDownloadProgress(const net::URLFetcher* source,
int64 current, int64 total) OVERRIDE;
@@ -194,7 +194,7 @@ class URLFetcherUploadProgressTest : public URLFetcherTest {
public:
virtual void CreateFetcher(const GURL& url);
- // content::URLFetcherDelegate
+ // net::URLFetcherDelegate
virtual void OnURLFetchUploadProgress(const net::URLFetcher* source,
int64 current, int64 total);
protected:
@@ -206,14 +206,14 @@ class URLFetcherUploadProgressTest : public URLFetcherTest {
// Version of URLFetcherTest that tests headers.
class URLFetcherHeadersTest : public URLFetcherTest {
public:
- // content::URLFetcherDelegate
+ // net::URLFetcherDelegate
virtual void OnURLFetchComplete(const net::URLFetcher* source) OVERRIDE;
};
// Version of URLFetcherTest that tests SocketAddress.
class URLFetcherSocketAddressTest : public URLFetcherTest {
public:
- // content::URLFetcherDelegate
+ // net::URLFetcherDelegate
virtual void OnURLFetchComplete(const net::URLFetcher* source) OVERRIDE;
protected:
std::string expected_host_;
@@ -225,7 +225,7 @@ class URLFetcherProtectTest : public URLFetcherTest {
public:
// URLFetcherTest override.
virtual void CreateFetcher(const GURL& url) OVERRIDE;
- // content::URLFetcherDelegate
+ // net::URLFetcherDelegate
virtual void OnURLFetchComplete(const net::URLFetcher* source) OVERRIDE;
private:
Time start_time_;
@@ -237,7 +237,7 @@ class URLFetcherProtectTestPassedThrough : public URLFetcherTest {
public:
// URLFetcherTest override.
virtual void CreateFetcher(const GURL& url) OVERRIDE;
- // content::URLFetcherDelegate
+ // net::URLFetcherDelegate
virtual void OnURLFetchComplete(const net::URLFetcher* source) OVERRIDE;
private:
Time start_time_;
@@ -248,7 +248,7 @@ class URLFetcherBadHTTPSTest : public URLFetcherTest {
public:
URLFetcherBadHTTPSTest();
- // content::URLFetcherDelegate
+ // net::URLFetcherDelegate
virtual void OnURLFetchComplete(const net::URLFetcher* source) OVERRIDE;
private:
@@ -260,7 +260,7 @@ class URLFetcherCancelTest : public URLFetcherTest {
public:
// URLFetcherTest override.
virtual void CreateFetcher(const GURL& url) OVERRIDE;
- // content::URLFetcherDelegate
+ // net::URLFetcherDelegate
virtual void OnURLFetchComplete(const net::URLFetcher* source) OVERRIDE;
void CancelRequest();
@@ -332,7 +332,7 @@ class CancelTestURLRequestContextGetter
// Version of URLFetcherTest that tests retying the same request twice.
class URLFetcherMultipleAttemptTest : public URLFetcherTest {
public:
- // content::URLFetcherDelegate
+ // net::URLFetcherDelegate
virtual void OnURLFetchComplete(const net::URLFetcher* source) OVERRIDE;
private:
std::string data_;
@@ -346,7 +346,7 @@ class URLFetcherFileTest : public URLFetcherTest {
void CreateFetcherForFile(const GURL& url, const FilePath& file_path);
void CreateFetcherForTempFile(const GURL& url);
- // content::URLFetcherDelegate
+ // net::URLFetcherDelegate
virtual void OnURLFetchComplete(const net::URLFetcher* source) OVERRIDE;
protected:
« no previous file with comments | « content/common/net/url_fetcher_impl.cc ('k') | content/public/common/url_fetcher.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698