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 { | 17 namespace blink { |
18 class WebData; | 18 class WebData; |
19 } // namespace blink | 19 } // namespace blink |
20 | 20 |
21 namespace content { | 21 namespace content { |
22 | 22 |
| 23 #if 0 |
23 class MockWebIDBCallbacks : public blink::WebIDBCallbacks { | 24 class MockWebIDBCallbacks : public blink::WebIDBCallbacks { |
24 public: | 25 public: |
25 MockWebIDBCallbacks(); | 26 MockWebIDBCallbacks(); |
26 ~MockWebIDBCallbacks(); | 27 ~MockWebIDBCallbacks(); |
27 MOCK_METHOD1(onError, void(const blink::WebIDBDatabaseError&)); | 28 MOCK_METHOD1(onError, void(const blink::WebIDBDatabaseError&)); |
28 MOCK_METHOD3(onSuccess, | 29 MOCK_METHOD3(onSuccess, |
29 void(const blink::WebIDBKey& key, | 30 void(const blink::WebIDBKey& key, |
30 const blink::WebIDBKey& primaryKey, | 31 const blink::WebIDBKey& primaryKey, |
31 const blink::WebIDBValue& value)); | 32 const blink::WebIDBValue& value)); |
32 MOCK_METHOD1(onSuccess, void(const blink::WebVector<blink::WebString>&)); | 33 MOCK_METHOD1(onSuccess, void(const blink::WebVector<blink::WebString>&)); |
(...skipping 13 matching lines...) Expand all Loading... |
46 MOCK_METHOD5(onUpgradeNeeded, | 47 MOCK_METHOD5(onUpgradeNeeded, |
47 void(long long oldVersion, | 48 void(long long oldVersion, |
48 blink::WebIDBDatabase*, | 49 blink::WebIDBDatabase*, |
49 const blink::WebIDBMetadata&, | 50 const blink::WebIDBMetadata&, |
50 unsigned short dataLoss, | 51 unsigned short dataLoss, |
51 blink::WebString dataLossMessage)); | 52 blink::WebString dataLossMessage)); |
52 | 53 |
53 private: | 54 private: |
54 DISALLOW_COPY_AND_ASSIGN(MockWebIDBCallbacks); | 55 DISALLOW_COPY_AND_ASSIGN(MockWebIDBCallbacks); |
55 }; | 56 }; |
| 57 #endif |
56 | 58 |
57 } // namespace content | 59 } // namespace content |
58 | 60 |
59 #endif // CONTENT_CHILD_INDEXED_DB_MOCK_WEBIDBCALLBACKS_H_ | 61 #endif // CONTENT_CHILD_INDEXED_DB_MOCK_WEBIDBCALLBACKS_H_ |
OLD | NEW |