OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 MockWebIDBDatabase_h | 5 #ifndef MockWebIDBDatabase_h |
6 #define MockWebIDBDatabase_h | 6 #define MockWebIDBDatabase_h |
7 | 7 |
| 8 #include <gmock/gmock.h> |
| 9 #include <memory> |
8 #include "modules/indexeddb/IDBKey.h" | 10 #include "modules/indexeddb/IDBKey.h" |
9 #include "modules/indexeddb/IDBKeyRange.h" | 11 #include "modules/indexeddb/IDBKeyRange.h" |
10 #include "public/platform/modules/indexeddb/WebIDBDatabase.h" | 12 #include "public/platform/modules/indexeddb/WebIDBDatabase.h" |
11 #include "public/platform/modules/indexeddb/WebIDBKeyRange.h" | 13 #include "public/platform/modules/indexeddb/WebIDBKeyRange.h" |
12 #include <gmock/gmock.h> | |
13 #include <memory> | |
14 | 14 |
15 namespace blink { | 15 namespace blink { |
16 | 16 |
17 class MockWebIDBDatabase : public testing::StrictMock<WebIDBDatabase> { | 17 class MockWebIDBDatabase : public testing::StrictMock<WebIDBDatabase> { |
18 public: | 18 public: |
19 virtual ~MockWebIDBDatabase(); | 19 virtual ~MockWebIDBDatabase(); |
20 | 20 |
21 static std::unique_ptr<MockWebIDBDatabase> create(); | 21 static std::unique_ptr<MockWebIDBDatabase> create(); |
22 | 22 |
23 MOCK_METHOD5(createObjectStore, | 23 MOCK_METHOD5(createObjectStore, |
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
129 WebIDBCallbacks*)); | 129 WebIDBCallbacks*)); |
130 MOCK_METHOD1(ackReceivedBlobs, void(const WebVector<WebString>& uuids)); | 130 MOCK_METHOD1(ackReceivedBlobs, void(const WebVector<WebString>& uuids)); |
131 | 131 |
132 private: | 132 private: |
133 MockWebIDBDatabase(); | 133 MockWebIDBDatabase(); |
134 }; | 134 }; |
135 | 135 |
136 } // namespace blink | 136 } // namespace blink |
137 | 137 |
138 #endif // MockWebIDBDatabase_h | 138 #endif // MockWebIDBDatabase_h |
OLD | NEW |