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 "chrome_frame/test/chrome_frame_automation_mock.h" | 5 #include "chrome_frame/test/chrome_frame_automation_mock.h" |
6 #include "chrome_frame/test/chrome_frame_test_utils.h" | 6 #include "chrome_frame/test/chrome_frame_test_utils.h" |
7 #include "testing/gtest/include/gtest/gtest.h" | 7 #include "testing/gtest/include/gtest/gtest.h" |
8 | 8 |
9 const int kLongWaitTimeout = 25 * 1000; | 9 const int kLongWaitTimeout = 25 * 1000; |
10 | 10 |
11 TEST(ChromeFrame, Launch) { | 11 // Note that this test fails occasionally. Disabling it altogether (rather than |
| 12 // marking as flaky to see if the failure cascades down to the next test. |
| 13 // http://crbug.com/81479 |
| 14 TEST(ChromeFrame, DISABLED_Launch) { |
12 MessageLoopForUI loop; | 15 MessageLoopForUI loop; |
13 AutomationMockLaunch mock_launch(&loop, kLongWaitTimeout); | 16 AutomationMockLaunch mock_launch(&loop, kLongWaitTimeout); |
14 | 17 |
15 loop.PostDelayedTask(FROM_HERE, MessageLoop::QuitClosure(), kLongWaitTimeout); | 18 loop.PostDelayedTask(FROM_HERE, MessageLoop::QuitClosure(), kLongWaitTimeout); |
16 | 19 |
17 mock_launch.Navigate("about:blank"); | 20 mock_launch.Navigate("about:blank"); |
18 loop.RunWithDispatcher(NULL); | 21 loop.RunWithDispatcher(NULL); |
19 EXPECT_TRUE(mock_launch.launch_result()); | 22 EXPECT_TRUE(mock_launch.launch_result()); |
20 } | 23 } |
21 | 24 |
(...skipping 24 matching lines...) Expand all Loading... |
46 AutomationMockHostNetworkRequestStart mock_request_start(&loop, | 49 AutomationMockHostNetworkRequestStart mock_request_start(&loop, |
47 kLongWaitTimeout); | 50 kLongWaitTimeout); |
48 | 51 |
49 loop.PostDelayedTask(FROM_HERE, MessageLoop::QuitClosure(), kLongWaitTimeout); | 52 loop.PostDelayedTask(FROM_HERE, MessageLoop::QuitClosure(), kLongWaitTimeout); |
50 | 53 |
51 mock_request_start.NavigateRelative(L"postmessage_basic_frame.html"); | 54 mock_request_start.NavigateRelative(L"postmessage_basic_frame.html"); |
52 loop.RunWithDispatcher(NULL); | 55 loop.RunWithDispatcher(NULL); |
53 EXPECT_TRUE(mock_request_start.request_start_result()); | 56 EXPECT_TRUE(mock_request_start.request_start_result()); |
54 } | 57 } |
55 | 58 |
OLD | NEW |