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/ie_event_sink.h" | 5 #include "chrome_frame/test/ie_event_sink.h" |
6 | 6 |
7 #include "base/scoped_bstr_win.h" | 7 #include "base/scoped_bstr_win.h" |
8 #include "base/scoped_handle.h" | 8 #include "base/scoped_handle.h" |
| 9 #include "base/scoped_variant_win.h" |
9 #include "base/string_util.h" | 10 #include "base/string_util.h" |
10 #include "base/utf_string_conversions.h" | 11 #include "base/utf_string_conversions.h" |
11 #include "base/win_util.h" | |
12 #include "chrome_frame/test/chrome_frame_test_utils.h" | 12 #include "chrome_frame/test/chrome_frame_test_utils.h" |
13 #include "testing/gtest/include/gtest/gtest.h" | 13 #include "testing/gtest/include/gtest/gtest.h" |
14 | 14 |
15 namespace chrome_frame_test { | 15 namespace chrome_frame_test { |
16 | 16 |
17 const int kDefaultWaitForIEToTerminateMs = 10 * 1000; | 17 const int kDefaultWaitForIEToTerminateMs = 10 * 1000; |
18 | 18 |
19 _ATL_FUNC_INFO IEEventSink::kNavigateErrorInfo = { | 19 _ATL_FUNC_INFO IEEventSink::kNavigateErrorInfo = { |
20 CC_STDCALL, VT_EMPTY, 5, { | 20 CC_STDCALL, VT_EMPTY, 5, { |
21 VT_DISPATCH, | 21 VT_DISPATCH, |
(...skipping 514 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
536 source.Receive(), NULL, NULL)); | 536 source.Receive(), NULL, NULL)); |
537 } | 537 } |
538 } | 538 } |
539 | 539 |
540 if (listener_) | 540 if (listener_) |
541 listener_->OnMessage(V_BSTR(&data), V_BSTR(&origin), V_BSTR(&source)); | 541 listener_->OnMessage(V_BSTR(&data), V_BSTR(&origin), V_BSTR(&source)); |
542 return S_OK; | 542 return S_OK; |
543 } | 543 } |
544 | 544 |
545 } // namespace chrome_frame_test | 545 } // namespace chrome_frame_test |
OLD | NEW |