Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(193)

Side by Side Diff: ceee/testing/utils/mock_com.h

Issue 4563001: Adding a privileged callback used in IE CF to check whether to show... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « ceee/ie/plugin/toolband/toolband.gyp ('k') | ceee/testing/utils/mock_ioleclientsite.gen » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 // 4 //
5 // Mock objects for various COM interfaces. 5 // Mock objects for various COM interfaces.
6 6
7 #ifndef CEEE_TESTING_UTILS_MOCK_COM_H_ 7 #ifndef CEEE_TESTING_UTILS_MOCK_COM_H_
8 #define CEEE_TESTING_UTILS_MOCK_COM_H_ 8 #define CEEE_TESTING_UTILS_MOCK_COM_H_
9 9
10 #include <atlbase.h> 10 #include <atlbase.h>
11 #include <atlcom.h> 11 #include <atlcom.h>
12 #include <dispex.h> 12 #include <dispex.h>
13 #include <exdisp.h> 13 #include <exdisp.h>
14 #include <mshtml.h> 14 #include <mshtml.h>
15 #include <objsafe.h> 15 #include <objsafe.h>
16 #include <tlogstg.h> 16 #include <tlogstg.h>
17 17
18 #include "third_party/activscp/activscp.h" 18 #include "third_party/activscp/activscp.h"
19 #include "third_party/activscp/activdbg.h" 19 #include "third_party/activscp/activdbg.h"
20 20
21 #include "testing/gmock/include/gmock/gmock.h" 21 #include "testing/gmock/include/gmock/gmock.h"
22 22
23 namespace testing { 23 namespace testing {
24 24
25 class IOleClientSiteMockImpl : public IOleClientSite {
26 // The methods in this class are code generated using this command line:
27 // [ ceee\testing\utils\com_mock.py IOleClientSite \
28 // "%WindowsSdkDir%\Include\OleIdl.h" ]
29 #include "ceee/testing/utils/mock_ioleclientsite.gen"
30 };
31
25 class IOleObjecMockImpl: public IOleObject { 32 class IOleObjecMockImpl: public IOleObject {
26 public: 33 public:
27 // The methods in this class are code generated using this command line: 34 // The methods in this class are code generated using this command line:
28 // [ ceee\testing\utils\com_mock.py IOleObject \ 35 // [ ceee\testing\utils\com_mock.py IOleObject \
29 // "%WindowsSdkDir%\Include\OleIdl.h" ] 36 // "%WindowsSdkDir%\Include\OleIdl.h" ]
30 #include "ceee/testing/utils/mock_ioleobject.gen" 37 #include "ceee/testing/utils/mock_ioleobject.gen"
31 }; 38 };
32 39
33 class IServiceProviderMockImpl : public IServiceProvider { 40 class IServiceProviderMockImpl : public IServiceProvider {
34 public: 41 public:
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
132 public: 139 public:
133 // The methods in this class are code generated using this command line: 140 // The methods in this class are code generated using this command line:
134 // [ ceee\testing\utils\com_mock.py ITravelLogStg \ 141 // [ ceee\testing\utils\com_mock.py ITravelLogStg \
135 // "%WindowsSdkDir%\Include\tlogstg.h" ] 142 // "%WindowsSdkDir%\Include\tlogstg.h" ]
136 #include "ceee/testing/utils/mock_itravellogstg.gen" 143 #include "ceee/testing/utils/mock_itravellogstg.gen"
137 }; 144 };
138 145
139 class MockIServiceProvider 146 class MockIServiceProvider
140 : public CComObjectRootEx<CComSingleThreadModel>, 147 : public CComObjectRootEx<CComSingleThreadModel>,
141 public testing::StrictMock<IServiceProviderMockImpl> { 148 public testing::StrictMock<IServiceProviderMockImpl> {
142 DECLARE_NOT_AGGREGATABLE(MockIServiceProvider ) 149 DECLARE_NOT_AGGREGATABLE(MockIServiceProvider)
143 BEGIN_COM_MAP(MockIServiceProvider) 150 BEGIN_COM_MAP(MockIServiceProvider)
144 COM_INTERFACE_ENTRY(IServiceProvider) 151 COM_INTERFACE_ENTRY(IServiceProvider)
145 END_COM_MAP() 152 END_COM_MAP()
146 DECLARE_PROTECT_FINAL_CONSTRUCT() 153 DECLARE_PROTECT_FINAL_CONSTRUCT()
147 154
148 HRESULT Initialize(MockIServiceProvider** browser) { 155 HRESULT Initialize(MockIServiceProvider** browser) {
149 *browser = this; 156 *browser = this;
150 return S_OK; 157 return S_OK;
151 } 158 }
152 }; 159 };
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
220 DECLARE_NOT_AGGREGATABLE(MockITravelLogStg) 227 DECLARE_NOT_AGGREGATABLE(MockITravelLogStg)
221 BEGIN_COM_MAP(MockITravelLogStg) 228 BEGIN_COM_MAP(MockITravelLogStg)
222 COM_INTERFACE_ENTRY(ITravelLogStg) 229 COM_INTERFACE_ENTRY(ITravelLogStg)
223 END_COM_MAP() 230 END_COM_MAP()
224 DECLARE_PROTECT_FINAL_CONSTRUCT() 231 DECLARE_PROTECT_FINAL_CONSTRUCT()
225 }; 232 };
226 233
227 } // namespace testing 234 } // namespace testing
228 235
229 #endif // CEEE_TESTING_UTILS_MOCK_COM_H_ 236 #endif // CEEE_TESTING_UTILS_MOCK_COM_H_
OLDNEW
« no previous file with comments | « ceee/ie/plugin/toolband/toolband.gyp ('k') | ceee/testing/utils/mock_ioleclientsite.gen » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698