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" |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
42 MOCK_METHOD1(onSuccess, void(const blink::WebVector<blink::WebIDBValue>&)); | 42 MOCK_METHOD1(onSuccess, void(const blink::WebVector<blink::WebIDBValue>&)); |
43 MOCK_METHOD1(onSuccess, void(long long)); | 43 MOCK_METHOD1(onSuccess, void(long long)); |
44 MOCK_METHOD0(onSuccess, void()); | 44 MOCK_METHOD0(onSuccess, void()); |
45 MOCK_METHOD1(onBlocked, void(long long oldVersion)); | 45 MOCK_METHOD1(onBlocked, void(long long oldVersion)); |
46 MOCK_METHOD5(onUpgradeNeeded, | 46 MOCK_METHOD5(onUpgradeNeeded, |
47 void(long long oldVersion, | 47 void(long long oldVersion, |
48 blink::WebIDBDatabase*, | 48 blink::WebIDBDatabase*, |
49 const blink::WebIDBMetadata&, | 49 const blink::WebIDBMetadata&, |
50 unsigned short dataLoss, | 50 unsigned short dataLoss, |
51 blink::WebString dataLossMessage)); | 51 blink::WebString dataLossMessage)); |
| 52 MOCK_METHOD0(detach, void()); |
52 | 53 |
53 private: | 54 private: |
54 DISALLOW_COPY_AND_ASSIGN(MockWebIDBCallbacks); | 55 DISALLOW_COPY_AND_ASSIGN(MockWebIDBCallbacks); |
55 }; | 56 }; |
56 | 57 |
57 } // namespace content | 58 } // namespace content |
58 | 59 |
59 #endif // CONTENT_CHILD_INDEXED_DB_MOCK_WEBIDBCALLBACKS_H_ | 60 #endif // CONTENT_CHILD_INDEXED_DB_MOCK_WEBIDBCALLBACKS_H_ |
OLD | NEW |