blob: 342b22cd53ed36b224ac492b383cf010513b76d0 (
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
|
// 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 GPU_NP_UTILS_NP_PLUGIN_OBJECT_MOCK_H_
#define GPU_NP_UTILS_NP_PLUGIN_OBJECT_MOCK_H_
#include "gpu/np_utils/np_plugin_object.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace np_utils {
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(Release, void());
MOCK_METHOD0(GetScriptableNPObject, NPObject*());
};
} // namespace np_utils
#endif // GPU_NP_UTILS_NP_PLUGIN_OBJECT_MOCK_H_
|