| Index: o3d/gpu_plugin/np_utils/base_np_object_mock.h
|
| ===================================================================
|
| --- o3d/gpu_plugin/np_utils/base_np_object_mock.h (revision 25135)
|
| +++ o3d/gpu_plugin/np_utils/base_np_object_mock.h (working copy)
|
| @@ -1,47 +0,0 @@
|
| -// 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_NP_UTILS_BASE_NP_OBJECT_MOCK_H_
|
| -#define O3D_GPU_PLUGIN_NP_UTILS_BASE_NP_OBJECT_MOCK_H_
|
| -
|
| -#include "o3d/gpu_plugin/np_utils/base_np_object.h"
|
| -#include "testing/gmock/include/gmock/gmock.h"
|
| -
|
| -namespace o3d {
|
| -namespace gpu_plugin {
|
| -
|
| -class MockBaseNPObject : public BaseNPObject {
|
| - public:
|
| - explicit MockBaseNPObject(NPP npp) : BaseNPObject(npp) {
|
| - ++count_;
|
| - }
|
| -
|
| - ~MockBaseNPObject() {
|
| - --count_;
|
| - }
|
| -
|
| - static int count() {
|
| - return count_;
|
| - }
|
| -
|
| - MOCK_METHOD0(Invalidate, void());
|
| - MOCK_METHOD1(HasMethod, bool(NPIdentifier));
|
| - MOCK_METHOD4(Invoke,
|
| - bool(NPIdentifier, const NPVariant*, uint32_t, NPVariant*));
|
| - MOCK_METHOD3(InvokeDefault, bool(const NPVariant*, uint32_t, NPVariant*));
|
| - MOCK_METHOD1(HasProperty, bool(NPIdentifier));
|
| - MOCK_METHOD2(GetProperty, bool(NPIdentifier, NPVariant*));
|
| - MOCK_METHOD2(SetProperty, bool(NPIdentifier, const NPVariant*));
|
| - MOCK_METHOD1(RemoveProperty, bool(NPIdentifier));
|
| - MOCK_METHOD2(Enumerate, bool(NPIdentifier**, uint32_t*));
|
| - MOCK_METHOD3(Construct, bool(const NPVariant*, uint32_t, NPVariant*));
|
| -
|
| - private:
|
| - static int count_;
|
| -};
|
| -
|
| -} // namespace gpu_plugin
|
| -} // namespace o3d
|
| -
|
| -#endif // O3D_GPU_PLUGIN_NP_UTILS_BASE_NP_OBJECT_MOCK_H_
|
|
|