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

Side by Side Diff: net/url_request/url_fetcher_impl_unittest.cc

Issue 11419224: Add missing (and remove superfluous) 'explicit' from constructors. Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase + remove non-straightforward changes Created 7 years, 11 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « net/tools/gdig/file_net_log.h ('k') | net/url_request/url_request_job.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "net/url_request/url_fetcher_impl.h" 5 #include "net/url_request/url_fetcher_impl.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/file_util.h" 10 #include "base/file_util.h"
(...skipping 392 matching lines...) Expand 10 before | Expand all | Expand 10 after
403 // URLFetcherDelegate: 403 // URLFetcherDelegate:
404 virtual void OnURLFetchComplete(const URLFetcher* source) OVERRIDE; 404 virtual void OnURLFetchComplete(const URLFetcher* source) OVERRIDE;
405 405
406 void CancelRequest(); 406 void CancelRequest();
407 }; 407 };
408 408
409 // Version of TestURLRequestContext that posts a Quit task to the IO 409 // Version of TestURLRequestContext that posts a Quit task to the IO
410 // thread once it is deleted. 410 // thread once it is deleted.
411 class CancelTestURLRequestContext : public ThrottlingTestURLRequestContext { 411 class CancelTestURLRequestContext : public ThrottlingTestURLRequestContext {
412 public: 412 public:
413 explicit CancelTestURLRequestContext() { 413 CancelTestURLRequestContext() {
414 } 414 }
415 415
416 private: 416 private:
417 virtual ~CancelTestURLRequestContext() { 417 virtual ~CancelTestURLRequestContext() {
418 // The d'tor should execute in the IO thread. Post the quit task to the 418 // The d'tor should execute in the IO thread. Post the quit task to the
419 // current thread. 419 // current thread.
420 MessageLoop::current()->PostTask(FROM_HERE, MessageLoop::QuitClosure()); 420 MessageLoop::current()->PostTask(FROM_HERE, MessageLoop::QuitClosure());
421 } 421 }
422 }; 422 };
423 423
(...skipping 1127 matching lines...) Expand 10 before | Expand all | Expand 10 after
1551 MessageLoop::current()->Run(); // OnURLFetchComplete() will Quit(). 1551 MessageLoop::current()->Run(); // OnURLFetchComplete() will Quit().
1552 1552
1553 MessageLoop::current()->RunUntilIdle(); 1553 MessageLoop::current()->RunUntilIdle();
1554 ASSERT_FALSE(file_util::PathExists(file_path_)) 1554 ASSERT_FALSE(file_util::PathExists(file_path_))
1555 << file_path_.value() << " not removed."; 1555 << file_path_.value() << " not removed.";
1556 } 1556 }
1557 1557
1558 } // namespace 1558 } // namespace
1559 1559
1560 } // namespace net 1560 } // namespace net
OLDNEW
« no previous file with comments | « net/tools/gdig/file_net_log.h ('k') | net/url_request/url_request_job.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698