Index: webkit/fileapi/syncable/syncable_file_operation_runner_unittest.cc |
=================================================================== |
--- webkit/fileapi/syncable/syncable_file_operation_runner_unittest.cc (revision 186525) |
+++ webkit/fileapi/syncable/syncable_file_operation_runner_unittest.cc (working copy) |
@@ -9,6 +9,7 @@ |
#include "base/memory/scoped_ptr.h" |
#include "base/message_loop.h" |
#include "testing/gtest/include/gtest/gtest.h" |
+#include "webkit/blob/blob_storage_context.h" |
#include "webkit/blob/mock_blob_url_request_context.h" |
#include "webkit/fileapi/file_system_context.h" |
#include "webkit/fileapi/syncable/canned_syncable_file_system.h" |
@@ -274,16 +275,15 @@ |
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_id:foo", kData); |
sync_status()->StartSyncing(URL(kFile)); |
ResetCallbackStatus(); |
file_system_.NewOperation()->Write( |
&url_request_context_, |
- URL(kFile), kBlobURL, 0, GetWriteCallback(FROM_HERE)); |
+ URL(kFile), blob.GetBlobDataHandle(), 0, GetWriteCallback(FROM_HERE)); |
MessageLoop::current()->RunUntilIdle(); |
EXPECT_EQ(0, callback_count_); |