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 "modules/indexeddb/IDBKey.h" | 8 #include "modules/indexeddb/IDBKey.h" |
9 #include "modules/indexeddb/IDBKeyRange.h" | 9 #include "modules/indexeddb/IDBKeyRange.h" |
10 #include "public/platform/modules/indexeddb/WebIDBDatabase.h" | 10 #include "public/platform/modules/indexeddb/WebIDBDatabase.h" |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
52 MOCK_METHOD3(deleteIndex, | 52 MOCK_METHOD3(deleteIndex, |
53 void(long long transactionId, | 53 void(long long transactionId, |
54 long long objectStoreId, | 54 long long objectStoreId, |
55 long long indexId)); | 55 long long indexId)); |
56 MOCK_METHOD4(renameIndex, | 56 MOCK_METHOD4(renameIndex, |
57 void(long long transactionId, | 57 void(long long transactionId, |
58 long long objectStoreId, | 58 long long objectStoreId, |
59 long long indexId, | 59 long long indexId, |
60 const WebString& newName)); | 60 const WebString& newName)); |
61 | 61 |
62 // Gmock does not support movable type, so cannot use MOCK_METHOD for addObser
ver. Issue: https://github.com/google/googletest/issues/395. | 62 // Gmock does not support movable type, so cannot use MOCK_METHOD for |
| 63 // addObserver. Issue: https://github.com/google/googletest/issues/395. |
63 int32_t addObserver(std::unique_ptr<WebIDBObserver>, | 64 int32_t addObserver(std::unique_ptr<WebIDBObserver>, |
64 long long transactionId) { | 65 long long transactionId) { |
65 return -1; | 66 return -1; |
66 } | 67 } |
67 MOCK_CONST_METHOD1(containsObserverId, bool(int32_t id)); | 68 MOCK_CONST_METHOD1(containsObserverId, bool(int32_t id)); |
68 MOCK_METHOD1(removeObservers, | 69 MOCK_METHOD1(removeObservers, |
69 void(const WebVector<int32_t>& observerIdsToRemove)); | 70 void(const WebVector<int32_t>& observerIdsToRemove)); |
70 MOCK_METHOD6(get, | 71 MOCK_METHOD6(get, |
71 void(long long transactionId, | 72 void(long long transactionId, |
72 long long objectStoreId, | 73 long long objectStoreId, |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
128 WebIDBCallbacks*)); | 129 WebIDBCallbacks*)); |
129 MOCK_METHOD1(ackReceivedBlobs, void(const WebVector<WebString>& uuids)); | 130 MOCK_METHOD1(ackReceivedBlobs, void(const WebVector<WebString>& uuids)); |
130 | 131 |
131 private: | 132 private: |
132 MockWebIDBDatabase(); | 133 MockWebIDBDatabase(); |
133 }; | 134 }; |
134 | 135 |
135 } // namespace blink | 136 } // namespace blink |
136 | 137 |
137 #endif // MockWebIDBDatabase_h | 138 #endif // MockWebIDBDatabase_h |
OLD | NEW |