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_FACTORY_MOCK_H_ | |
6 #define GPU_NP_UTILS_NP_PLUGIN_OBJECT_FACTORY_MOCK_H_ | |
7 | |
8 #include "gpu/np_utils/np_plugin_object_factory.h" | |
9 #include "testing/gmock/include/gmock/gmock.h" | |
10 #include "testing/gtest/include/gtest/gtest.h" | |
11 | |
12 namespace np_utils { | |
13 | |
14 // Mockable factory used to create instances of PluginObject based on plugin | |
15 // mime type. | |
16 class MockPluginObjectFactory : public NPPluginObjectFactory { | |
17 public: | |
18 MOCK_METHOD2(CreatePluginObject, PluginObject*(NPP, NPMIMEType)); | |
19 }; | |
20 | |
21 } // namespace np_utils | |
22 | |
23 #endif // GPU_NP_UTILS_NP_PLUGIN_OBJECT_FACTORY_MOCK_H_ | |
OLD | NEW |