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

Unified Diff: chrome/common/net/test_url_fetcher_factory.cc

Issue 7065008: Move response_container_ into the URLFetcher::Core. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 9 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 | « no previous file | chrome/common/net/url_fetcher.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/net/test_url_fetcher_factory.cc
diff --git a/chrome/common/net/test_url_fetcher_factory.cc b/chrome/common/net/test_url_fetcher_factory.cc
index 0cffe0fe13760b58ead9c901089227751141d74c..1e9a18dfe928596416fced3bb46c267a83bc512c 100644
--- a/chrome/common/net/test_url_fetcher_factory.cc
+++ b/chrome/common/net/test_url_fetcher_factory.cc
@@ -35,18 +35,18 @@ void TestURLFetcher::set_status(const net::URLRequestStatus& status) {
}
void TestURLFetcher::SetResponseString(const std::string& response) {
- response_destination_ = STRING;
+ SetResponseDestinationForTesting(STRING);
fake_response_string_ = response;
}
void TestURLFetcher::SetResponseFilePath(const FilePath& path) {
- response_destination_ = TEMP_FILE;
+ SetResponseDestinationForTesting(TEMP_FILE);
fake_response_file_path_ = path;
}
bool TestURLFetcher::GetResponseAsString(
std::string* out_response_string) const {
- if (response_destination_ != STRING)
+ if (GetResponseDestinationForTesting() != STRING)
return false;
*out_response_string = fake_response_string_;
@@ -55,7 +55,7 @@ bool TestURLFetcher::GetResponseAsString(
bool TestURLFetcher::GetResponseAsFilePath(
bool take_ownership, FilePath* out_response_path) const {
- if (response_destination_ != TEMP_FILE)
+ if (GetResponseDestinationForTesting() != TEMP_FILE)
return false;
*out_response_path = fake_response_file_path_;
« no previous file with comments | « no previous file | chrome/common/net/url_fetcher.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698