Home | History | Annotate | Download | only in download

Lines Matching refs:FILE

3 // found in the LICENSE file.
36 file_thread_(BrowserThread::FILE, &loop_) {
57 virtual void CreateDownloadFile(scoped_ptr<DownloadFile>* file, int offset) {
63 file->reset(new DownloadFile(&info, download_manager_));
66 virtual void DestroyDownloadFile(scoped_ptr<DownloadFile>* file, int offset) {
67 EXPECT_EQ(kDummyDownloadId + offset, (*file)->id());
68 EXPECT_EQ(download_manager_, (*file)->GetDownloadManager());
69 EXPECT_FALSE((*file)->in_progress());
71 (*file)->bytes_so_far());
75 EXPECT_TRUE(file_util::ReadFileToString((*file)->full_path(),
81 file->reset();
84 void AppendDataToFile(scoped_ptr<DownloadFile>* file,
86 EXPECT_TRUE((*file)->in_progress());
87 (*file)->AppendDataToFile(data.data(), data.size());
90 (*file)->bytes_so_far());
109 // File thread to satisfy debug checks in DownloadFile.
112 // Keep track of what data should be saved to the disk file.
117 "Let's write some data to the file!\n";
127 // Rename the file before any data is downloaded, after some has, after it all
139 // Rename the file before downloading any data.
152 // Rename the file after downloading some data.
163 // Rename the file after downloading all the data.
172 // Should not be able to get the hash until the file is closed.
178 // Rename the file after downloading all the data and closing the file.