OLD | NEW |
| (Empty) |
1 // Copyright (c) 2006-2008 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 GPU_NP_UTILS_NP_PLUGIN_OBJECT_MOCK_H_ | |
6 #define GPU_NP_UTILS_NP_PLUGIN_OBJECT_MOCK_H_ | |
7 | |
8 #include "gpu/np_utils/np_plugin_object.h" | |
9 #include "testing/gmock/include/gmock/gmock.h" | |
10 #include "testing/gtest/include/gtest/gtest.h" | |
11 | |
12 namespace np_utils { | |
13 | |
14 class MockPluginObject : public PluginObject { | |
15 public: | |
16 MOCK_METHOD5(New, NPError(NPMIMEType, int16, char*[], char*[], NPSavedData*)); | |
17 MOCK_METHOD1(SetWindow, NPError(NPWindow*)); | |
18 MOCK_METHOD1(HandleEvent, int16(NPEvent*)); | |
19 MOCK_METHOD1(Destroy, NPError(NPSavedData**)); | |
20 MOCK_METHOD0(Release, void()); | |
21 MOCK_METHOD0(GetScriptableNPObject, NPObject*()); | |
22 }; | |
23 | |
24 } // namespace np_utils | |
25 | |
26 #endif // GPU_NP_UTILS_NP_PLUGIN_OBJECT_MOCK_H_ | |
OLD | NEW |