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

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

Issue 11828054: Remove IPC code for old methods. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Fix merge conflicts Created 7 years, 11 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/common/indexed_db/indexed_db_dispatcher.cc ('k') | content/common/indexed_db/indexed_db_messages.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/indexed_db/indexed_db_dispatcher_unittest.cc
diff --git a/content/common/indexed_db/indexed_db_dispatcher_unittest.cc b/content/common/indexed_db/indexed_db_dispatcher_unittest.cc
index 713df859f3a07ea2651b3029af9b8cfcd63268e8..beb3d3324db49418c82bf0336a9c37317cc423ca 100644
--- a/content/common/indexed_db/indexed_db_dispatcher_unittest.cc
+++ b/content/common/indexed_db/indexed_db_dispatcher_unittest.cc
@@ -27,22 +27,23 @@ class FakeWebIDBTransaction : public WebKit::WebIDBTransaction {
TEST(IndexedDBDispatcherTest, DISABLED_ValueSizeTest) {
string16 data;
data.resize(kMaxIDBValueSizeInBytes / sizeof(char16) + 1, 'x');
- const bool kIsNull = false;
- const bool kIsInvalid = false;
- const SerializedScriptValue value(kIsNull, kIsInvalid, data);
+ WebKit::WebVector<unsigned char> value;
const int32 ipc_dummy_id = -1;
+ const int64 transaction_id = 1;
+ const int64 object_store_id = 2;
{
IndexedDBDispatcher dispatcher;
IndexedDBKey key;
key.SetNumber(0);
- dispatcher.RequestIDBObjectStorePut(
- value,
+ dispatcher.RequestIDBDatabasePut(
+ ipc_dummy_id,
+ transaction_id,
+ object_store_id,
+ &value,
key,
- WebKit::WebIDBObjectStore::AddOrUpdate,
+ WebKit::WebIDBDatabase::AddOrUpdate,
static_cast<WebKit::WebIDBCallbacks*>(NULL),
- ipc_dummy_id,
- FakeWebIDBTransaction(),
WebVector<long long>(),
WebVector<WebVector<WebKit::WebIDBKey> >());
}
« no previous file with comments | « content/common/indexed_db/indexed_db_dispatcher.cc ('k') | content/common/indexed_db/indexed_db_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698