diff options
Diffstat (limited to 'content/test')
-rw-r--r-- | content/test/test_url_fetcher_factory.cc | 3 | ||||
-rw-r--r-- | content/test/test_url_fetcher_factory.h | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/content/test/test_url_fetcher_factory.cc b/content/test/test_url_fetcher_factory.cc index 41d1e31..d8deeec 100644 --- a/content/test/test_url_fetcher_factory.cc +++ b/content/test/test_url_fetcher_factory.cc @@ -80,7 +80,8 @@ void TestURLFetcher::AddExtraRequestHeader(const std::string& header_line) { fake_extra_request_headers_.AddHeaderFromString(header_line); } -void TestURLFetcher::GetExtraRequestHeaders(net::HttpRequestHeaders* headers) { +void TestURLFetcher::GetExtraRequestHeaders( + net::HttpRequestHeaders* headers) const { *headers = fake_extra_request_headers_; } diff --git a/content/test/test_url_fetcher_factory.h b/content/test/test_url_fetcher_factory.h index cf809d7..c26a666 100644 --- a/content/test/test_url_fetcher_factory.h +++ b/content/test/test_url_fetcher_factory.h @@ -77,7 +77,7 @@ class TestURLFetcher : public content::URLFetcher { const std::string& extra_request_headers) OVERRIDE; virtual void AddExtraRequestHeader(const std::string& header_line) OVERRIDE; virtual void GetExtraRequestHeaders( - net::HttpRequestHeaders* headers) OVERRIDE; + net::HttpRequestHeaders* headers) const OVERRIDE; virtual void SetRequestContext( net::URLRequestContextGetter* request_context_getter) OVERRIDE; virtual void AssociateWithRenderView(const GURL& first_party_for_cookies, |