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

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

Issue 678073006: Standardize usage of virtual/override/final specifiers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix bogus formatting Created 6 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
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 <set> 7 #include <set>
8 8
9 #include "base/auto_reset.h" 9 #include "base/auto_reset.h"
10 #include "base/logging.h" 10 #include "base/logging.h"
(...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after
221 221
222 void DummyOperation(IndexedDBTransaction* transaction) { 222 void DummyOperation(IndexedDBTransaction* transaction) {
223 } 223 }
224 224
225 class IndexedDBDatabaseOperationTest : public testing::Test { 225 class IndexedDBDatabaseOperationTest : public testing::Test {
226 public: 226 public:
227 IndexedDBDatabaseOperationTest() 227 IndexedDBDatabaseOperationTest()
228 : commit_success_(leveldb::Status::OK()), 228 : commit_success_(leveldb::Status::OK()),
229 factory_(new MockIndexedDBFactory()) {} 229 factory_(new MockIndexedDBFactory()) {}
230 230
231 virtual void SetUp() { 231 void SetUp() override {
232 backing_store_ = new IndexedDBFakeBackingStore(); 232 backing_store_ = new IndexedDBFakeBackingStore();
233 leveldb::Status s; 233 leveldb::Status s;
234 db_ = IndexedDBDatabase::Create(ASCIIToUTF16("db"), 234 db_ = IndexedDBDatabase::Create(ASCIIToUTF16("db"),
235 backing_store_.get(), 235 backing_store_.get(),
236 factory_.get(), 236 factory_.get(),
237 IndexedDBDatabase::Identifier(), 237 IndexedDBDatabase::Identifier(),
238 &s); 238 &s);
239 ASSERT_TRUE(s.ok()); 239 ASSERT_TRUE(s.ok());
240 240
241 request_ = new MockIndexedDBCallbacks(); 241 request_ = new MockIndexedDBCallbacks();
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after
410 EXPECT_EQ(1ULL, db_->metadata().object_stores.size()); 410 EXPECT_EQ(1ULL, db_->metadata().object_stores.size());
411 411
412 // This will execute the Put then Delete. 412 // This will execute the Put then Delete.
413 RunPostedTasks(); 413 RunPostedTasks();
414 EXPECT_EQ(0ULL, db_->metadata().object_stores.size()); 414 EXPECT_EQ(0ULL, db_->metadata().object_stores.size());
415 415
416 transaction_->Commit(); // Cleans up the object hierarchy. 416 transaction_->Commit(); // Cleans up the object hierarchy.
417 } 417 }
418 418
419 } // namespace content 419 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/indexed_db/indexed_db_browsertest.cc ('k') | content/browser/indexed_db/indexed_db_quota_client_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698