Index: content/browser/download/base_file.h |
diff --git a/content/browser/download/base_file.h b/content/browser/download/base_file.h |
index d07fb1d561eab8cc8598c49258fc077bf26255d2..ff119d4c7403bf99357d612ab9a54ca145eded86 100644 |
--- a/content/browser/download/base_file.h |
+++ b/content/browser/download/base_file.h |
@@ -65,6 +65,7 @@ class BaseFile { |
virtual std::string DebugString() const; |
protected: |
+ virtual void CreateFileStream(); // For testing. |
bool Open(); |
void Close(); |
@@ -72,6 +73,9 @@ class BaseFile { |
FilePath full_path_; |
private: |
+ friend class BaseFileTest; |
+ friend class DownloadFileWithMockStream; |
+ |
static const size_t kSha256HashLen = 32; |
// Source URL for the file being downloaded. |