OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/external_tab.h" | 5 #include "base/location.h" |
6 #include "base/task.h" | 6 #include "base/task.h" |
7 #include "base/threading/thread.h" | 7 #include "base/threading/thread.h" |
8 #include "base/tracked.h" | 8 #include "chrome_frame/external_tab.h" |
9 | 9 |
10 // #include "base/synchronization/waitable_event.h" | 10 // #include "base/synchronization/waitable_event.h" |
11 | 11 |
12 #include "chrome/common/automation_messages.h" | 12 #include "chrome/common/automation_messages.h" |
13 #include "chrome_frame/navigation_constraints.h" | 13 #include "chrome_frame/navigation_constraints.h" |
14 #include "chrome_frame/test/chrome_frame_test_utils.h" | 14 #include "chrome_frame/test/chrome_frame_test_utils.h" |
15 #include "testing/gtest/include/gtest/gtest.h" | 15 #include "testing/gtest/include/gtest/gtest.h" |
16 #include "testing/gmock/include/gmock/gmock.h" | 16 #include "testing/gmock/include/gmock/gmock.h" |
17 #include "testing/gmock_mutant.h" | 17 #include "testing/gmock_mutant.h" |
18 | 18 |
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
170 CreateTabParams tab_params; | 170 CreateTabParams tab_params; |
171 tab_params.is_incognito = true; | 171 tab_params.is_incognito = true; |
172 tab_params.is_widget_mode = false; | 172 tab_params.is_widget_mode = false; |
173 tab_params.url = GURL("http://Xanadu.org"); | 173 tab_params.url = GURL("http://Xanadu.org"); |
174 | 174 |
175 tab->CreateTab(tab_params, &ui_delegate); | 175 tab->CreateTab(tab_params, &ui_delegate); |
176 loop.RunFor(5); | 176 loop.RunFor(5); |
177 EXPECT_FALSE(loop.WasTimedOut()); | 177 EXPECT_FALSE(loop.WasTimedOut()); |
178 tab.reset(); | 178 tab.reset(); |
179 } | 179 } |
OLD | NEW |