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

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

Issue 17915004: IndexedDB: Remove uses of WebKit API types from back-end code (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased Created 7 years, 5 months 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 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_database.h" 5 #include "content/browser/indexed_db/indexed_db_database.h"
6 6
7 #include <gtest/gtest.h> 7 #include <gtest/gtest.h>
8 8
9 #include "base/auto_reset.h" 9 #include "base/auto_reset.h"
10 #include "base/logging.h" 10 #include "base/logging.h"
11 #include "base/strings/string16.h" 11 #include "base/strings/string16.h"
12 #include "base/strings/utf_string_conversions.h" 12 #include "base/strings/utf_string_conversions.h"
13 #include "content/browser/indexed_db/indexed_db.h" 13 #include "content/browser/indexed_db/indexed_db.h"
14 #include "content/browser/indexed_db/indexed_db_backing_store.h" 14 #include "content/browser/indexed_db/indexed_db_backing_store.h"
15 #include "content/browser/indexed_db/indexed_db_callbacks_wrapper.h" 15 #include "content/browser/indexed_db/indexed_db_callbacks_wrapper.h"
16 #include "content/browser/indexed_db/indexed_db_cursor.h" 16 #include "content/browser/indexed_db/indexed_db_cursor.h"
17 #include "content/browser/indexed_db/indexed_db_database.h" 17 #include "content/browser/indexed_db/indexed_db_database.h"
18 #include "content/browser/indexed_db/indexed_db_database_callbacks.h" 18 #include "content/browser/indexed_db/indexed_db_database_callbacks.h"
19 #include "content/browser/indexed_db/indexed_db_factory.h" 19 #include "content/browser/indexed_db/indexed_db_factory.h"
20 #include "content/browser/indexed_db/indexed_db_fake_backing_store.h" 20 #include "content/browser/indexed_db/indexed_db_fake_backing_store.h"
21 #include "content/browser/indexed_db/indexed_db_transaction.h" 21 #include "content/browser/indexed_db/indexed_db_transaction.h"
22 #include "content/browser/indexed_db/webidbdatabase_impl.h" 22 #include "content/browser/indexed_db/webidbdatabase_impl.h"
23 23
24 using WebKit::WebIDBDatabaseError;
25
26 namespace content { 24 namespace content {
27 25
28 TEST(IndexedDBDatabaseTest, BackingStoreRetention) { 26 TEST(IndexedDBDatabaseTest, BackingStoreRetention) {
29 scoped_refptr<IndexedDBFakeBackingStore> backing_store = 27 scoped_refptr<IndexedDBFakeBackingStore> backing_store =
30 new IndexedDBFakeBackingStore(); 28 new IndexedDBFakeBackingStore();
31 EXPECT_TRUE(backing_store->HasOneRef()); 29 EXPECT_TRUE(backing_store->HasOneRef());
32 30
33 IndexedDBFactory* factory = 0; 31 IndexedDBFactory* factory = 0;
34 scoped_refptr<IndexedDBDatabase> db = 32 scoped_refptr<IndexedDBDatabase> db =
35 IndexedDBDatabase::Create(ASCIIToUTF16("db"), 33 IndexedDBDatabase::Create(ASCIIToUTF16("db"),
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after
191 const std::vector<int64> scope; 189 const std::vector<int64> scope;
192 web_database.createTransaction( 190 web_database.createTransaction(
193 transaction_id, 0, scope, indexed_db::TRANSACTION_READ_ONLY); 191 transaction_id, 0, scope, indexed_db::TRANSACTION_READ_ONLY);
194 192
195 web_database.forceClose(); 193 web_database.forceClose();
196 194
197 EXPECT_TRUE(backing_store->HasOneRef()); // local 195 EXPECT_TRUE(backing_store->HasOneRef()); // local
198 } 196 }
199 197
200 } // namespace content 198 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/indexed_db/indexed_db_database_error.h ('k') | content/browser/indexed_db/indexed_db_dispatcher_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698