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 CONTENT_CHILD_INDEXED_DB_MOCK_WEBIDBCALLBACKS_H_ | 5 #ifndef CONTENT_CHILD_INDEXED_DB_MOCK_WEBIDBCALLBACKS_H_ |
6 #define CONTENT_CHILD_INDEXED_DB_MOCK_WEBIDBCALLBACKS_H_ | 6 #define CONTENT_CHILD_INDEXED_DB_MOCK_WEBIDBCALLBACKS_H_ |
7 | 7 |
8 #include "base/macros.h" | 8 #include "base/macros.h" |
9 #include "testing/gmock/include/gmock/gmock.h" | 9 #include "testing/gmock/include/gmock/gmock.h" |
10 #include "third_party/WebKit/public/platform/WebBlobInfo.h" | 10 #include "third_party/WebKit/public/platform/WebBlobInfo.h" |
11 #include "third_party/WebKit/public/platform/modules/indexeddb/WebIDBCallbacks.h
" | 11 #include "third_party/WebKit/public/platform/modules/indexeddb/WebIDBCallbacks.h
" |
12 #include "third_party/WebKit/public/platform/modules/indexeddb/WebIDBDatabaseErr
or.h" | 12 #include "third_party/WebKit/public/platform/modules/indexeddb/WebIDBDatabaseErr
or.h" |
13 #include "third_party/WebKit/public/platform/modules/indexeddb/WebIDBMetadata.h" | 13 #include "third_party/WebKit/public/platform/modules/indexeddb/WebIDBMetadata.h" |
14 #include "third_party/WebKit/public/platform/modules/indexeddb/WebIDBValue.h" | 14 #include "third_party/WebKit/public/platform/modules/indexeddb/WebIDBValue.h" |
15 #include "third_party/WebKit/public/web/WebHeap.h" | 15 #include "third_party/WebKit/public/web/WebHeap.h" |
16 | 16 |
17 namespace blink { | |
18 class WebData; | |
19 } // namespace blink | |
20 | |
21 namespace content { | 17 namespace content { |
22 | 18 |
23 class MockWebIDBCallbacks : public blink::WebIDBCallbacks { | 19 class MockWebIDBCallbacks : public blink::WebIDBCallbacks { |
24 public: | 20 public: |
25 MockWebIDBCallbacks(); | 21 MockWebIDBCallbacks(); |
26 ~MockWebIDBCallbacks(); | 22 ~MockWebIDBCallbacks(); |
27 MOCK_METHOD1(onError, void(const blink::WebIDBDatabaseError&)); | 23 MOCK_METHOD1(onError, void(const blink::WebIDBDatabaseError&)); |
28 MOCK_METHOD3(onSuccess, | 24 MOCK_METHOD3(onSuccess, |
29 void(const blink::WebIDBKey& key, | 25 void(const blink::WebIDBKey& key, |
30 const blink::WebIDBKey& primaryKey, | 26 const blink::WebIDBKey& primaryKey, |
(...skipping 20 matching lines...) Expand all Loading... |
51 blink::WebString dataLossMessage)); | 47 blink::WebString dataLossMessage)); |
52 MOCK_METHOD0(detach, void()); | 48 MOCK_METHOD0(detach, void()); |
53 | 49 |
54 private: | 50 private: |
55 DISALLOW_COPY_AND_ASSIGN(MockWebIDBCallbacks); | 51 DISALLOW_COPY_AND_ASSIGN(MockWebIDBCallbacks); |
56 }; | 52 }; |
57 | 53 |
58 } // namespace content | 54 } // namespace content |
59 | 55 |
60 #endif // CONTENT_CHILD_INDEXED_DB_MOCK_WEBIDBCALLBACKS_H_ | 56 #endif // CONTENT_CHILD_INDEXED_DB_MOCK_WEBIDBCALLBACKS_H_ |
OLD | NEW |