| Index: chrome/browser/sync_file_system/local/local_file_change_tracker_unittest.cc
|
| diff --git a/chrome/browser/sync_file_system/local/local_file_change_tracker_unittest.cc b/chrome/browser/sync_file_system/local/local_file_change_tracker_unittest.cc
|
| index 23cd37dd4e1f8ebbeb77cfe8018e57131ab58f8a..de0128d8db9bc70e61631b89a4180517b7a3d890 100644
|
| --- a/chrome/browser/sync_file_system/local/local_file_change_tracker_unittest.cc
|
| +++ b/chrome/browser/sync_file_system/local/local_file_change_tracker_unittest.cc
|
| @@ -205,10 +205,9 @@ TEST_F(LocalFileChangeTrackerTest, RestoreCreateAndModifyChanges) {
|
| file_system_.GetChangedURLsInTracker(&urls);
|
| ASSERT_EQ(0U, urls.size());
|
|
|
| - const GURL blob_url("blob:test");
|
| const std::string kData("Lorem ipsum.");
|
| MockBlobURLRequestContext url_request_context(file_system_context());
|
| - ScopedTextBlob blob(url_request_context, blob_url, kData);
|
| + ScopedTextBlob blob(url_request_context, "blob_id:test", kData);
|
|
|
| // Create files and nested directories.
|
| EXPECT_EQ(base::PLATFORM_FILE_OK,
|
| @@ -223,9 +222,9 @@ TEST_F(LocalFileChangeTrackerTest, RestoreCreateAndModifyChanges) {
|
| file_system_.TruncateFile(URL(kPath3), 1)); // Modifies the file.
|
| EXPECT_EQ(base::PLATFORM_FILE_OK,
|
| file_system_.CreateFile(URL(kPath4))); // Creates another file.
|
| - EXPECT_EQ(static_cast<int64>(kData.size()),
|
| + EXPECT_EQ(static_cast<int64>(kData.size()), // Modifies the file.
|
| file_system_.Write(&url_request_context,
|
| - URL(kPath4), blob_url)); // Modifies the file.
|
| + URL(kPath4), blob.GetBlobDataHandle()));
|
|
|
| // Verify the changes.
|
| file_system_.GetChangedURLsInTracker(&urls);
|
| @@ -357,10 +356,9 @@ TEST_F(LocalFileChangeTrackerTest, RestoreCopyChanges) {
|
| file_system_.GetChangedURLsInTracker(&urls);
|
| ASSERT_EQ(0U, urls.size());
|
|
|
| - const GURL blob_url("blob:test");
|
| const std::string kData("Lorem ipsum.");
|
| MockBlobURLRequestContext url_request_context(file_system_context());
|
| - ScopedTextBlob blob(url_request_context, blob_url, kData);
|
| + ScopedTextBlob blob(url_request_context, "blob_id:test", kData);
|
|
|
| // Create files and nested directories.
|
| EXPECT_EQ(base::PLATFORM_FILE_OK,
|
| @@ -376,8 +374,8 @@ TEST_F(LocalFileChangeTrackerTest, RestoreCopyChanges) {
|
| EXPECT_EQ(base::PLATFORM_FILE_OK,
|
| file_system_.CreateFile(URL(kPath4))); // Creates another file.
|
| EXPECT_EQ(static_cast<int64>(kData.size()),
|
| - file_system_.Write(&url_request_context,
|
| - URL(kPath4), blob_url)); // Modifies the file.
|
| + file_system_.Write(&url_request_context, // Modifies the file.
|
| + URL(kPath4), blob.GetBlobDataHandle()));
|
|
|
| // Verify we have 5 changes for preparation.
|
| file_system_.GetChangedURLsInTracker(&urls);
|
|
|