added some development tools
[windows-sources.git] / developer / VSSDK / VisualStudioIntegration / Common / Source / CPP / VSL / MockInterfaces / VSLMockIReferenceInfo.h
blob637666e3de348e5116e875619d4a410505d2c629
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 IREFERENCEINFO_H_10C49CA1_2F46_11D3_A504_00C04F5E0BA5
15 #define IREFERENCEINFO_H_10C49CA1_2F46_11D3_A504_00C04F5E0BA5
17 #if _MSC_VER > 1000
18 #pragma once
19 #endif
21 #include "DiscoveryService.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 IReferenceInfoNotImpl :
33 public IReferenceInfo
36 VSL_DECLARE_NONINSTANTIABLE_BASE_CLASS(IReferenceInfoNotImpl)
38 public:
40 typedef IReferenceInfo Interface;
42 STDMETHOD(GetNodeType)(
43 /*[out,retval]*/ DiscoveryNodeType* /*pType*/)VSL_STDMETHOD_NOTIMPL
45 STDMETHOD(GetUrl)(
46 /*[out,retval]*/ BSTR* /*ppbstrUrl*/)VSL_STDMETHOD_NOTIMPL
49 class IReferenceInfoMockImpl :
50 public IReferenceInfo,
51 public MockBase
54 VSL_DECLARE_NONINSTANTIABLE_BASE_CLASS(IReferenceInfoMockImpl)
56 public:
58 VSL_DEFINE_MOCK_CLASS_TYPDEFS(IReferenceInfoMockImpl)
60 typedef IReferenceInfo Interface;
61 struct GetNodeTypeValidValues
63 /*[out,retval]*/ DiscoveryNodeType* pType;
64 HRESULT retValue;
67 STDMETHOD(GetNodeType)(
68 /*[out,retval]*/ DiscoveryNodeType* pType)
70 VSL_DEFINE_MOCK_METHOD(GetNodeType)
72 VSL_SET_VALIDVALUE(pType);
74 VSL_RETURN_VALIDVALUES();
76 struct GetUrlValidValues
78 /*[out,retval]*/ BSTR* ppbstrUrl;
79 HRESULT retValue;
82 STDMETHOD(GetUrl)(
83 /*[out,retval]*/ BSTR* ppbstrUrl)
85 VSL_DEFINE_MOCK_METHOD(GetUrl)
87 VSL_SET_VALIDVALUE_BSTR(ppbstrUrl);
89 VSL_RETURN_VALIDVALUES();
94 } // namespace VSL
96 #pragma warning(pop)
98 #endif // IREFERENCEINFO_H_10C49CA1_2F46_11D3_A504_00C04F5E0BA5