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

Unified Diff: webkit/fileapi/syncable/local_file_change_tracker_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/local_file_change_tracker_unittest.cc
===================================================================
--- webkit/fileapi/syncable/local_file_change_tracker_unittest.cc (revision 186525)
+++ webkit/fileapi/syncable/local_file_change_tracker_unittest.cc (working copy)
@@ -15,6 +15,7 @@
#include "base/stl_util.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "webkit/blob/mock_blob_url_request_context.h"
+#include "webkit/blob/blob_storage_context.h"
#include "webkit/fileapi/file_system_context.h"
#include "webkit/fileapi/file_system_task_runners.h"
#include "webkit/fileapi/syncable/canned_syncable_file_system.h"
@@ -201,10 +202,9 @@
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,
@@ -220,8 +220,8 @@
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 the changes.
file_system_.GetChangedURLsInTracker(&urls);

Powered by Google App Engine
This is Rietveld 408576698