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

Unified Diff: chrome/browser/sync_file_system/local/syncable_file_operation_runner_unittest.cc

Issue 23223003: Chromium Blob hacking (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 3 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/sync_file_system/local/syncable_file_operation_runner_unittest.cc
diff --git a/chrome/browser/sync_file_system/local/syncable_file_operation_runner_unittest.cc b/chrome/browser/sync_file_system/local/syncable_file_operation_runner_unittest.cc
index 6a57316e5523fc43be0074c8928b69e919297351..7daf0e3e659f716eccacb665ff5f2b3c0bdb479c 100644
--- a/chrome/browser/sync_file_system/local/syncable_file_operation_runner_unittest.cc
+++ b/chrome/browser/sync_file_system/local/syncable_file_operation_runner_unittest.cc
@@ -287,16 +287,15 @@ TEST_F(SyncableFileOperationRunnerTest, CopyAndMove) {
TEST_F(SyncableFileOperationRunnerTest, Write) {
EXPECT_EQ(base::PLATFORM_FILE_OK, file_system_.CreateFile(URL(kFile)));
- const GURL kBlobURL("blob:foo");
const std::string kData("Lorem ipsum.");
- ScopedTextBlob blob(url_request_context_, kBlobURL, kData);
+ ScopedTextBlob blob(url_request_context_, "blob:foo", kData);
sync_status()->StartSyncing(URL(kFile));
ResetCallbackStatus();
file_system_.operation_runner()->Write(
&url_request_context_,
- URL(kFile), kBlobURL, 0, GetWriteCallback(FROM_HERE));
+ URL(kFile), blob.GetBlobDataHandle(), 0, GetWriteCallback(FROM_HERE));
base::MessageLoop::current()->RunUntilIdle();
EXPECT_EQ(0, callback_count_);

Powered by Google App Engine
This is Rietveld 408576698