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

Unified Diff: chrome/browser/drive/fake_drive_service_unittest.cc

Issue 18506002: drive/syncFS: Switch to ID based download URL. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 6 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: chrome/browser/drive/fake_drive_service_unittest.cc
diff --git a/chrome/browser/drive/fake_drive_service_unittest.cc b/chrome/browser/drive/fake_drive_service_unittest.cc
index 10f192037ba6c2646187643018370f97d54450c3..26334d5b15566cfc2cb758b2e4239b06ff2b28df 100644
--- a/chrome/browser/drive/fake_drive_service_unittest.cc
+++ b/chrome/browser/drive/fake_drive_service_unittest.cc
@@ -862,7 +862,6 @@ TEST_F(FakeDriveServiceTest, DownloadFile_ExistingFile) {
std::vector<test_util::ProgressInfo> download_progress_values;
- const GURL kContentUrl("https://file_content_url/");
const base::FilePath kOutputFilePath =
temp_dir.path().AppendASCII("whatever.txt");
GDataErrorCode error = GDATA_OTHER_ERROR;
@@ -870,7 +869,7 @@ TEST_F(FakeDriveServiceTest, DownloadFile_ExistingFile) {
test_util::TestGetContentCallback get_content_callback;
fake_service_.DownloadFile(
kOutputFilePath,
- kContentUrl,
+ "file:2_file_resource_id",
test_util::CreateCopyResultCallback(&error, &output_file_path),
get_content_callback.callback(),
base::Bind(&test_util::AppendProgressCallbackResult,
@@ -897,14 +896,13 @@ TEST_F(FakeDriveServiceTest, DownloadFile_NonexistingFile) {
base::ScopedTempDir temp_dir;
ASSERT_TRUE(temp_dir.CreateUniqueTempDir());
- const GURL kContentUrl("https://non_existing_content_url/");
const base::FilePath kOutputFilePath =
temp_dir.path().AppendASCII("whatever.txt");
GDataErrorCode error = GDATA_OTHER_ERROR;
base::FilePath output_file_path;
fake_service_.DownloadFile(
kOutputFilePath,
- kContentUrl,
+ "file:non_existent_file_resource_id",
test_util::CreateCopyResultCallback(&error, &output_file_path),
GetContentCallback(),
ProgressCallback());
@@ -921,14 +919,13 @@ TEST_F(FakeDriveServiceTest, DownloadFile_Offline) {
base::ScopedTempDir temp_dir;
ASSERT_TRUE(temp_dir.CreateUniqueTempDir());
- const GURL kContentUrl("https://file_content_url/");
const base::FilePath kOutputFilePath =
temp_dir.path().AppendASCII("whatever.txt");
GDataErrorCode error = GDATA_OTHER_ERROR;
base::FilePath output_file_path;
fake_service_.DownloadFile(
kOutputFilePath,
- kContentUrl,
+ "file:2_file_resource_id",
test_util::CreateCopyResultCallback(&error, &output_file_path),
GetContentCallback(),
ProgressCallback());

Powered by Google App Engine
This is Rietveld 408576698