added some development tools
[windows-sources.git] / developer / VSSDK / VisualStudioIntegration / Common / Source / CPP / VSL / MockInterfaces / VSLMockIVsEditorGoBackLocations.h
blobd29eea8c216ef0b7274d6534ccd55ce599a8fa8a
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 IVSEDITORGOBACKLOCATIONS_H_10C49CA1_2F46_11D3_A504_00C04F5E0BA5
15 #define IVSEDITORGOBACKLOCATIONS_H_10C49CA1_2F46_11D3_A504_00C04F5E0BA5
17 #if _MSC_VER > 1000
18 #pragma once
19 #endif
21 #include "textmgr.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 IVsEditorGoBackLocationsNotImpl :
33 public IVsEditorGoBackLocations
36 VSL_DECLARE_NONINSTANTIABLE_BASE_CLASS(IVsEditorGoBackLocationsNotImpl)
38 public:
40 typedef IVsEditorGoBackLocations Interface;
42 STDMETHOD(SetNonMergeableGoBackLocation)(
43 /*[in]*/ BOOL /*fCurrentCaretPos*/,
44 /*[in]*/ long /*iBaseLine*/,
45 /*[in]*/ long /*iBaseCol*/)VSL_STDMETHOD_NOTIMPL
47 STDMETHOD(SetMergeableGoBackLocation)(
48 /*[in]*/ BOOL /*fCurrentCaretPos*/,
49 /*[in]*/ long /*iBaseLine*/,
50 /*[in]*/ long /*iBaseCol*/)VSL_STDMETHOD_NOTIMPL
53 class IVsEditorGoBackLocationsMockImpl :
54 public IVsEditorGoBackLocations,
55 public MockBase
58 VSL_DECLARE_NONINSTANTIABLE_BASE_CLASS(IVsEditorGoBackLocationsMockImpl)
60 public:
62 VSL_DEFINE_MOCK_CLASS_TYPDEFS(IVsEditorGoBackLocationsMockImpl)
64 typedef IVsEditorGoBackLocations Interface;
65 struct SetNonMergeableGoBackLocationValidValues
67 /*[in]*/ BOOL fCurrentCaretPos;
68 /*[in]*/ long iBaseLine;
69 /*[in]*/ long iBaseCol;
70 HRESULT retValue;
73 STDMETHOD(SetNonMergeableGoBackLocation)(
74 /*[in]*/ BOOL fCurrentCaretPos,
75 /*[in]*/ long iBaseLine,
76 /*[in]*/ long iBaseCol)
78 VSL_DEFINE_MOCK_METHOD(SetNonMergeableGoBackLocation)
80 VSL_CHECK_VALIDVALUE(fCurrentCaretPos);
82 VSL_CHECK_VALIDVALUE(iBaseLine);
84 VSL_CHECK_VALIDVALUE(iBaseCol);
86 VSL_RETURN_VALIDVALUES();
88 struct SetMergeableGoBackLocationValidValues
90 /*[in]*/ BOOL fCurrentCaretPos;
91 /*[in]*/ long iBaseLine;
92 /*[in]*/ long iBaseCol;
93 HRESULT retValue;
96 STDMETHOD(SetMergeableGoBackLocation)(
97 /*[in]*/ BOOL fCurrentCaretPos,
98 /*[in]*/ long iBaseLine,
99 /*[in]*/ long iBaseCol)
101 VSL_DEFINE_MOCK_METHOD(SetMergeableGoBackLocation)
103 VSL_CHECK_VALIDVALUE(fCurrentCaretPos);
105 VSL_CHECK_VALIDVALUE(iBaseLine);
107 VSL_CHECK_VALIDVALUE(iBaseCol);
109 VSL_RETURN_VALIDVALUES();
114 } // namespace VSL
116 #pragma warning(pop)
118 #endif // IVSEDITORGOBACKLOCATIONS_H_10C49CA1_2F46_11D3_A504_00C04F5E0BA5