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 #include "chrome_frame/test/mock_ie_event_sink_test.h" | 5 #include "chrome_frame/test/mock_ie_event_sink_test.h" |
6 | 6 |
7 #include <sstream> | 7 #include <sstream> |
8 | 8 |
9 #include "base/scoped_variant_win.h" | 9 #include "base/scoped_variant_win.h" |
10 #include "base/utf_string_conversions.h" | 10 #include "base/utf_string_conversions.h" |
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
193 .WillOnce(QUIT_LOOP(loop_)); | 193 .WillOnce(QUIT_LOOP(loop_)); |
194 HRESULT hr = ie_mock_.event_sink()->LaunchIEAndNavigate(url, &ie_mock_); | 194 HRESULT hr = ie_mock_.event_sink()->LaunchIEAndNavigate(url, &ie_mock_); |
195 ASSERT_HRESULT_SUCCEEDED(hr); | 195 ASSERT_HRESULT_SUCCEEDED(hr); |
196 if (hr == S_FALSE) | 196 if (hr == S_FALSE) |
197 return; | 197 return; |
198 | 198 |
199 ASSERT_TRUE(ie_mock_.event_sink()->web_browser2() != NULL); | 199 ASSERT_TRUE(ie_mock_.event_sink()->web_browser2() != NULL); |
200 loop_.RunFor(timeout); | 200 loop_.RunFor(timeout); |
201 } | 201 } |
202 | 202 |
| 203 FilePath MockIEEventSinkTest::GetTestFilePath( |
| 204 const std::wstring& relative_path) { |
| 205 return server_mock_.root_dir().Append(relative_path); |
| 206 } |
| 207 |
203 std::wstring MockIEEventSinkTest::GetTestUrl( | 208 std::wstring MockIEEventSinkTest::GetTestUrl( |
204 const std::wstring& relative_path) { | 209 const std::wstring& relative_path) { |
205 return server_mock_.Resolve(relative_path.c_str()); | 210 return server_mock_.Resolve(relative_path.c_str()); |
206 } | 211 } |
207 | 212 |
208 } // namespace chrome_frame_test | 213 } // namespace chrome_frame_test |
209 | 214 |
OLD | NEW |