added some development tools
[windows-sources.git] / developer / VSSDK / VisualStudioIntegration / Common / Source / CPP / VSL / MockInterfaces / VSLMockIVsObjectManagerEvents.h
blob33d6789feacb114dd329a55f93abc8cc0c88b318
1 /***************************************************************************
3 Copyright (c) Microsoft Corporation. All rights reserved.
4 This code is licensed under the Visual Studio SDK license terms.
5 THIS CODE IS PROVIDED *AS IS* WITHOUT WARRANTY OF
6 ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY
7 IMPLIED WARRANTIES OF FITNESS FOR A PARTICULAR
8 PURPOSE, MERCHANTABILITY, OR NON-INFRINGEMENT.
10 This code is a part of the Visual Studio Library.
12 ***************************************************************************/
14 #ifndef IVSOBJECTMANAGEREVENTS_H_10C49CA1_2F46_11D3_A504_00C04F5E0BA5
15 #define IVSOBJECTMANAGEREVENTS_H_10C49CA1_2F46_11D3_A504_00C04F5E0BA5
17 #if _MSC_VER > 1000
18 #pragma once
19 #endif
21 #include "vsshell.h"
23 #pragma warning(push)
24 #pragma warning(disable : 4510) // default constructor could not be generated
25 #pragma warning(disable : 4610) // can never be instantiated - user defined constructor required
26 #pragma warning(disable : 4512) // assignment operator could not be generated
27 #pragma warning(disable : 6011) // Dereferencing NULL pointer (a NULL derference is just another kind of failure for a unit test
29 namespace VSL
32 class IVsObjectManagerEventsNotImpl :
33 public IVsObjectManagerEvents
36 VSL_DECLARE_NONINSTANTIABLE_BASE_CLASS(IVsObjectManagerEventsNotImpl)
38 public:
40 typedef IVsObjectManagerEvents Interface;
42 STDMETHOD(OnBeforeSubsetChange)()VSL_STDMETHOD_NOTIMPL
44 STDMETHOD(OnAfterSubsetChange)()VSL_STDMETHOD_NOTIMPL
47 class IVsObjectManagerEventsMockImpl :
48 public IVsObjectManagerEvents,
49 public MockBase
52 VSL_DECLARE_NONINSTANTIABLE_BASE_CLASS(IVsObjectManagerEventsMockImpl)
54 public:
56 VSL_DEFINE_MOCK_CLASS_TYPDEFS(IVsObjectManagerEventsMockImpl)
58 typedef IVsObjectManagerEvents Interface;
59 struct OnBeforeSubsetChangeValidValues
61 HRESULT retValue;
64 STDMETHOD(OnBeforeSubsetChange)()
66 VSL_DEFINE_MOCK_METHOD_NOARGS(OnBeforeSubsetChange)
68 VSL_RETURN_VALIDVALUES();
70 struct OnAfterSubsetChangeValidValues
72 HRESULT retValue;
75 STDMETHOD(OnAfterSubsetChange)()
77 VSL_DEFINE_MOCK_METHOD_NOARGS(OnAfterSubsetChange)
79 VSL_RETURN_VALIDVALUES();
84 } // namespace VSL
86 #pragma warning(pop)
88 #endif // IVSOBJECTMANAGEREVENTS_H_10C49CA1_2F46_11D3_A504_00C04F5E0BA5