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

Unified Diff: content/test/test_url_fetcher_factory.h

Issue 7600003: Pre- and Auto-login should not log the user out of an already signed in (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Add test source code file to CL Created 9 years, 4 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: content/test/test_url_fetcher_factory.h
===================================================================
--- content/test/test_url_fetcher_factory.h (revision 96549)
+++ content/test/test_url_fetcher_factory.h (working copy)
@@ -65,7 +65,8 @@
// Overriden to cache the chunks uploaded. Caller can read back the uploaded
// chunks with the upload_data() accessor.
- virtual void AppendChunkToUpload(const std::string& data, bool is_last_chunk);
+ virtual void AppendChunkToUpload(const std::string& data, bool is_last_chunk)
+ OVERRIDE;
// Unique ID in our factory.
int id() const { return id_; }
@@ -73,7 +74,7 @@
// URL we were created with. Because of how we're using URLFetcher url()
// always returns an empty URL. Chances are you'll want to use original_url()
// in your tests.
- const GURL& original_url() const { return original_url_; }
+ virtual const GURL& original_url() const OVERRIDE;
// Returns the data uploaded on this URLFetcher.
const std::string& upload_data() const { return URLFetcher::upload_data(); }
@@ -85,15 +86,15 @@
Delegate* delegate() const { return URLFetcher::delegate(); }
void set_url(const GURL& url) { fake_url_ = url; }
- virtual const GURL& url() const;
+ virtual const GURL& url() const OVERRIDE;
void set_status(const net::URLRequestStatus& status);
- virtual const net::URLRequestStatus& status() const;
+ virtual const net::URLRequestStatus& status() const OVERRIDE;
void set_response_code(int response_code) {
fake_response_code_ = response_code;
}
- virtual int response_code() const;
+ virtual int response_code() const OVERRIDE;
// Set string data.
void SetResponseString(const std::string& response);
@@ -102,9 +103,11 @@
void SetResponseFilePath(const FilePath& path);
// Override response access functions to return fake data.
- virtual bool GetResponseAsString(std::string* out_response_string) const;
+ virtual bool GetResponseAsString(std::string* out_response_string) const
+ OVERRIDE;
virtual bool GetResponseAsFilePath(bool take_ownership,
- FilePath* out_response_path) const;
+ FilePath* out_response_path) const
+ OVERRIDE;
private:
const int id_;
@@ -136,7 +139,7 @@
virtual URLFetcher* CreateURLFetcher(int id,
const GURL& url,
URLFetcher::RequestType request_type,
- URLFetcher::Delegate* d);
+ URLFetcher::Delegate* d) OVERRIDE;
TestURLFetcher* GetFetcherByID(int id) const;
void RemoveFetcherFromMap(int id);
@@ -197,7 +200,7 @@
virtual URLFetcher* CreateURLFetcher(int id,
const GURL& url,
URLFetcher::RequestType request_type,
- URLFetcher::Delegate* d);
+ URLFetcher::Delegate* d) OVERRIDE;
// Sets the fake response for a given URL. If success is true we will serve
// an HTTP/200 and an HTTP/500 otherwise. The |response_data| may be empty.
@@ -230,7 +233,7 @@
virtual URLFetcher* CreateURLFetcher(int id,
const GURL& url,
URLFetcher::RequestType request_type,
- URLFetcher::Delegate* d);
+ URLFetcher::Delegate* d) OVERRIDE;
};

Powered by Google App Engine
This is Rietveld 408576698