summaryrefslogtreecommitdiffstats
path: root/ceee/testing/utils
diff options
context:
space:
mode:
Diffstat (limited to 'ceee/testing/utils')
-rw-r--r--ceee/testing/utils/mock_com.h9
-rw-r--r--ceee/testing/utils/mock_ioleclientsite.gen15
-rw-r--r--ceee/testing/utils/test_utils.gyp1
3 files changed, 23 insertions, 2 deletions
diff --git a/ceee/testing/utils/mock_com.h b/ceee/testing/utils/mock_com.h
index 36f2d65..23cb233 100644
--- a/ceee/testing/utils/mock_com.h
+++ b/ceee/testing/utils/mock_com.h
@@ -22,6 +22,13 @@
namespace testing {
+class IOleClientSiteMockImpl : public IOleClientSite {
+ // The methods in this class are code generated using this command line:
+ // [ ceee\testing\utils\com_mock.py IOleClientSite \
+ // "%WindowsSdkDir%\Include\OleIdl.h" ]
+#include "ceee/testing/utils/mock_ioleclientsite.gen"
+};
+
class IOleObjecMockImpl: public IOleObject {
public:
// The methods in this class are code generated using this command line:
@@ -139,7 +146,7 @@ class ITravelLogStgMockImpl : public ITravelLogStg {
class MockIServiceProvider
: public CComObjectRootEx<CComSingleThreadModel>,
public testing::StrictMock<IServiceProviderMockImpl> {
- DECLARE_NOT_AGGREGATABLE(MockIServiceProvider )
+ DECLARE_NOT_AGGREGATABLE(MockIServiceProvider)
BEGIN_COM_MAP(MockIServiceProvider)
COM_INTERFACE_ENTRY(IServiceProvider)
END_COM_MAP()
diff --git a/ceee/testing/utils/mock_ioleclientsite.gen b/ceee/testing/utils/mock_ioleclientsite.gen
new file mode 100644
index 0000000..a1cce79
--- /dev/null
+++ b/ceee/testing/utils/mock_ioleclientsite.gen
@@ -0,0 +1,15 @@
+// Copyright (c) 2010 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+//
+// Auto-generated by com_mock.py
+
+
+MOCK_METHOD0_WITH_CALLTYPE(__stdcall, SaveObject, HRESULT());
+MOCK_METHOD3_WITH_CALLTYPE(__stdcall, GetMoniker, HRESULT(
+ DWORD dwAssign, DWORD dwWhichMoniker, IMoniker **ppmk));
+MOCK_METHOD1_WITH_CALLTYPE(__stdcall, GetContainer, HRESULT(
+ IOleContainer **ppContainer));
+MOCK_METHOD0_WITH_CALLTYPE(__stdcall, ShowObject, HRESULT());
+MOCK_METHOD1_WITH_CALLTYPE(__stdcall, OnShowWindow, HRESULT(BOOL fShow));
+MOCK_METHOD0_WITH_CALLTYPE(__stdcall, RequestNewObjectLayout, HRESULT());
diff --git a/ceee/testing/utils/test_utils.gyp b/ceee/testing/utils/test_utils.gyp
index 7a62688..33f7c4b 100644
--- a/ceee/testing/utils/test_utils.gyp
+++ b/ceee/testing/utils/test_utils.gyp
@@ -54,7 +54,6 @@
'mshtml_mocks.h',
'mshtml_mocks.py',
'com_mock.py',
- '<(SHARED_INTERMEDIATE_DIR)/mshtml_mocks.gen',
],
'actions': [
{