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

Unified Diff: webkit/fileapi/syncable/syncable_file_operation_runner_unittest.cc

Issue 11416382: ********** Content tests with blob hacking. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 7 years, 8 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: 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_);
« no previous file with comments | « webkit/fileapi/syncable/local_file_change_tracker_unittest.cc ('k') | webkit/fileapi/webfilewriter_base_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698