| Index: chrome/common/net/url_fetcher_unittest.cc
|
| diff --git a/chrome/common/net/url_fetcher_unittest.cc b/chrome/common/net/url_fetcher_unittest.cc
|
| index d0a1f963b64f0b977ad056ffd56de3f61603231d..76265e8bd1dd1834291c81d7c7f95383b89eddc1 100644
|
| --- a/chrome/common/net/url_fetcher_unittest.cc
|
| +++ b/chrome/common/net/url_fetcher_unittest.cc
|
| @@ -315,6 +315,15 @@ class URLFetcherTempFileTest : public URLFetcherTest {
|
| // URLFetcher::Delegate
|
| virtual void OnURLFetchComplete(const URLFetcher* source);
|
|
|
| + // This obsolete signature should not be used, but must be present
|
| + // to make clang happy.
|
| + virtual void OnURLFetchComplete(const URLFetcher* source,
|
| + const GURL& url,
|
| + const net::URLRequestStatus& status,
|
| + int response_code,
|
| + const net::ResponseCookies& cookies,
|
| + const std::string& data);
|
| +
|
| virtual void CreateFetcher(const GURL& url);
|
|
|
| protected:
|
| @@ -640,6 +649,17 @@ void URLFetcherTempFileTest::OnURLFetchComplete(const URLFetcher* source) {
|
| io_message_loop_proxy()->PostTask(FROM_HERE, new MessageLoop::QuitTask());
|
| }
|
|
|
| +void URLFetcherTempFileTest::OnURLFetchComplete(
|
| + const URLFetcher* source,
|
| + const GURL& url,
|
| + const net::URLRequestStatus& status,
|
| + int response_code,
|
| + const net::ResponseCookies& cookies,
|
| + const std::string& data) {
|
| + NOTREACHED();
|
| +}
|
| +
|
| +
|
| TEST_F(URLFetcherTest, SameThreadsTest) {
|
| net::TestServer test_server(net::TestServer::TYPE_HTTP, FilePath(kDocRoot));
|
| ASSERT_TRUE(test_server.Start());
|
|
|