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

Side by Side Diff: third_party/WebKit/Source/modules/payments/MockFunction.h

Issue 2048823004: PaymentRequest.abort() should return a promise. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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 2016 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 MockFunction_h
6 #define MockFunction_h
7
8 #include "bindings/core/v8/ScriptFunction.h"
9 #include "testing/gmock/include/gmock/gmock.h"
10
11 namespace blink {
12
13 class ScriptState;
14 class ScriptValue;
15
16 class MockFunction : public ScriptFunction {
Marijn Kruisselbrink 2016/06/08 22:44:12 I'm a bit uncomfortable with having something name
haraken 2016/06/09 01:57:58 It would be better to move this class to V8Binding
please use gerrit instead 2016/06/09 22:36:14 Actually, turns out this implementation of MockFun
17 public:
18 static v8::Local<v8::Function> noExpectations(ScriptState*);
19 static v8::Local<v8::Function> expectCall(ScriptState*);
20 static v8::Local<v8::Function> expectNoCall(ScriptState*);
21
22 private:
23 explicit MockFunction(ScriptState*);
24
25 MOCK_METHOD1(call, ScriptValue(ScriptValue));
26 };
27
28 } // namespace blink
29
30 #endif // MockFunction_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698