OLD | NEW |
---|---|
(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 | |
OLD | NEW |