Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(18)

Side by Side Diff: chrome_frame/test/chrome_frame_automation_mock.cc

Issue 9599017: Disabling ChromeFrame.Launch (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698