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 IVSSYNTHETICTEXTMANAGER_H_10C49CA1_2F46_11D3_A504_00C04F5E0BA5
15 #define IVSSYNTHETICTEXTMANAGER_H_10C49CA1_2F46_11D3_A504_00C04F5E0BA5
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 IVsSyntheticTextManagerNotImpl
:
33 public IVsSyntheticTextManager
36 VSL_DECLARE_NONINSTANTIABLE_BASE_CLASS(IVsSyntheticTextManagerNotImpl
)
40 typedef IVsSyntheticTextManager Interface
;
42 STDMETHOD(GetSyntheticTextSession
)(
43 /*[in]*/ IUnknown
* /*pOwningObject*/,
44 /*[out]*/ IVsSyntheticTextSession
** /*ppSession*/)VSL_STDMETHOD_NOTIMPL
46 STDMETHOD(CreateSyntheticTextSession
)(
47 /*[in]*/ DWORD
/*dwFlags*/,
48 /*[in]*/ IUnknown
* /*pOwningObject*/,
49 /*[in]*/ IVsSyntheticTextClient
* /*pClient*/,
50 /*[out]*/ IVsSyntheticTextSession
** /*ppState*/)VSL_STDMETHOD_NOTIMPL
53 class IVsSyntheticTextManagerMockImpl
:
54 public IVsSyntheticTextManager
,
58 VSL_DECLARE_NONINSTANTIABLE_BASE_CLASS(IVsSyntheticTextManagerMockImpl
)
62 VSL_DEFINE_MOCK_CLASS_TYPDEFS(IVsSyntheticTextManagerMockImpl
)
64 typedef IVsSyntheticTextManager Interface
;
65 struct GetSyntheticTextSessionValidValues
67 /*[in]*/ IUnknown
* pOwningObject
;
68 /*[out]*/ IVsSyntheticTextSession
** ppSession
;
72 STDMETHOD(GetSyntheticTextSession
)(
73 /*[in]*/ IUnknown
* pOwningObject
,
74 /*[out]*/ IVsSyntheticTextSession
** ppSession
)
76 VSL_DEFINE_MOCK_METHOD(GetSyntheticTextSession
)
78 VSL_CHECK_VALIDVALUE_INTERFACEPOINTER(pOwningObject
);
80 VSL_SET_VALIDVALUE_INTERFACE(ppSession
);
82 VSL_RETURN_VALIDVALUES();
84 struct CreateSyntheticTextSessionValidValues
86 /*[in]*/ DWORD dwFlags
;
87 /*[in]*/ IUnknown
* pOwningObject
;
88 /*[in]*/ IVsSyntheticTextClient
* pClient
;
89 /*[out]*/ IVsSyntheticTextSession
** ppState
;
93 STDMETHOD(CreateSyntheticTextSession
)(
94 /*[in]*/ DWORD dwFlags
,
95 /*[in]*/ IUnknown
* pOwningObject
,
96 /*[in]*/ IVsSyntheticTextClient
* pClient
,
97 /*[out]*/ IVsSyntheticTextSession
** ppState
)
99 VSL_DEFINE_MOCK_METHOD(CreateSyntheticTextSession
)
101 VSL_CHECK_VALIDVALUE(dwFlags
);
103 VSL_CHECK_VALIDVALUE_INTERFACEPOINTER(pOwningObject
);
105 VSL_CHECK_VALIDVALUE_INTERFACEPOINTER(pClient
);
107 VSL_SET_VALIDVALUE_INTERFACE(ppState
);
109 VSL_RETURN_VALIDVALUES();
118 #endif // IVSSYNTHETICTEXTMANAGER_H_10C49CA1_2F46_11D3_A504_00C04F5E0BA5