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

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

Issue 63253002: Rename WebKit namespace to blink (part 3) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 1 month 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 | Annotate | Revision Log
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_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 namespace content { 14 namespace content {
15 15
16 namespace { 16 namespace {
17 17
18 class IndexedDBBackingStoreTest : public testing::Test { 18 class IndexedDBBackingStoreTest : public testing::Test {
19 public: 19 public:
20 IndexedDBBackingStoreTest() {} 20 IndexedDBBackingStoreTest() {}
21 virtual void SetUp() { 21 virtual void SetUp() {
22 const GURL origin("http://localhost:81"); 22 const GURL origin("http://localhost:81");
23 backing_store_ = IndexedDBBackingStore::OpenInMemory(origin); 23 backing_store_ = IndexedDBBackingStore::OpenInMemory(origin);
24 24
25 // useful keys and values during tests 25 // useful keys and values during tests
26 m_value1 = "value1"; 26 m_value1 = "value1";
27 m_value2 = "value2"; 27 m_value2 = "value2";
28 m_value3 = "value3"; 28 m_value3 = "value3";
29 m_key1 = IndexedDBKey(99, WebKit::WebIDBKeyTypeNumber); 29 m_key1 = IndexedDBKey(99, blink::WebIDBKeyTypeNumber);
30 m_key2 = IndexedDBKey(ASCIIToUTF16("key2")); 30 m_key2 = IndexedDBKey(ASCIIToUTF16("key2"));
31 m_key3 = IndexedDBKey(ASCIIToUTF16("key3")); 31 m_key3 = IndexedDBKey(ASCIIToUTF16("key3"));
32 } 32 }
33 33
34 protected: 34 protected:
35 scoped_refptr<IndexedDBBackingStore> backing_store_; 35 scoped_refptr<IndexedDBBackingStore> backing_store_;
36 36
37 // Sample keys and values that are consistent. 37 // Sample keys and values that are consistent.
38 IndexedDBKey m_key1; 38 IndexedDBKey m_key1;
39 IndexedDBKey m_key2; 39 IndexedDBKey m_key2;
(...skipping 272 matching lines...) Expand 10 before | Expand all | Expand 10 after
312 EXPECT_EQ(index_name, index.name); 312 EXPECT_EQ(index_name, index.name);
313 EXPECT_EQ(index_key_path, index.key_path); 313 EXPECT_EQ(index_key_path, index.key_path);
314 EXPECT_EQ(unique, index.unique); 314 EXPECT_EQ(unique, index.unique);
315 EXPECT_EQ(multi_entry, index.multi_entry); 315 EXPECT_EQ(multi_entry, index.multi_entry);
316 } 316 }
317 } 317 }
318 318
319 } // namespace 319 } // namespace
320 320
321 } // namespace content 321 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/indexed_db/indexed_db_backing_store.cc ('k') | content/browser/indexed_db/indexed_db_callbacks.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698