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

Side by Side Diff: content/browser/indexed_db/leveldb/mock_leveldb_factory.h

Issue 356463008: Cleanup IndexedDBIO unit tests using GoogleMock. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: not exporting MockLevelDBFactory Created 6 years, 5 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
OLDNEW
(Empty)
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CONTENT_BROWSER_INDEXED_DB_LEVELDB_MOCK_LEVELDB_FACTORY_H_
6 #define CONTENT_BROWSER_INDEXED_DB_LEVELDB_MOCK_LEVELDB_FACTORY_H_
7
8 #include "base/files/file_path.h"
9 #include "content/browser/indexed_db/leveldb/leveldb_factory.h"
10 #include "testing/gmock/include/gmock/gmock.h"
11
12 namespace content {
13
14 class MockLevelDBFactory : public LevelDBFactory {
15 public:
16 MockLevelDBFactory();
17 ~MockLevelDBFactory();
18 MOCK_METHOD4(OpenLevelDB,
19 leveldb::Status(const base::FilePath& file_name,
20 const LevelDBComparator* comparator,
21 scoped_ptr<LevelDBDatabase>* db,
22 bool* is_disk_full));
23 MOCK_METHOD1(DestroyLevelDB,
24 leveldb::Status(const base::FilePath& file_name));
25 };
26
27 } // namespace content
28
29 #endif // CONTENT_BROWSER_INDEXED_DB_LEVELDB_MOCK_LEVELDB_FACTORY_H_
OLDNEW
« no previous file with comments | « content/browser/indexed_db/leveldb/leveldb_factory.h ('k') | content/browser/indexed_db/leveldb/mock_leveldb_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698