| 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" |
| 11 #include "public/platform/modules/indexeddb/WebIDBKeyRange.h" | 11 #include "public/platform/modules/indexeddb/WebIDBKeyRange.h" |
| 12 #include <gmock/gmock.h> | 12 #include <gmock/gmock.h> |
| 13 #include <memory> | 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, |
| 24 void(long long transaction_id, | 24 void(long long transaction_id, |
| 25 long long object_store_id, | 25 long long object_store_id, |
| 26 const WebString& name, | 26 const WebString& name, |
| 27 const WebIDBKeyPath&, | 27 const WebIDBKeyPath&, |
| (...skipping 101 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 |