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 <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
11 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
12 #include "base/string16.h" | 12 #include "base/strings/string16.h" |
13 #include "base/strings/string_piece.h" | 13 #include "base/strings/string_piece.h" |
14 #include "base/strings/utf_string_conversions.h" | 14 #include "base/strings/utf_string_conversions.h" |
15 #include "content/browser/indexed_db/leveldb/leveldb_slice.h" | 15 #include "content/browser/indexed_db/leveldb/leveldb_slice.h" |
16 #include "content/common/indexed_db/indexed_db_key.h" | 16 #include "content/common/indexed_db/indexed_db_key.h" |
17 #include "content/common/indexed_db/indexed_db_key_path.h" | 17 #include "content/common/indexed_db/indexed_db_key_path.h" |
18 #include "testing/gtest/include/gtest/gtest.h" | 18 #include "testing/gtest/include/gtest/gtest.h" |
19 | 19 |
20 using base::StringPiece; | 20 using base::StringPiece; |
21 using WebKit::WebIDBKey; | 21 using WebKit::WebIDBKey; |
22 using WebKit::WebIDBKeyPath; | 22 using WebKit::WebIDBKeyPath; |
(...skipping 797 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
820 std::vector<char> vB = WrappedEncodeVarInt(static_cast<int64>(n)); | 820 std::vector<char> vB = WrappedEncodeVarInt(static_cast<int64>(n)); |
821 | 821 |
822 EXPECT_EQ(vA.size(), vB.size()); | 822 EXPECT_EQ(vA.size(), vB.size()); |
823 EXPECT_EQ(*vA.begin(), *vB.begin()); | 823 EXPECT_EQ(*vA.begin(), *vB.begin()); |
824 } | 824 } |
825 } | 825 } |
826 | 826 |
827 } // namespace | 827 } // namespace |
828 | 828 |
829 } // namespace content | 829 } // namespace content |
OLD | NEW |