OLD | NEW |
| (Empty) |
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 | |
3 // found in the LICENSE file. | |
4 | |
5 #include "chrome_frame/test/chrome_frame_automation_mock.h" | |
6 #include "chrome_frame/test/chrome_frame_test_utils.h" | |
7 #include "testing/gtest/include/gtest/gtest.h" | |
8 | |
9 const base::TimeDelta kLongWaitTimeout = base::TimeDelta::FromSeconds(25); | |
10 | |
11 TEST(ChromeFrame, Launch) { | |
12 base::MessageLoopForUI loop; | |
13 AutomationMockLaunch mock_launch(&loop, | |
14 kLongWaitTimeout.InMilliseconds()); | |
15 | |
16 loop.PostDelayedTask( | |
17 FROM_HERE, base::MessageLoop::QuitClosure(), kLongWaitTimeout); | |
18 | |
19 mock_launch.Navigate("about:blank"); | |
20 base::RunLoop run_loop(NULL); | |
21 run_loop.Run(); | |
22 EXPECT_TRUE(mock_launch.launch_result()); | |
23 } | |
OLD | NEW |