added some development tools
[windows-sources.git] / developer / VSSDK / VisualStudioIntegration / Common / Source / CPP / VSL / MockInterfaces / VSLMockIVsWebPreviewAction.h
blob8324f3b57c403982ba037933962ad109fcb2f17e
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 IVSWEBPREVIEWACTION_H_10C49CA1_2F46_11D3_A504_00C04F5E0BA5
15 #define IVSWEBPREVIEWACTION_H_10C49CA1_2F46_11D3_A504_00C04F5E0BA5
17 #if _MSC_VER > 1000
18 #pragma once
19 #endif
21 #include "vsbrowse.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 IVsWebPreviewActionNotImpl :
33 public IVsWebPreviewAction
36 VSL_DECLARE_NONINSTANTIABLE_BASE_CLASS(IVsWebPreviewActionNotImpl)
38 public:
40 typedef IVsWebPreviewAction Interface;
42 STDMETHOD(OnPreviewLoadStart)()VSL_STDMETHOD_NOTIMPL
44 STDMETHOD(OnPreviewClose)()VSL_STDMETHOD_NOTIMPL
46 STDMETHOD(OnPreviewLoaded)(
47 /*[in]*/ IDispatch* /*pDispDocument*/)VSL_STDMETHOD_NOTIMPL
50 class IVsWebPreviewActionMockImpl :
51 public IVsWebPreviewAction,
52 public MockBase
55 VSL_DECLARE_NONINSTANTIABLE_BASE_CLASS(IVsWebPreviewActionMockImpl)
57 public:
59 VSL_DEFINE_MOCK_CLASS_TYPDEFS(IVsWebPreviewActionMockImpl)
61 typedef IVsWebPreviewAction Interface;
62 struct OnPreviewLoadStartValidValues
64 HRESULT retValue;
67 STDMETHOD(OnPreviewLoadStart)()
69 VSL_DEFINE_MOCK_METHOD_NOARGS(OnPreviewLoadStart)
71 VSL_RETURN_VALIDVALUES();
73 struct OnPreviewCloseValidValues
75 HRESULT retValue;
78 STDMETHOD(OnPreviewClose)()
80 VSL_DEFINE_MOCK_METHOD_NOARGS(OnPreviewClose)
82 VSL_RETURN_VALIDVALUES();
84 struct OnPreviewLoadedValidValues
86 /*[in]*/ IDispatch* pDispDocument;
87 HRESULT retValue;
90 STDMETHOD(OnPreviewLoaded)(
91 /*[in]*/ IDispatch* pDispDocument)
93 VSL_DEFINE_MOCK_METHOD(OnPreviewLoaded)
95 VSL_CHECK_VALIDVALUE_INTERFACEPOINTER(pDispDocument);
97 VSL_RETURN_VALIDVALUES();
102 } // namespace VSL
104 #pragma warning(pop)
106 #endif // IVSWEBPREVIEWACTION_H_10C49CA1_2F46_11D3_A504_00C04F5E0BA5