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

Unified Diff: chrome/common/net/url_fetcher_unittest.cc

Issue 7062006: clang :( (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 7 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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());
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698