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_backing_store.h" | 5 #include "content/browser/indexed_db/indexed_db_backing_store.h" |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
8 #include "base/strings/string16.h" | 8 #include "base/strings/string16.h" |
9 #include "base/strings/utf_string_conversions.h" | 9 #include "base/strings/utf_string_conversions.h" |
10 #include "content/browser/indexed_db/indexed_db_leveldb_coding.h" | 10 #include "content/browser/indexed_db/indexed_db_leveldb_coding.h" |
11 #include "testing/gtest/include/gtest/gtest.h" | 11 #include "testing/gtest/include/gtest/gtest.h" |
12 #include "third_party/WebKit/public/platform/WebIDBTypes.h" | 12 #include "third_party/WebKit/public/platform/WebIDBTypes.h" |
13 | 13 |
| 14 using base::ASCIIToUTF16; |
| 15 |
14 namespace content { | 16 namespace content { |
15 | 17 |
16 namespace { | 18 namespace { |
17 | 19 |
18 class IndexedDBBackingStoreTest : public testing::Test { | 20 class IndexedDBBackingStoreTest : public testing::Test { |
19 public: | 21 public: |
20 IndexedDBBackingStoreTest() {} | 22 IndexedDBBackingStoreTest() {} |
21 virtual void SetUp() { | 23 virtual void SetUp() { |
22 const GURL origin("http://localhost:81"); | 24 const GURL origin("http://localhost:81"); |
23 backing_store_ = IndexedDBBackingStore::OpenInMemory(origin); | 25 backing_store_ = IndexedDBBackingStore::OpenInMemory(origin); |
(...skipping 288 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
312 EXPECT_EQ(index_name, index.name); | 314 EXPECT_EQ(index_name, index.name); |
313 EXPECT_EQ(index_key_path, index.key_path); | 315 EXPECT_EQ(index_key_path, index.key_path); |
314 EXPECT_EQ(unique, index.unique); | 316 EXPECT_EQ(unique, index.unique); |
315 EXPECT_EQ(multi_entry, index.multi_entry); | 317 EXPECT_EQ(multi_entry, index.multi_entry); |
316 } | 318 } |
317 } | 319 } |
318 | 320 |
319 } // namespace | 321 } // namespace |
320 | 322 |
321 } // namespace content | 323 } // namespace content |
OLD | NEW |