added some development tools
[windows-sources.git] / developer / VSSDK / VisualStudioIntegration / Common / Source / CPP / VSL / MockInterfaces / VSLMockIVsTextImage2.h
bloba48fd2828b16bd06b5700a943ea0d09ac5046285
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 IVSTEXTIMAGE2_H_10C49CA1_2F46_11D3_A504_00C04F5E0BA5
15 #define IVSTEXTIMAGE2_H_10C49CA1_2F46_11D3_A504_00C04F5E0BA5
17 #if _MSC_VER > 1000
18 #pragma once
19 #endif
21 #include "textmgr2.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 IVsTextImage2NotImpl :
33 public IVsTextImage2
36 VSL_DECLARE_NONINSTANTIABLE_BASE_CLASS(IVsTextImage2NotImpl)
38 public:
40 typedef IVsTextImage2 Interface;
42 STDMETHOD(GetEolTypeEx)(
43 /*[in]*/ const LINEDATAEX* /*pld*/,
44 /*[out]*/ DWORD* /*piEolType*/)VSL_STDMETHOD_NOTIMPL
46 STDMETHOD(GetEolLengthEx)(
47 /*[in]*/ const LINEDATAEX* /*pld*/,
48 /*[out]*/ unsigned int* /*piEolType*/)VSL_STDMETHOD_NOTIMPL
50 STDMETHOD(GetEolTextEx)(
51 /*[in]*/ const LINEDATAEX* /*pld*/,
52 /*[out]*/ BSTR* /*pbstrEolText*/)VSL_STDMETHOD_NOTIMPL
55 class IVsTextImage2MockImpl :
56 public IVsTextImage2,
57 public MockBase
60 VSL_DECLARE_NONINSTANTIABLE_BASE_CLASS(IVsTextImage2MockImpl)
62 public:
64 VSL_DEFINE_MOCK_CLASS_TYPDEFS(IVsTextImage2MockImpl)
66 typedef IVsTextImage2 Interface;
67 struct GetEolTypeExValidValues
69 /*[in]*/ LINEDATAEX* pld;
70 /*[out]*/ DWORD* piEolType;
71 HRESULT retValue;
74 STDMETHOD(GetEolTypeEx)(
75 /*[in]*/ const LINEDATAEX* pld,
76 /*[out]*/ DWORD* piEolType)
78 VSL_DEFINE_MOCK_METHOD(GetEolTypeEx)
80 VSL_CHECK_VALIDVALUE_POINTER(pld);
82 VSL_SET_VALIDVALUE(piEolType);
84 VSL_RETURN_VALIDVALUES();
86 struct GetEolLengthExValidValues
88 /*[in]*/ LINEDATAEX* pld;
89 /*[out]*/ unsigned int* piEolType;
90 HRESULT retValue;
93 STDMETHOD(GetEolLengthEx)(
94 /*[in]*/ const LINEDATAEX* pld,
95 /*[out]*/ unsigned int* piEolType)
97 VSL_DEFINE_MOCK_METHOD(GetEolLengthEx)
99 VSL_CHECK_VALIDVALUE_POINTER(pld);
101 VSL_SET_VALIDVALUE(piEolType);
103 VSL_RETURN_VALIDVALUES();
105 struct GetEolTextExValidValues
107 /*[in]*/ LINEDATAEX* pld;
108 /*[out]*/ BSTR* pbstrEolText;
109 HRESULT retValue;
112 STDMETHOD(GetEolTextEx)(
113 /*[in]*/ const LINEDATAEX* pld,
114 /*[out]*/ BSTR* pbstrEolText)
116 VSL_DEFINE_MOCK_METHOD(GetEolTextEx)
118 VSL_CHECK_VALIDVALUE_POINTER(pld);
120 VSL_SET_VALIDVALUE_BSTR(pbstrEolText);
122 VSL_RETURN_VALIDVALUES();
127 } // namespace VSL
129 #pragma warning(pop)
131 #endif // IVSTEXTIMAGE2_H_10C49CA1_2F46_11D3_A504_00C04F5E0BA5