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 "base/callback.h" | 5 #include "base/callback.h" |
6 #include "base/location.h" | 6 #include "base/location.h" |
| 7 #include "base/message_loop/message_loop.h" |
7 #include "base/single_thread_task_runner.h" | 8 #include "base/single_thread_task_runner.h" |
8 #include "base/strings/stringprintf.h" | 9 #include "base/strings/stringprintf.h" |
9 #include "base/strings/utf_string_conversions.h" | 10 #include "base/strings/utf_string_conversions.h" |
10 #include "base/threading/thread_task_runner_handle.h" | 11 #include "base/threading/thread_task_runner_handle.h" |
11 #include "build/build_config.h" | 12 #include "build/build_config.h" |
12 #include "chrome/browser/profiles/profile.h" | 13 #include "chrome/browser/profiles/profile.h" |
13 #include "chrome/browser/ui/browser.h" | 14 #include "chrome/browser/ui/browser.h" |
14 #include "chrome/browser/ui/tabs/tab_strip_model.h" | 15 #include "chrome/browser/ui/tabs/tab_strip_model.h" |
15 #include "chrome/browser/ui/webui/constrained_web_dialog_ui.h" | 16 #include "chrome/browser/ui/webui/constrained_web_dialog_ui.h" |
16 #include "chrome/common/url_constants.h" | 17 #include "chrome/common/url_constants.h" |
(...skipping 249 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
266 dialog_delegate))); | 267 dialog_delegate))); |
267 | 268 |
268 // Resize <body> to dimension larger than dialog. | 269 // Resize <body> to dimension larger than dialog. |
269 EXPECT_TRUE(ExecuteScript(dialog_delegate->GetWebContents(), | 270 EXPECT_TRUE(ExecuteScript(dialog_delegate->GetWebContents(), |
270 GetChangeDimensionsScript(500))); | 271 GetChangeDimensionsScript(500))); |
271 ASSERT_TRUE(RunLoopUntil(base::Bind( | 272 ASSERT_TRUE(RunLoopUntil(base::Bind( |
272 &IsEqualSizes, | 273 &IsEqualSizes, |
273 initial_dialog_size, | 274 initial_dialog_size, |
274 dialog_delegate))); | 275 dialog_delegate))); |
275 } | 276 } |
OLD | NEW |