| Index: content/browser/download/download_file_unittest.cc
|
| diff --git a/content/browser/download/download_file_unittest.cc b/content/browser/download/download_file_unittest.cc
|
| index 2fcb51cde5f481cd3074d32a5cc7d1829a06e02f..14c4e35aa2235b7a650034344961ea5fba925411 100644
|
| --- a/content/browser/download/download_file_unittest.cc
|
| +++ b/content/browser/download/download_file_unittest.cc
|
| @@ -73,7 +73,7 @@ class DownloadFileTest : public testing::Test {
|
| info.save_info.file_stream = file_stream_;
|
| file->reset(
|
| new DownloadFileImpl(&info, new DownloadRequestHandle(),
|
| - download_manager_));
|
| + download_manager_, Pickle()));
|
| }
|
|
|
| virtual void DestroyDownloadFile(scoped_ptr<DownloadFile>* file, int offset) {
|
| @@ -181,10 +181,6 @@ TEST_F(DownloadFileTest, RenameFileFinal) {
|
| EXPECT_FALSE(file_util::PathExists(path_2));
|
| EXPECT_TRUE(file_util::PathExists(path_3));
|
|
|
| - // Should not be able to get the hash until the file is closed.
|
| - std::string hash;
|
| - EXPECT_FALSE(download_file_->GetSha256Hash(&hash));
|
| -
|
| download_file_->Finish();
|
|
|
| // Rename the file after downloading all the data and closing the file.
|
| @@ -197,6 +193,7 @@ TEST_F(DownloadFileTest, RenameFileFinal) {
|
| EXPECT_TRUE(file_util::PathExists(path_4));
|
|
|
| // Check the hash.
|
| + std::string hash;
|
| EXPECT_TRUE(download_file_->GetSha256Hash(&hash));
|
| EXPECT_EQ(kDataHash, base::HexEncode(hash.data(), hash.size()));
|
|
|
|
|