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 IVSSCCMANAGERTOOLTIP_H_10C49CA1_2F46_11D3_A504_00C04F5E0BA5
15 #define IVSSCCMANAGERTOOLTIP_H_10C49CA1_2F46_11D3_A504_00C04F5E0BA5
21 #include "IVsSccManagerTooltip.h"
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
32 class IVsSccManagerTooltipNotImpl
:
33 public IVsSccManagerTooltip
36 VSL_DECLARE_NONINSTANTIABLE_BASE_CLASS(IVsSccManagerTooltipNotImpl
)
40 typedef IVsSccManagerTooltip Interface
;
42 STDMETHOD(GetGlyphTipText
)(
43 /*[in]*/ IVsHierarchy
* /*phierHierarchy*/,
44 /*[in]*/ VSITEMID
/*itemidNode*/,
45 /*[out,retval]*/ BSTR
* /*pbstrTooltipText*/)VSL_STDMETHOD_NOTIMPL
48 class IVsSccManagerTooltipMockImpl
:
49 public IVsSccManagerTooltip
,
53 VSL_DECLARE_NONINSTANTIABLE_BASE_CLASS(IVsSccManagerTooltipMockImpl
)
57 VSL_DEFINE_MOCK_CLASS_TYPDEFS(IVsSccManagerTooltipMockImpl
)
59 typedef IVsSccManagerTooltip Interface
;
60 struct GetGlyphTipTextValidValues
62 /*[in]*/ IVsHierarchy
* phierHierarchy
;
63 /*[in]*/ VSITEMID itemidNode
;
64 /*[out,retval]*/ BSTR
* pbstrTooltipText
;
68 STDMETHOD(GetGlyphTipText
)(
69 /*[in]*/ IVsHierarchy
* phierHierarchy
,
70 /*[in]*/ VSITEMID itemidNode
,
71 /*[out,retval]*/ BSTR
* pbstrTooltipText
)
73 VSL_DEFINE_MOCK_METHOD(GetGlyphTipText
)
75 VSL_CHECK_VALIDVALUE_INTERFACEPOINTER(phierHierarchy
);
77 VSL_CHECK_VALIDVALUE(itemidNode
);
79 VSL_SET_VALIDVALUE_BSTR(pbstrTooltipText
);
81 VSL_RETURN_VALIDVALUES();
90 #endif // IVSSCCMANAGERTOOLTIP_H_10C49CA1_2F46_11D3_A504_00C04F5E0BA5