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 #include <string> | 5 #include <string> |
6 | 6 |
7 #include "base/rand_util.h" | 7 #include "base/rand_util.h" |
8 #include "chrome/common/url_constants.h" | 8 #include "chrome/common/url_constants.h" |
9 #include "chrome_frame/test/mock_ie_event_sink_actions.h" | 9 #include "chrome_frame/test/mock_ie_event_sink_actions.h" |
10 #include "chrome_frame/test/mock_ie_event_sink_test.h" | 10 #include "chrome_frame/test/mock_ie_event_sink_test.h" |
11 #include "components/autofill/browser/webdata/autofill_table.h" | 11 #include "components/autofill/core/browser/webdata/autofill_table.h" |
12 #include "components/webdata/common/web_database.h" | 12 #include "components/webdata/common/web_database.h" |
13 #include "components/webdata/common/webdata_constants.h" | 13 #include "components/webdata/common/webdata_constants.h" |
14 | 14 |
15 using testing::_; | 15 using testing::_; |
16 | 16 |
17 namespace chrome_frame_test { | 17 namespace chrome_frame_test { |
18 | 18 |
19 class DeleteBrowsingHistoryTest | 19 class DeleteBrowsingHistoryTest |
20 : public MockIEEventSinkTest, | 20 : public MockIEEventSinkTest, |
21 public testing::Test { | 21 public testing::Test { |
(...skipping 304 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
326 | 326 |
327 // Start it up. Everything else is triggered as mock actions. | 327 // Start it up. Everything else is triggered as mock actions. |
328 ASSERT_HRESULT_SUCCEEDED( | 328 ASSERT_HRESULT_SUCCEEDED( |
329 ie_mock_.event_sink()->LaunchIEAndNavigate(top_url, &ie_mock_)); | 329 ie_mock_.event_sink()->LaunchIEAndNavigate(top_url, &ie_mock_)); |
330 | 330 |
331 // 3 navigations + 2 invocations of delete browser history == 5 | 331 // 3 navigations + 2 invocations of delete browser history == 5 |
332 loop_.RunFor(kChromeFrameLongNavigationTimeout * 5); | 332 loop_.RunFor(kChromeFrameLongNavigationTimeout * 5); |
333 } | 333 } |
334 | 334 |
335 } // namespace chrome_frame_test | 335 } // namespace chrome_frame_test |
OLD | NEW |