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 <string> | 5 #include <string> |
6 | 6 |
7 #include "base/scoped_comptr_win.h" | 7 #include "base/scoped_comptr_win.h" |
8 #include "base/win_util.h" | |
9 #include "chrome_frame/test/chrome_frame_test_utils.h" | 8 #include "chrome_frame/test/chrome_frame_test_utils.h" |
10 #include "chrome_frame/test/mock_ie_event_sink_actions.h" | 9 #include "chrome_frame/test/mock_ie_event_sink_actions.h" |
11 #include "chrome_frame/test/mock_ie_event_sink_test.h" | 10 #include "chrome_frame/test/mock_ie_event_sink_test.h" |
12 | 11 |
13 // Needed for CreateFunctor. | 12 // Needed for CreateFunctor. |
14 #define GMOCK_MUTANT_INCLUDE_LATE_OBJECT_BINDING | 13 #define GMOCK_MUTANT_INCLUDE_LATE_OBJECT_BINDING |
15 #include "testing/gmock_mutant.h" | 14 #include "testing/gmock_mutant.h" |
16 | 15 |
17 using testing::_; | 16 using testing::_; |
18 using testing::InSequence; | 17 using testing::InSequence; |
(...skipping 680 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
699 ie_mock_.ExpectNavigation(in_cf, kUnloadEventMainUrl); | 698 ie_mock_.ExpectNavigation(in_cf, kUnloadEventMainUrl); |
700 EXPECT_CALL(ie_mock_, OnLoad(in_cf, StrEq(kUnloadEventMainUrl))); | 699 EXPECT_CALL(ie_mock_, OnLoad(in_cf, StrEq(kUnloadEventMainUrl))); |
701 | 700 |
702 EXPECT_CALL(ie_mock_, OnMessage(_, _, _)) | 701 EXPECT_CALL(ie_mock_, OnMessage(_, _, _)) |
703 .WillOnce(CloseBrowserMock(&ie_mock_)); | 702 .WillOnce(CloseBrowserMock(&ie_mock_)); |
704 | 703 |
705 LaunchIEAndNavigate(kUnloadEventTestUrl); | 704 LaunchIEAndNavigate(kUnloadEventTestUrl); |
706 } | 705 } |
707 | 706 |
708 } // namespace chrome_frame_test | 707 } // namespace chrome_frame_test |
709 | |
OLD | NEW |