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

Side by Side Diff: chrome_frame/test/chrome_tab_mocks.h

Issue 8318013: Revert 105803 - Have Chrome Frame build its .idl artifacts into a sub-folder of SHARED_INTERMEDIA... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 2 months 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 | « chrome_frame/test/chrome_frame_test_utils.h ('k') | chrome_frame/test/ie_event_sink.h » ('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) 2011 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 Chrome Frame interfaces. 5 // Mock objects for Chrome Frame interfaces.
6 6
7 #ifndef CHROME_FRAME_TEST_CHROME_TAB_MOCKS_H_ 7 #ifndef CHROME_FRAME_TEST_CHROME_TAB_MOCKS_H_
8 #define CHROME_FRAME_TEST_CHROME_TAB_MOCKS_H_ 8 #define CHROME_FRAME_TEST_CHROME_TAB_MOCKS_H_
9 9
10 #include "chrome_frame/chrome_tab.h"
11 #include "testing/gmock/include/gmock/gmock.h" 10 #include "testing/gmock/include/gmock/gmock.h"
12 11
12 // Include without path to make GYP build see it.
13 #include "chrome_tab.h" // NOLINT
14
13 namespace testing { 15 namespace testing {
14 16
15 class IChromeFramePrivilegedMockImpl : public IChromeFramePrivileged { 17 class IChromeFramePrivilegedMockImpl : public IChromeFramePrivileged {
16 public: 18 public:
17 // Auto-generated by target chrome_frame_privileged_mock 19 // Auto-generated by target chrome_frame_privileged_mock
18 #include "mock_ichromeframeprivileged.gen" // NOLINT 20 #include "mock_ichromeframeprivileged.gen" // NOLINT
19 }; 21 };
20 22
21 class MockIChromeFramePrivileged 23 class MockIChromeFramePrivileged
22 : public CComObjectRootEx<CComSingleThreadModel>, 24 : public CComObjectRootEx<CComSingleThreadModel>,
23 public testing::StrictMock<IChromeFramePrivilegedMockImpl> { 25 public testing::StrictMock<IChromeFramePrivilegedMockImpl> {
24 public: 26 public:
25 DECLARE_NOT_AGGREGATABLE(MockIChromeFramePrivileged) 27 DECLARE_NOT_AGGREGATABLE(MockIChromeFramePrivileged)
26 BEGIN_COM_MAP(MockIChromeFramePrivileged) 28 BEGIN_COM_MAP(MockIChromeFramePrivileged)
27 COM_INTERFACE_ENTRY(IChromeFramePrivileged) 29 COM_INTERFACE_ENTRY(IChromeFramePrivileged)
28 END_COM_MAP() 30 END_COM_MAP()
29 DECLARE_PROTECT_FINAL_CONSTRUCT() 31 DECLARE_PROTECT_FINAL_CONSTRUCT()
30 32
31 HRESULT Initialize(MockIChromeFramePrivileged** cfp) { 33 HRESULT Initialize(MockIChromeFramePrivileged** cfp) {
32 *cfp = this; 34 *cfp = this;
33 return S_OK; 35 return S_OK;
34 } 36 }
35 }; 37 };
36 38
37 } // namespace testing 39 } // namespace testing
38 40
39 #endif // CHROME_FRAME_TEST_CHROME_TAB_MOCKS_H_ 41 #endif // CHROME_FRAME_TEST_CHROME_TAB_MOCKS_H_
OLDNEW
« no previous file with comments | « chrome_frame/test/chrome_frame_test_utils.h ('k') | chrome_frame/test/ie_event_sink.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698