blob: 904e7571c78424fa880d1b46bba9f52b9b4e822f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
// Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef O3D_GPU_PLUGIN_PLUGIN_OBJECT_MOCK_H_
#define O3D_GPU_PLUGIN_PLUGIN_OBJECT_MOCK_H_
#include "o3d/gpu_plugin/plugin_object.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace o3d {
namespace gpu_plugin {
class MockPluginObject : public PluginObject {
public:
MOCK_METHOD5(New, NPError(NPMIMEType, int16, char*[], char*[], NPSavedData*));
MOCK_METHOD1(SetWindow, NPError(NPWindow*));
MOCK_METHOD1(HandleEvent, int16(NPEvent*));
MOCK_METHOD1(Destroy, NPError(NPSavedData**));
MOCK_METHOD0(GetScriptableInstance, NPObject*());
};
} // namespace gpu_plugin
} // namespace o3d
#endif // O3D_GPU_PLUGIN_PLUGIN_OBJECT_MOCK_H_
|