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

Unified Diff: chrome_frame/test/chrome_tab_mocks.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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome_frame/test/chrome_frame_activex_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome_frame/test/chrome_tab_mocks.h
===================================================================
--- chrome_frame/test/chrome_tab_mocks.h (revision 0)
+++ chrome_frame/test/chrome_tab_mocks.h (revision 0)
@@ -0,0 +1,41 @@
+// 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.
+//
+// Mock objects for Chrome Frame interfaces.
+
+#ifndef CHROME_FRAME_TEST_CHROME_TAB_MOCKS_H_
+#define CHROME_FRAME_TEST_CHROME_TAB_MOCKS_H_
+
+#include "testing/gmock/include/gmock/gmock.h"
+
+// Include without path to make GYP build see it.
+#include "chrome_tab.h" // NOLINT
+
+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_
Property changes on: chrome_frame\test\chrome_tab_mocks.h
___________________________________________________________________
Added: svn:eol-style
+ LF
« no previous file with comments | « chrome_frame/test/chrome_frame_activex_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698