added some development tools
[windows-sources.git] / developer / VSSDK / VisualStudioIntegration / Common / Source / CPP / VSL / MockInterfaces / VSLMockIVsSimpleDocFactory.h
blob9d22d97c33995ed5d485910efcdd8bb494f3f264
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 IVSSIMPLEDOCFACTORY_H_10C49CA1_2F46_11D3_A504_00C04F5E0BA5
15 #define IVSSIMPLEDOCFACTORY_H_10C49CA1_2F46_11D3_A504_00C04F5E0BA5
17 #if _MSC_VER > 1000
18 #pragma once
19 #endif
21 #include "vsshell.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 IVsSimpleDocFactoryNotImpl :
33 public IVsSimpleDocFactory
36 VSL_DECLARE_NONINSTANTIABLE_BASE_CLASS(IVsSimpleDocFactoryNotImpl)
38 public:
40 typedef IVsSimpleDocFactory Interface;
42 STDMETHOD(LoadDocument)(
43 /*[in]*/ LPCOLESTR /*pszMkDocument*/,
44 /*[in]*/ REFIID /*riid*/,
45 /*[out,iid_is(riid)]*/ void** /*ppDocData*/)VSL_STDMETHOD_NOTIMPL
48 class IVsSimpleDocFactoryMockImpl :
49 public IVsSimpleDocFactory,
50 public MockBase
53 VSL_DECLARE_NONINSTANTIABLE_BASE_CLASS(IVsSimpleDocFactoryMockImpl)
55 public:
57 VSL_DEFINE_MOCK_CLASS_TYPDEFS(IVsSimpleDocFactoryMockImpl)
59 typedef IVsSimpleDocFactory Interface;
60 struct LoadDocumentValidValues
62 /*[in]*/ LPCOLESTR pszMkDocument;
63 /*[in]*/ REFIID riid;
64 /*[out,iid_is(riid)]*/ void** ppDocData;
65 HRESULT retValue;
68 STDMETHOD(LoadDocument)(
69 /*[in]*/ LPCOLESTR pszMkDocument,
70 /*[in]*/ REFIID riid,
71 /*[out,iid_is(riid)]*/ void** ppDocData)
73 VSL_DEFINE_MOCK_METHOD(LoadDocument)
75 VSL_CHECK_VALIDVALUE_STRINGW(pszMkDocument);
77 VSL_CHECK_VALIDVALUE(riid);
79 VSL_SET_VALIDVALUE(ppDocData);
81 VSL_RETURN_VALIDVALUES();
86 } // namespace VSL
88 #pragma warning(pop)
90 #endif // IVSSIMPLEDOCFACTORY_H_10C49CA1_2F46_11D3_A504_00C04F5E0BA5