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

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

Issue 303073002: Change instances of s.IsCorruption() to leveldb_env::IsCorruption(s) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix memory leak Created 6 years, 6 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 "base/auto_reset.h" 7 #include "base/auto_reset.h"
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "base/run_loop.h" 9 #include "base/run_loop.h"
10 #include "base/strings/string16.h" 10 #include "base/strings/string16.h"
(...skipping 382 matching lines...) Expand 10 before | Expand all | Expand 10 after
393 index_keys); 393 index_keys);
394 394
395 // Deletion is asynchronous. 395 // Deletion is asynchronous.
396 db_->DeleteObjectStore(transaction_->id(), 396 db_->DeleteObjectStore(transaction_->id(),
397 store_id); 397 store_id);
398 EXPECT_EQ(1ULL, db_->metadata().object_stores.size()); 398 EXPECT_EQ(1ULL, db_->metadata().object_stores.size());
399 399
400 // This will execute the Put then Delete. 400 // This will execute the Put then Delete.
401 RunPostedTasks(); 401 RunPostedTasks();
402 EXPECT_EQ(0ULL, db_->metadata().object_stores.size()); 402 EXPECT_EQ(0ULL, db_->metadata().object_stores.size());
403
404 transaction_->Commit(); // Cleans up the object hierarchy.
403 } 405 }
404 406
405 } // namespace content 407 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/indexed_db/indexed_db_database.cc ('k') | content/browser/indexed_db/indexed_db_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698