| Index: content/browser/indexed_db/indexed_db_cleanup_on_io_error_unittest.cc
|
| diff --git a/content/browser/indexed_db/indexed_db_cleanup_on_io_error_unittest.cc b/content/browser/indexed_db/indexed_db_cleanup_on_io_error_unittest.cc
|
| index 04a40c433422ac65c6a37f83ce8cce129b3a954c..27f72f2b4b5a2407210ab836997a4c66a6e959d7 100644
|
| --- a/content/browser/indexed_db/indexed_db_cleanup_on_io_error_unittest.cc
|
| +++ b/content/browser/indexed_db/indexed_db_cleanup_on_io_error_unittest.cc
|
| @@ -48,10 +48,10 @@ class BustedLevelDBDatabase : public LevelDBDatabase {
|
| const LevelDBComparator* /*comparator*/) {
|
| return scoped_ptr<LevelDBDatabase>(new BustedLevelDBDatabase);
|
| }
|
| - virtual leveldb::Status Get(const base::StringPiece& key,
|
| - std::string* value,
|
| - bool* found,
|
| - const LevelDBSnapshot* = 0) override {
|
| + leveldb::Status Get(const base::StringPiece& key,
|
| + std::string* value,
|
| + bool* found,
|
| + const LevelDBSnapshot* = 0) override {
|
| return leveldb::Status::IOError("It's busted!");
|
| }
|
|
|
| @@ -61,17 +61,15 @@ class BustedLevelDBDatabase : public LevelDBDatabase {
|
|
|
| class BustedLevelDBFactory : public LevelDBFactory {
|
| public:
|
| - virtual leveldb::Status OpenLevelDB(
|
| - const base::FilePath& file_name,
|
| - const LevelDBComparator* comparator,
|
| - scoped_ptr<LevelDBDatabase>* db,
|
| - bool* is_disk_full = 0) override {
|
| + leveldb::Status OpenLevelDB(const base::FilePath& file_name,
|
| + const LevelDBComparator* comparator,
|
| + scoped_ptr<LevelDBDatabase>* db,
|
| + bool* is_disk_full = 0) override {
|
| if (open_error_.ok())
|
| *db = BustedLevelDBDatabase::Open(file_name, comparator);
|
| return open_error_;
|
| }
|
| - virtual leveldb::Status DestroyLevelDB(
|
| - const base::FilePath& file_name) override {
|
| + leveldb::Status DestroyLevelDB(const base::FilePath& file_name) override {
|
| return leveldb::Status::IOError("error");
|
| }
|
| void SetOpenError(const leveldb::Status& open_error) {
|
|
|