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

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

Issue 19442002: Convert to new WebIDBTypes enums and accessors (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix content/common/DEPS Created 7 years, 5 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/proxy_webidbcursor_impl.cc ('k') | content/common/DEPS » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/child/indexed_db/proxy_webidbcursor_impl_unittest.cc
diff --git a/content/child/indexed_db/proxy_webidbcursor_impl_unittest.cc b/content/child/indexed_db/proxy_webidbcursor_impl_unittest.cc
index 2dcc619081d2f80f746e24c6e1b287260eb665a0..72daa35abf101b2f24192eb262b6fadb05bec211 100644
--- a/content/child/indexed_db/proxy_webidbcursor_impl_unittest.cc
+++ b/content/child/indexed_db/proxy_webidbcursor_impl_unittest.cc
@@ -17,6 +17,7 @@ using WebKit::WebData;
using WebKit::WebIDBCallbacks;
using WebKit::WebIDBDatabase;
using WebKit::WebIDBKey;
+using WebKit::WebIDBKeyTypeNumber;
namespace content {
@@ -133,7 +134,7 @@ TEST(RendererWebIDBCursorImplTest, PrefetchTest) {
std::vector<IndexedDBKey> primary_keys(prefetch_count);
std::vector<WebData> values(prefetch_count);
for (int i = 0; i < prefetch_count; ++i) {
- keys.push_back(IndexedDBKey(expected_key + i, WebIDBKey::NumberType));
+ keys.push_back(IndexedDBKey(expected_key + i, WebIDBKeyTypeNumber));
}
cursor.SetPrefetchData(keys, primary_keys, values);
@@ -148,7 +149,7 @@ TEST(RendererWebIDBCursorImplTest, PrefetchTest) {
EXPECT_EQ(continue_calls, dispatcher.continue_calls());
EXPECT_EQ(repetitions + 1, dispatcher.prefetch_calls());
- EXPECT_EQ(WebIDBKey::NumberType, key.type());
+ EXPECT_EQ(WebIDBKeyTypeNumber, key.type());
EXPECT_EQ(expected_key++, key.number());
}
}
« no previous file with comments | « content/child/indexed_db/proxy_webidbcursor_impl.cc ('k') | content/common/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698