OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_AUTOMATION_CLIENT_MOCK_H_ | 5 #ifndef CHROME_FRAME_TEST_AUTOMATION_CLIENT_MOCK_H_ |
6 #define CHROME_FRAME_TEST_AUTOMATION_CLIENT_MOCK_H_ | 6 #define CHROME_FRAME_TEST_AUTOMATION_CLIENT_MOCK_H_ |
7 | 7 |
8 #include <windows.h> | 8 #include <windows.h> |
9 #include <string> | 9 #include <string> |
10 | 10 |
11 #include "base/string_util.h" | 11 #include "base/strings/string_util.h" |
12 #include "chrome_frame/chrome_frame_automation.h" | 12 #include "chrome_frame/chrome_frame_automation.h" |
13 #include "chrome_frame/test/chrome_frame_test_utils.h" | 13 #include "chrome_frame/test/chrome_frame_test_utils.h" |
14 #include "chrome_frame/test/proxy_factory_mock.h" | 14 #include "chrome_frame/test/proxy_factory_mock.h" |
15 #include "chrome_frame/utils.h" | 15 #include "chrome_frame/utils.h" |
16 #include "gmock/gmock.h" | 16 #include "gmock/gmock.h" |
17 | 17 |
18 using testing::StrictMock; | 18 using testing::StrictMock; |
19 | 19 |
20 // ChromeFrameAutomationClient [CFAC] tests. | 20 // ChromeFrameAutomationClient [CFAC] tests. |
21 struct MockCFDelegate : public ChromeFrameDelegateImpl { | 21 struct MockCFDelegate : public ChromeFrameDelegateImpl { |
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
179 virtual void SetUp() { | 179 virtual void SetUp() { |
180 dummy_sender_.ForwardTo(&mock_proxy_); | 180 dummy_sender_.ForwardTo(&mock_proxy_); |
181 tracker_.reset(new AutomationHandleTracker()); | 181 tracker_.reset(new AutomationHandleTracker()); |
182 | 182 |
183 client_ = new ChromeFrameAutomationClient; | 183 client_ = new ChromeFrameAutomationClient; |
184 client_->set_proxy_factory(&factory_); | 184 client_->set_proxy_factory(&factory_); |
185 } | 185 } |
186 }; | 186 }; |
187 | 187 |
188 #endif // CHROME_FRAME_TEST_AUTOMATION_CLIENT_MOCK_H_ | 188 #endif // CHROME_FRAME_TEST_AUTOMATION_CLIENT_MOCK_H_ |
OLD | NEW |