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

Unified Diff: content/browser/download/download_file_manager.h

Issue 9426029: Test file errors in downloads. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Refactored per Chris' comments Created 8 years, 10 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
Index: content/browser/download/download_file_manager.h
diff --git a/content/browser/download/download_file_manager.h b/content/browser/download/download_file_manager.h
index b5f1654c4a74bf5323f64988d9fc932bb992fe76..313c69eae5957279a3214b9c0661b2c88f8a3962 100644
--- a/content/browser/download/download_file_manager.h
+++ b/content/browser/download/download_file_manager.h
@@ -144,6 +144,11 @@ class CONTENT_EXPORT DownloadFileManager
return downloads_.size();
}
+ // This is only for unit tests.
cbentzel 2012/02/28 14:51:41 Comment doesn't totally seem required given the Fo
Randy Smith (Not in Mondays) 2012/02/28 22:06:13 Agreed with Chris. (Personal opinion is that we d
ahendrickson 2012/03/01 09:17:32 Removed comment.
ahendrickson 2012/03/01 09:17:32 Done.
+ void SetFileFactoryForTesting(DownloadFileFactory* file_factory) {
cbentzel 2012/02/28 14:51:41 This should pass in a scoped_ptr argument so trans
ahendrickson 2012/03/01 09:17:32 Done.
+ download_file_factory_.reset(file_factory);
+ }
+
private:
friend class base::RefCountedThreadSafe<DownloadFileManager>;
friend class DownloadFileManagerTest;

Powered by Google App Engine
This is Rietveld 408576698