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

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

Issue 320833002: [IndexedDB] Use consistent enums on both sides of IPC. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase patch. Created 6 years, 6 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 6bc4d5df4cdaea2ef325723e5cdf8b51febcfc4a..75ebc64db9cffcf09955ed5c80490a98ce230e7a 100644
--- a/content/child/indexed_db/indexed_db_dispatcher_unittest.cc
+++ b/content/child/indexed_db/indexed_db_dispatcher_unittest.cc
@@ -93,7 +93,7 @@ TEST_F(IndexedDBDispatcherTest, ValueSizeTest) {
value,
web_blob_info,
key,
- WebIDBDatabase::AddOrUpdate,
+ blink::WebIDBPutModeAddOrUpdate,
&callbacks,
WebVector<long long>(),
WebVector<WebVector<WebIDBKey> >());
@@ -122,7 +122,7 @@ TEST_F(IndexedDBDispatcherTest, KeyAndValueSizeTest) {
value,
web_blob_info,
key,
- WebIDBDatabase::AddOrUpdate,
+ blink::WebIDBPutModeAddOrUpdate,
&callbacks,
WebVector<long long>(),
WebVector<WebVector<WebIDBKey> >());
@@ -160,7 +160,8 @@ TEST_F(IndexedDBDispatcherTest, CursorTransactionId) {
const int64 transaction_id = 1234;
const int64 object_store_id = 2;
const int32 index_id = 3;
- const WebIDBCursor::Direction direction = WebIDBCursor::Next;
+ const blink::WebIDBCursorDirection direction =
+ blink::WebIDBCursorDirectionNext;
const bool key_only = false;
MockDispatcher dispatcher(thread_safe_sender_.get());
@@ -178,7 +179,7 @@ TEST_F(IndexedDBDispatcherTest, CursorTransactionId) {
IndexedDBKeyRange(),
direction,
key_only,
- blink::WebIDBDatabase::NormalTask,
+ blink::WebIDBTaskTypeNormal,
new CursorCallbacks(&cursor));
// Verify that the transaction id was captured.
@@ -219,7 +220,7 @@ TEST_F(IndexedDBDispatcherTest, CursorTransactionId) {
IndexedDBKeyRange(),
direction,
key_only,
- blink::WebIDBDatabase::NormalTask,
+ blink::WebIDBTaskTypeNormal,
new CursorCallbacks(&cursor));
// Verify that the transaction id was captured.
« 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