| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 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 #ifndef CONTENT_BROWSER_INDEXED_DB_MOCK_INDEXED_DB_FACTORY_H_ | 5 #ifndef CONTENT_BROWSER_INDEXED_DB_MOCK_INDEXED_DB_FACTORY_H_ |
| 6 #define CONTENT_BROWSER_INDEXED_DB_MOCK_INDEXED_DB_FACTORY_H_ | 6 #define CONTENT_BROWSER_INDEXED_DB_MOCK_INDEXED_DB_FACTORY_H_ |
| 7 | 7 |
| 8 #include <stddef.h> |
| 9 |
| 8 #include <string> | 10 #include <string> |
| 9 | 11 |
| 12 #include "base/macros.h" |
| 10 #include "content/browser/indexed_db/indexed_db_factory.h" | 13 #include "content/browser/indexed_db/indexed_db_factory.h" |
| 11 #include "testing/gmock/include/gmock/gmock.h" | 14 #include "testing/gmock/include/gmock/gmock.h" |
| 12 | 15 |
| 13 namespace content { | 16 namespace content { |
| 14 | 17 |
| 15 class MockIndexedDBFactory : public IndexedDBFactory { | 18 class MockIndexedDBFactory : public IndexedDBFactory { |
| 16 public: | 19 public: |
| 17 MockIndexedDBFactory(); | 20 MockIndexedDBFactory(); |
| 18 MOCK_METHOD2(ReleaseDatabase, | 21 MOCK_METHOD2(ReleaseDatabase, |
| 19 void(const IndexedDBDatabase::Identifier& identifier, | 22 void(const IndexedDBDatabase::Identifier& identifier, |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 75 bool first_time, | 78 bool first_time, |
| 76 leveldb::Status* s)); | 79 leveldb::Status* s)); |
| 77 | 80 |
| 78 private: | 81 private: |
| 79 DISALLOW_COPY_AND_ASSIGN(MockIndexedDBFactory); | 82 DISALLOW_COPY_AND_ASSIGN(MockIndexedDBFactory); |
| 80 }; | 83 }; |
| 81 | 84 |
| 82 } // namespace content | 85 } // namespace content |
| 83 | 86 |
| 84 #endif // CONTENT_BROWSER_INDEXED_DB_MOCK_INDEXED_DB_FACTORY_H_ | 87 #endif // CONTENT_BROWSER_INDEXED_DB_MOCK_INDEXED_DB_FACTORY_H_ |
| OLD | NEW |