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

Unified Diff: content/common/indexed_db/indexed_db_key_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
Index: content/common/indexed_db/indexed_db_key_unittest.cc
diff --git a/content/common/indexed_db/indexed_db_key_unittest.cc b/content/common/indexed_db/indexed_db_key_unittest.cc
index 6bab2a447e7ab453610c67baab8307b77fbc7929..f6ff403fba5f624b7123a8440487f433711bf191 100644
--- a/content/common/indexed_db/indexed_db_key_unittest.cc
+++ b/content/common/indexed_db/indexed_db_key_unittest.cc
@@ -27,17 +27,17 @@ TEST(IndexedDBKeyTest, KeySizeEstimates) {
web_keys.push_back(WebIDBKey::createInvalid());
estimates.push_back(static_cast<size_t>(16)); // Overhead.
- keys.push_back(IndexedDBKey(WebIDBKey::NullType));
+ keys.push_back(IndexedDBKey(WebKit::WebIDBKeyTypeNull));
web_keys.push_back(WebIDBKey::createNull());
estimates.push_back(static_cast<size_t>(16));
double number = 3.14159;
- keys.push_back(IndexedDBKey(number, WebIDBKey::NumberType));
+ keys.push_back(IndexedDBKey(number, WebKit::WebIDBKeyTypeNumber));
web_keys.push_back(WebIDBKey::createNumber(number));
estimates.push_back(static_cast<size_t>(24)); // Overhead + sizeof(double).
double date = 1370884329.0;
- keys.push_back(IndexedDBKey(date, WebIDBKey::DateType));
+ keys.push_back(IndexedDBKey(date, WebKit::WebIDBKeyTypeDate));
web_keys.push_back(WebIDBKey::createDate(date));
estimates.push_back(static_cast<size_t>(24)); // Overhead + sizeof(double).
@@ -52,7 +52,7 @@ TEST(IndexedDBKeyTest, KeySizeEstimates) {
WebVector<WebIDBKey> web_array(static_cast<size_t>(array_size));
double value = 123.456;
for (size_t i = 0; i < array_size; ++i) {
- array.push_back(IndexedDBKey(value, WebIDBKey::NumberType));
+ array.push_back(IndexedDBKey(value, WebKit::WebIDBKeyTypeNumber));
web_array[i] = WebIDBKey::createNumber(value);
}
keys.push_back(IndexedDBKey(array));
« no previous file with comments | « content/common/indexed_db/indexed_db_key_range.cc ('k') | content/common/indexed_db/indexed_db_param_traits.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698