summaryrefslogtreecommitdiffstats
path: root/content/test
diff options
context:
space:
mode:
authorskerner@chromium.org <skerner@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-09-23 13:52:05 +0000
committerskerner@chromium.org <skerner@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-09-23 13:52:05 +0000
commit80a3f81ca86067f3d4613ec0da57e53df77b2007 (patch)
tree448ba0f3726f460a7bd288d6bda722010f9ef1ce /content/test
parent58af219f1d05cc71d77a3627ddc4ca3cbeefb289 (diff)
downloadchromium_src-80a3f81ca86067f3d4613ec0da57e53df77b2007.zip
chromium_src-80a3f81ca86067f3d4613ec0da57e53df77b2007.tar.gz
chromium_src-80a3f81ca86067f3d4613ec0da57e53df77b2007.tar.bz2
Update OnURLFetchComplete() to use new params in AutofillDownloadManager.
BUG=83592 TEST=compiles Review URL: http://codereview.chromium.org/7979015 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@102493 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/test')
-rw-r--r--content/test/test_url_fetcher_factory.cc4
-rw-r--r--content/test/test_url_fetcher_factory.h1
2 files changed, 5 insertions, 0 deletions
diff --git a/content/test/test_url_fetcher_factory.cc b/content/test/test_url_fetcher_factory.cc
index 5062b46..b079b3e 100644
--- a/content/test/test_url_fetcher_factory.cc
+++ b/content/test/test_url_fetcher_factory.cc
@@ -58,6 +58,10 @@ void TestURLFetcher::SetResponseFilePath(const FilePath& path) {
fake_response_file_path_ = path;
}
+const std::string& TestURLFetcher::GetResponseStringRef() const {
+ return fake_response_string_;
+}
+
bool TestURLFetcher::GetResponseAsString(
std::string* out_response_string) const {
if (GetResponseDestinationForTesting() != STRING)
diff --git a/content/test/test_url_fetcher_factory.h b/content/test/test_url_fetcher_factory.h
index c003106..c6cd0aa 100644
--- a/content/test/test_url_fetcher_factory.h
+++ b/content/test/test_url_fetcher_factory.h
@@ -103,6 +103,7 @@ class TestURLFetcher : public URLFetcher {
void SetResponseFilePath(const FilePath& path);
// Override response access functions to return fake data.
+ virtual const std::string& GetResponseStringRef() const OVERRIDE;
virtual bool GetResponseAsString(std::string* out_response_string) const
OVERRIDE;
virtual bool GetResponseAsFilePath(bool take_ownership,