blob: feb488fce557db471d129333868d99e6a07c186a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
// Copyright (c) 2011 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.
//
// Mock objects for Chrome Frame interfaces.
#ifndef CHROME_FRAME_TEST_CHROME_TAB_MOCKS_H_
#define CHROME_FRAME_TEST_CHROME_TAB_MOCKS_H_
#include "chrome_frame/chrome_tab.h"
#include "testing/gmock/include/gmock/gmock.h"
namespace testing {
class IChromeFramePrivilegedMockImpl : public IChromeFramePrivileged {
public:
// Auto-generated by target chrome_frame_privileged_mock
#include "mock_ichromeframeprivileged.gen" // NOLINT
};
class MockIChromeFramePrivileged
: public CComObjectRootEx<CComSingleThreadModel>,
public testing::StrictMock<IChromeFramePrivilegedMockImpl> {
public:
DECLARE_NOT_AGGREGATABLE(MockIChromeFramePrivileged)
BEGIN_COM_MAP(MockIChromeFramePrivileged)
COM_INTERFACE_ENTRY(IChromeFramePrivileged)
END_COM_MAP()
DECLARE_PROTECT_FINAL_CONSTRUCT()
HRESULT Initialize(MockIChromeFramePrivileged** cfp) {
*cfp = this;
return S_OK;
}
};
} // namespace testing
#endif // CHROME_FRAME_TEST_CHROME_TAB_MOCKS_H_
|