OLD | NEW |
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 #ifndef CHROME_FRAME_TEST_URLMON_MONIKER_TESTS_H_ | 5 #ifndef CHROME_FRAME_TEST_URLMON_MONIKER_TESTS_H_ |
6 #define CHROME_FRAME_TEST_URLMON_MONIKER_TESTS_H_ | 6 #define CHROME_FRAME_TEST_URLMON_MONIKER_TESTS_H_ |
7 | 7 |
8 #include <atlbase.h> | 8 #include <atlbase.h> |
9 #include <atlcom.h> | 9 #include <atlcom.h> |
10 | 10 |
| 11 #include "base/win/atlcheck.h" |
11 #include "gmock/gmock.h" | 12 #include "gmock/gmock.h" |
12 #include "gtest/gtest.h" | 13 #include "gtest/gtest.h" |
13 | 14 |
14 class MockBindStatusCallbackImpl | 15 class MockBindStatusCallbackImpl |
15 : public CComObjectRootEx<CComSingleThreadModel>, | 16 : public CComObjectRootEx<CComSingleThreadModel>, |
16 public IBindStatusCallback { | 17 public IBindStatusCallback { |
17 public: | 18 public: |
18 BEGIN_COM_MAP(MockBindStatusCallbackImpl) | 19 BEGIN_COM_MAP(MockBindStatusCallbackImpl) |
19 COM_INTERFACE_ENTRY(IBindStatusCallback) | 20 COM_INTERFACE_ENTRY(IBindStatusCallback) |
20 END_COM_MAP() | 21 END_COM_MAP() |
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
163 IMoniker* left, | 164 IMoniker* left, |
164 LPOLESTR display_name, | 165 LPOLESTR display_name, |
165 ULONG *pchEaten, | 166 ULONG *pchEaten, |
166 IMoniker** ret)); | 167 IMoniker** ret)); |
167 | 168 |
168 MOCK_METHOD1_WITH_CALLTYPE(__stdcall, IsSystemMoniker, | 169 MOCK_METHOD1_WITH_CALLTYPE(__stdcall, IsSystemMoniker, |
169 HRESULT (DWORD* is_system)); // NOLINT | 170 HRESULT (DWORD* is_system)); // NOLINT |
170 }; | 171 }; |
171 | 172 |
172 #endif // CHROME_FRAME_TEST_URLMON_MONIKER_TESTS_H_ | 173 #endif // CHROME_FRAME_TEST_URLMON_MONIKER_TESTS_H_ |
OLD | NEW |