Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(73)

Side by Side Diff: content/child/indexed_db/mock_webidbcallbacks.h

Issue 1963293002: Replacing Indexed DB Chromium IPC with Mojo Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Refactoring after Passing URLRequestContextGetter. Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef CONTENT_CHILD_INDEXED_DB_MOCK_WEBIDBCALLBACKS_H_
6 #define CONTENT_CHILD_INDEXED_DB_MOCK_WEBIDBCALLBACKS_H_
7
8 #include "base/macros.h"
9 #include "testing/gmock/include/gmock/gmock.h"
10 #include "third_party/WebKit/public/platform/WebBlobInfo.h"
11 #include "third_party/WebKit/public/platform/modules/indexeddb/WebIDBCallbacks.h "
12 #include "third_party/WebKit/public/platform/modules/indexeddb/WebIDBDatabaseErr or.h"
13 #include "third_party/WebKit/public/platform/modules/indexeddb/WebIDBMetadata.h"
14 #include "third_party/WebKit/public/platform/modules/indexeddb/WebIDBValue.h"
15 #include "third_party/WebKit/public/web/WebHeap.h"
16
17 namespace blink {
18 class WebData;
19 } // namespace blink
20
21 namespace content {
22
23 class MockWebIDBCallbacks : public blink::WebIDBCallbacks {
24 public:
25 MockWebIDBCallbacks();
26 ~MockWebIDBCallbacks();
27 MOCK_METHOD1(onError, void(const blink::WebIDBDatabaseError&));
28 MOCK_METHOD3(onSuccess,
29 void(const blink::WebIDBKey& key,
30 const blink::WebIDBKey& primaryKey,
31 const blink::WebIDBValue& value));
32 MOCK_METHOD1(onSuccess, void(const blink::WebVector<blink::WebString>&));
33 MOCK_METHOD4(onSuccess,
34 void(blink::WebIDBCursor*,
35 const blink::WebIDBKey&,
36 const blink::WebIDBKey& primaryKey,
37 const blink::WebIDBValue&));
38 MOCK_METHOD2(onSuccess,
39 void(blink::WebIDBDatabase*, const blink::WebIDBMetadata&));
40 MOCK_METHOD1(onSuccess, void(const blink::WebIDBKey&));
41 MOCK_METHOD1(onSuccess, void(const blink::WebIDBValue&));
42 MOCK_METHOD1(onSuccess, void(const blink::WebVector<blink::WebIDBValue>&));
43 MOCK_METHOD1(onSuccess, void(long long));
44 MOCK_METHOD0(onSuccess, void());
45 MOCK_METHOD1(onBlocked, void(long long oldVersion));
46 MOCK_METHOD5(onUpgradeNeeded,
47 void(long long oldVersion,
48 blink::WebIDBDatabase*,
49 const blink::WebIDBMetadata&,
50 unsigned short dataLoss,
51 blink::WebString dataLossMessage));
52
53 private:
54 DISALLOW_COPY_AND_ASSIGN(MockWebIDBCallbacks);
55 };
56
57 } // namespace content
58
59 #endif // CONTENT_CHILD_INDEXED_DB_MOCK_WEBIDBCALLBACKS_H_
OLDNEW
« no previous file with comments | « content/child/indexed_db/indexed_db_message_filter.cc ('k') | content/child/indexed_db/mock_webidbcallbacks.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698