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

Unified Diff: content/child/indexed_db/indexed_db_dispatcher_unittest.cc

Issue 229483003: WebBlobInfo plumbing for WebIDBDatabaseImpl::put. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rolled in Josh's feedback. Created 6 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
« no previous file with comments | « content/child/indexed_db/indexed_db_dispatcher.cc ('k') | content/child/indexed_db/webidbdatabase_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/child/indexed_db/indexed_db_dispatcher_unittest.cc
diff --git a/content/child/indexed_db/indexed_db_dispatcher_unittest.cc b/content/child/indexed_db/indexed_db_dispatcher_unittest.cc
index 1df68d80c94006894a72ea30adfb4b4d8d2b06e4..aa9f1f6697be29db62069fd644b205f0e6910079 100644
--- a/content/child/indexed_db/indexed_db_dispatcher_unittest.cc
+++ b/content/child/indexed_db/indexed_db_dispatcher_unittest.cc
@@ -13,9 +13,11 @@
#include "content/common/indexed_db/indexed_db_messages.h"
#include "ipc/ipc_sync_message_filter.h"
#include "testing/gtest/include/gtest/gtest.h"
+#include "third_party/WebKit/public/platform/WebBlobInfo.h"
#include "third_party/WebKit/public/platform/WebData.h"
#include "third_party/WebKit/public/platform/WebIDBCallbacks.h"
+using blink::WebBlobInfo;
using blink::WebData;
using blink::WebIDBCallbacks;
using blink::WebIDBCursor;
@@ -71,6 +73,7 @@ class IndexedDBDispatcherTest : public testing::Test {
TEST_F(IndexedDBDispatcherTest, ValueSizeTest) {
const std::vector<char> data(kMaxIDBValueSizeInBytes + 1);
const WebData value(&data.front(), data.size());
+ const WebVector<WebBlobInfo> web_blob_info;
const int32 ipc_dummy_id = -1;
const int64 transaction_id = 1;
const int64 object_store_id = 2;
@@ -82,6 +85,7 @@ TEST_F(IndexedDBDispatcherTest, ValueSizeTest) {
transaction_id,
object_store_id,
value,
+ web_blob_info,
key,
WebIDBDatabase::AddOrUpdate,
&callbacks,
@@ -96,6 +100,7 @@ TEST_F(IndexedDBDispatcherTest, KeyAndValueSizeTest) {
const std::vector<char> data(kMaxIDBValueSizeInBytes - kKeySize);
const WebData value(&data.front(), data.size());
+ const WebVector<WebBlobInfo> web_blob_info;
const IndexedDBKey key(
base::string16(kKeySize / sizeof(base::string16::value_type), 'x'));
@@ -109,6 +114,7 @@ TEST_F(IndexedDBDispatcherTest, KeyAndValueSizeTest) {
transaction_id,
object_store_id,
value,
+ web_blob_info,
key,
WebIDBDatabase::AddOrUpdate,
&callbacks,
@@ -124,11 +130,11 @@ class CursorCallbacks : public WebIDBCallbacks {
public:
CursorCallbacks(scoped_ptr<WebIDBCursor>* cursor) : cursor_(cursor) {}
- virtual void onSuccess(const WebData&) {}
+ virtual void onSuccess(const WebData&) OVERRIDE {}
virtual void onSuccess(WebIDBCursor* cursor,
const WebIDBKey& key,
const WebIDBKey& primaryKey,
- const WebData& value) {
+ const WebData& value) OVERRIDE {
cursor_->reset(cursor);
}
« no previous file with comments | « content/child/indexed_db/indexed_db_dispatcher.cc ('k') | content/child/indexed_db/webidbdatabase_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698