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 <algorithm> | 5 #include <algorithm> |
6 #include <cstring> | 6 #include <cstring> |
7 #include <vector> | 7 #include <vector> |
8 | 8 |
9 #include "base/files/file_path.h" | 9 #include "base/files/file_path.h" |
10 #include "base/files/scoped_temp_dir.h" | 10 #include "base/files/scoped_temp_dir.h" |
11 #include "base/platform_file.h" | 11 #include "base/platform_file.h" |
12 #include "base/string16.h" | 12 #include "base/strings/string16.h" |
13 #include "content/browser/indexed_db/leveldb/leveldb_comparator.h" | 13 #include "content/browser/indexed_db/leveldb/leveldb_comparator.h" |
14 #include "content/browser/indexed_db/leveldb/leveldb_database.h" | 14 #include "content/browser/indexed_db/leveldb/leveldb_database.h" |
15 #include "content/browser/indexed_db/leveldb/leveldb_iterator.h" | 15 #include "content/browser/indexed_db/leveldb/leveldb_iterator.h" |
16 #include "content/browser/indexed_db/leveldb/leveldb_slice.h" | 16 #include "content/browser/indexed_db/leveldb/leveldb_slice.h" |
17 #include "content/browser/indexed_db/leveldb/leveldb_transaction.h" | 17 #include "content/browser/indexed_db/leveldb/leveldb_transaction.h" |
18 #include "testing/gtest/include/gtest/gtest.h" | 18 #include "testing/gtest/include/gtest/gtest.h" |
19 | 19 |
20 namespace content { | 20 namespace content { |
21 | 21 |
22 namespace { | 22 namespace { |
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
194 EXPECT_EQ(comparator.Compare(it->Value(), LevelDBSlice(value2)), 0); | 194 EXPECT_EQ(comparator.Compare(it->Value(), LevelDBSlice(value2)), 0); |
195 | 195 |
196 it->Next(); | 196 it->Next(); |
197 | 197 |
198 EXPECT_FALSE(it->IsValid()); | 198 EXPECT_FALSE(it->IsValid()); |
199 } | 199 } |
200 | 200 |
201 } // namespace | 201 } // namespace |
202 | 202 |
203 } // namespace content | 203 } // namespace content |
OLD | NEW |