| Index: content/test/test_url_fetcher_factory.h
|
| ===================================================================
|
| --- content/test/test_url_fetcher_factory.h (revision 95804)
|
| +++ content/test/test_url_fetcher_factory.h (working copy)
|
| @@ -73,7 +73,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 { return original_url_; }
|
|
|
| // Returns the data uploaded on this URLFetcher.
|
| const std::string& upload_data() const { return URLFetcher::upload_data(); }
|
| @@ -85,15 +85,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 +102,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_;
|
|
|