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

Unified Diff: content/browser/indexed_db/leveldb/leveldb_transaction.h

Issue 334303002: Using a mock LevelDBTransaction for corruption tests. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: LevelDBTraceTansaction::s_class_name is now static 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 side-by-side diff with in-line comments
Download patch
Index: content/browser/indexed_db/leveldb/leveldb_transaction.h
diff --git a/content/browser/indexed_db/leveldb/leveldb_transaction.h b/content/browser/indexed_db/leveldb/leveldb_transaction.h
index ed8b1ca24585291f44b79199b7d59e8b2e66b870..f6b5a95e1210d1a9bf612da05a60980ad2168561 100644
--- a/content/browser/indexed_db/leveldb/leveldb_transaction.h
+++ b/content/browser/indexed_db/leveldb/leveldb_transaction.h
@@ -27,18 +27,20 @@ class CONTENT_EXPORT LevelDBTransaction
void Put(const base::StringPiece& key, std::string* value);
void Remove(const base::StringPiece& key);
- leveldb::Status Get(const base::StringPiece& key,
- std::string* value,
- bool* found);
- leveldb::Status Commit();
+ virtual leveldb::Status Get(const base::StringPiece& key,
+ std::string* value,
+ bool* found);
+ virtual leveldb::Status Commit();
void Rollback();
scoped_ptr<LevelDBIterator> CreateIterator();
- private:
+ protected:
virtual ~LevelDBTransaction();
explicit LevelDBTransaction(LevelDBDatabase* db);
friend class IndexedDBClassFactory;
+
+ private:
friend class base::RefCounted<LevelDBTransaction>;
FRIEND_TEST_ALL_PREFIXES(LevelDBDatabaseTest, Transaction);
FRIEND_TEST_ALL_PREFIXES(LevelDBDatabaseTest, TransactionCommitTest);

Powered by Google App Engine
This is Rietveld 408576698