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

Unified Diff: content/test/test_url_fetcher_factory.cc

Issue 8375039: Create a content::UrlFetcher interface that lives in content/public/common and convert users to i... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: review comments Created 9 years, 2 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/test/test_url_fetcher_factory.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/test/test_url_fetcher_factory.cc
===================================================================
--- content/test/test_url_fetcher_factory.cc (revision 107061)
+++ content/test/test_url_fetcher_factory.cc (working copy)
@@ -42,7 +42,7 @@
chunks_.push_back(data);
}
-const GURL& TestURLFetcher::original_url() const {
+const GURL& TestURLFetcher::GetOriginalUrl() const {
return original_url_;
}
@@ -114,19 +114,19 @@
fetchers_.erase(i);
}
-const GURL& TestURLFetcher::url() const {
+const GURL& TestURLFetcher::GetUrl() const {
return fake_url_;
}
-const net::URLRequestStatus& TestURLFetcher::status() const {
+const net::URLRequestStatus& TestURLFetcher::GetStatus() const {
return fake_status_;
}
-int TestURLFetcher::response_code() const {
+int TestURLFetcher::GetResponseCode() const {
return fake_response_code_;
}
-const net::ResponseCookies& TestURLFetcher::cookies() const {
+const net::ResponseCookies& TestURLFetcher::GetCookies() const {
return fake_cookies_;
}
@@ -156,7 +156,7 @@
// These methods are overriden so we can use the version of
// OnURLFetchComplete that only has a single URLFetcher argument.
- virtual const net::ResponseCookies& cookies() const OVERRIDE {
+ virtual const net::ResponseCookies& GetCookies() const OVERRIDE {
return cookies_;
}
@@ -166,15 +166,15 @@
return true;
}
- virtual int response_code() const OVERRIDE {
+ virtual int GetResponseCode() const OVERRIDE {
return success_ ? 200 : 500;
}
- virtual const net::URLRequestStatus& status() const OVERRIDE {
+ virtual const net::URLRequestStatus& GetStatus() const OVERRIDE {
return status_;
}
- virtual const GURL& url() const OVERRIDE {
+ virtual const GURL& GetUrl() const OVERRIDE {
return url_;
}
« no previous file with comments | « content/test/test_url_fetcher_factory.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698