OLD | NEW |
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 <limits> | 7 #include <limits> |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
11 #include "base/strings/string16.h" | 11 #include "base/strings/string16.h" |
12 #include "base/strings/string_piece.h" | 12 #include "base/strings/string_piece.h" |
13 #include "base/strings/utf_string_conversions.h" | 13 #include "base/strings/utf_string_conversions.h" |
14 #include "content/common/indexed_db/indexed_db_key.h" | 14 #include "content/common/indexed_db/indexed_db_key.h" |
15 #include "content/common/indexed_db/indexed_db_key_path.h" | 15 #include "content/common/indexed_db/indexed_db_key_path.h" |
16 #include "testing/gtest/include/gtest/gtest.h" | 16 #include "testing/gtest/include/gtest/gtest.h" |
17 | 17 |
| 18 using base::ASCIIToUTF16; |
18 using base::StringPiece; | 19 using base::StringPiece; |
19 using blink::WebIDBKeyTypeDate; | 20 using blink::WebIDBKeyTypeDate; |
20 using blink::WebIDBKeyTypeNumber; | 21 using blink::WebIDBKeyTypeNumber; |
21 | 22 |
22 namespace content { | 23 namespace content { |
23 | 24 |
24 namespace { | 25 namespace { |
25 | 26 |
26 static IndexedDBKey CreateArrayIDBKey() { | 27 static IndexedDBKey CreateArrayIDBKey() { |
27 return IndexedDBKey(IndexedDBKey::KeyArray()); | 28 return IndexedDBKey(IndexedDBKey::KeyArray()); |
(...skipping 890 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
918 std::string vB = WrappedEncodeVarInt(static_cast<int64>(n)); | 919 std::string vB = WrappedEncodeVarInt(static_cast<int64>(n)); |
919 | 920 |
920 EXPECT_EQ(vA.size(), vB.size()); | 921 EXPECT_EQ(vA.size(), vB.size()); |
921 EXPECT_EQ(*vA.begin(), *vB.begin()); | 922 EXPECT_EQ(*vA.begin(), *vB.begin()); |
922 } | 923 } |
923 } | 924 } |
924 | 925 |
925 } // namespace | 926 } // namespace |
926 | 927 |
927 } // namespace content | 928 } // namespace content |
OLD | NEW |