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

Unified Diff: content/browser/indexed_db/leveldb/leveldb_unittest.cc

Issue 594403005: Use reset() to delete the contents of a scoped_ptr, not Pass(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/indexed_db/leveldb/leveldb_unittest.cc
diff --git a/content/browser/indexed_db/leveldb/leveldb_unittest.cc b/content/browser/indexed_db/leveldb/leveldb_unittest.cc
index 83fdd59b87869e5a0a140f2a06466b68616ff627..b0c70fe6af676448e1e57223e3dac411f5f44958 100644
--- a/content/browser/indexed_db/leveldb/leveldb_unittest.cc
+++ b/content/browser/indexed_db/leveldb/leveldb_unittest.cc
@@ -51,7 +51,7 @@ TEST(LevelDBDatabaseTest, CorruptionTest) {
put_value = value;
leveldb::Status status = leveldb->Put(key, &put_value);
EXPECT_TRUE(status.ok());
- leveldb.Pass();
+ leveldb.reset();
EXPECT_FALSE(leveldb);
LevelDBDatabase::Open(temp_directory.path(), &comparator, &leveldb);
@@ -61,7 +61,7 @@ TEST(LevelDBDatabaseTest, CorruptionTest) {
EXPECT_TRUE(status.ok());
EXPECT_TRUE(found);
EXPECT_EQ(value, got_value);
- leveldb.Pass();
+ leveldb.reset();
EXPECT_FALSE(leveldb);
base::FilePath file_path = temp_directory.path().AppendASCII("CURRENT");
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698