summaryrefslogtreecommitdiff
path: root/chromium/components/download/internal/common/download_file_unittest.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/components/download/internal/common/download_file_unittest.cc')
-rw-r--r--chromium/components/download/internal/common/download_file_unittest.cc10
1 files changed, 5 insertions, 5 deletions
diff --git a/chromium/components/download/internal/common/download_file_unittest.cc b/chromium/components/download/internal/common/download_file_unittest.cc
index 91c9d212691..f0f2204d6a5 100644
--- a/chromium/components/download/internal/common/download_file_unittest.cc
+++ b/chromium/components/download/internal/common/download_file_unittest.cc
@@ -201,7 +201,7 @@ class DownloadFileTest : public testing::Test {
bool calculate_hash,
const DownloadItem::ReceivedSlices& received_slices) {
// There can be only one.
- DCHECK(!download_file_.get());
+ DCHECK(!download_file_);
input_stream_ = new StrictMock<MockInputStream>();
@@ -721,8 +721,8 @@ void TestRenameCompletionCallback(const base::Closure& closure,
// succeed.
//
// Note that there is only one queue of tasks to run, and that is in the tests'
-// base::MessageLoop::current(). Each RunLoop processes that queue until it sees
-// a QuitClosure() targeted at itself, at which point it stops processing.
+// base::MessageLoopCurrent::Get(). Each RunLoop processes that queue until it
+// sees a QuitClosure() targeted at itself, at which point it stops processing.
TEST_P(DownloadFileTestWithRename, RenameWithErrorRetry) {
ASSERT_TRUE(CreateDownloadFile(0, true));
base::FilePath initial_path(download_file_->FullPath());
@@ -1042,8 +1042,8 @@ TEST_F(DownloadFileTest, SecondStreamStartingOffsetAlreadyWritten) {
.RetiresOnSaturation();
download_file_->AddInputStream(
- std::unique_ptr<MockInputStream>(additional_streams_[0]), 0,
- DownloadSaveInfo::kLengthFullContent);
+ std::unique_ptr<MockInputStream>(additional_streams_[0]),
+ strlen(kTestData1), DownloadSaveInfo::kLengthFullContent);
// The stream should get terminated and reset the callback.
EXPECT_TRUE(sink_callback_.is_null());