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

Side by Side Diff: content/browser/indexed_db/indexed_db_leveldb_coding_unittest.cc

Issue 1706413002: Indexed DB: Rename "int version" to "version" (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased Created 4 years, 9 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/browser/indexed_db/indexed_db_leveldb_coding.h" 5 #include "content/browser/indexed_db/indexed_db_leveldb_coding.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <limits> 10 #include <limits>
(...skipping 870 matching lines...) Expand 10 before | Expand all | Expand 10 after
881 keys.push_back(DatabaseFreeListKey::Encode(0)); 881 keys.push_back(DatabaseFreeListKey::Encode(0));
882 keys.push_back(DatabaseFreeListKey::EncodeMaxKey()); 882 keys.push_back(DatabaseFreeListKey::EncodeMaxKey());
883 keys.push_back(DatabaseNameKey::Encode("", ASCIIToUTF16(""))); 883 keys.push_back(DatabaseNameKey::Encode("", ASCIIToUTF16("")));
884 keys.push_back(DatabaseNameKey::Encode("", ASCIIToUTF16("a"))); 884 keys.push_back(DatabaseNameKey::Encode("", ASCIIToUTF16("a")));
885 keys.push_back(DatabaseNameKey::Encode("a", ASCIIToUTF16("a"))); 885 keys.push_back(DatabaseNameKey::Encode("a", ASCIIToUTF16("a")));
886 keys.push_back( 886 keys.push_back(
887 DatabaseMetaDataKey::Encode(1, DatabaseMetaDataKey::ORIGIN_NAME)); 887 DatabaseMetaDataKey::Encode(1, DatabaseMetaDataKey::ORIGIN_NAME));
888 keys.push_back( 888 keys.push_back(
889 DatabaseMetaDataKey::Encode(1, DatabaseMetaDataKey::DATABASE_NAME)); 889 DatabaseMetaDataKey::Encode(1, DatabaseMetaDataKey::DATABASE_NAME));
890 keys.push_back( 890 keys.push_back(
891 DatabaseMetaDataKey::Encode(1, DatabaseMetaDataKey::USER_VERSION)); 891 DatabaseMetaDataKey::Encode(1, DatabaseMetaDataKey::USER_STRING_VERSION));
892 keys.push_back( 892 keys.push_back(
893 DatabaseMetaDataKey::Encode(1, DatabaseMetaDataKey::MAX_OBJECT_STORE_ID)); 893 DatabaseMetaDataKey::Encode(1, DatabaseMetaDataKey::MAX_OBJECT_STORE_ID));
894 keys.push_back( 894 keys.push_back(
895 DatabaseMetaDataKey::Encode(1, DatabaseMetaDataKey::USER_INT_VERSION)); 895 DatabaseMetaDataKey::Encode(1, DatabaseMetaDataKey::USER_VERSION));
896 keys.push_back( 896 keys.push_back(
897 ObjectStoreMetaDataKey::Encode(1, 1, ObjectStoreMetaDataKey::NAME)); 897 ObjectStoreMetaDataKey::Encode(1, 1, ObjectStoreMetaDataKey::NAME));
898 keys.push_back( 898 keys.push_back(
899 ObjectStoreMetaDataKey::Encode(1, 1, ObjectStoreMetaDataKey::KEY_PATH)); 899 ObjectStoreMetaDataKey::Encode(1, 1, ObjectStoreMetaDataKey::KEY_PATH));
900 keys.push_back(ObjectStoreMetaDataKey::Encode( 900 keys.push_back(ObjectStoreMetaDataKey::Encode(
901 1, 1, ObjectStoreMetaDataKey::AUTO_INCREMENT)); 901 1, 1, ObjectStoreMetaDataKey::AUTO_INCREMENT));
902 keys.push_back( 902 keys.push_back(
903 ObjectStoreMetaDataKey::Encode(1, 1, ObjectStoreMetaDataKey::EVICTABLE)); 903 ObjectStoreMetaDataKey::Encode(1, 1, ObjectStoreMetaDataKey::EVICTABLE));
904 keys.push_back(ObjectStoreMetaDataKey::Encode( 904 keys.push_back(ObjectStoreMetaDataKey::Encode(
905 1, 1, ObjectStoreMetaDataKey::LAST_VERSION)); 905 1, 1, ObjectStoreMetaDataKey::LAST_VERSION));
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
978 std::string b = WrappedEncodeVarInt(static_cast<int64_t>(n)); 978 std::string b = WrappedEncodeVarInt(static_cast<int64_t>(n));
979 979
980 EXPECT_EQ(a.size(), b.size()); 980 EXPECT_EQ(a.size(), b.size());
981 EXPECT_EQ(*a.begin(), *b.begin()); 981 EXPECT_EQ(*a.begin(), *b.begin());
982 } 982 }
983 } 983 }
984 984
985 } // namespace 985 } // namespace
986 986
987 } // namespace content 987 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/indexed_db/indexed_db_leveldb_coding.h ('k') | content/browser/indexed_db/indexed_db_metadata.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698