| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/browser/ui/webui/signin/login_ui_test_utils.h" | 5 #include "chrome/browser/ui/webui/signin/login_ui_test_utils.h" |
| 6 | 6 |
| 7 #include "base/run_loop.h" | 7 #include "base/run_loop.h" |
| 8 #include "base/threading/thread_task_runner_handle.h" | 8 #include "base/threading/thread_task_runner_handle.h" |
| 9 #include "chrome/browser/signin/signin_promo.h" | 9 #include "chrome/browser/signin/signin_promo.h" |
| 10 #include "chrome/browser/signin/signin_tracker_factory.h" | 10 #include "chrome/browser/signin/signin_tracker_factory.h" |
| 11 #include "chrome/browser/ui/browser.h" | 11 #include "chrome/browser/ui/browser.h" |
| 12 #include "chrome/browser/ui/signin_view_controller_delegate.h" | 12 #include "chrome/browser/ui/signin_view_controller_delegate.h" |
| 13 #include "chrome/browser/ui/tabs/tab_strip_model.h" | 13 #include "chrome/browser/ui/tabs/tab_strip_model.h" |
| 14 #include "chrome/browser/ui/webui/signin/get_auth_frame.h" | 14 #include "chrome/browser/ui/webui/signin/signin_utils.h" |
| 15 #include "chrome/test/base/ui_test_utils.h" | 15 #include "chrome/test/base/ui_test_utils.h" |
| 16 #include "content/public/browser/notification_service.h" | 16 #include "content/public/browser/notification_service.h" |
| 17 #include "content/public/browser/notification_types.h" | 17 #include "content/public/browser/notification_types.h" |
| 18 #include "content/public/browser/web_contents.h" | 18 #include "content/public/browser/web_contents.h" |
| 19 #include "content/public/test/browser_test_utils.h" | 19 #include "content/public/test/browser_test_utils.h" |
| 20 | 20 |
| 21 using content::MessageLoopRunner; | 21 using content::MessageLoopRunner; |
| 22 | 22 |
| 23 // anonymous namespace for signin with UI helper functions. | 23 // anonymous namespace for signin with UI helper functions. |
| 24 namespace { | 24 namespace { |
| (...skipping 256 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 281 const base::Time expire_time = base::Time::Now() + timeout; | 281 const base::Time expire_time = base::Time::Now() + timeout; |
| 282 while (base::Time::Now() <= expire_time) { | 282 while (base::Time::Now() <= expire_time) { |
| 283 if (TryDismissSyncConfirmationDialog(browser)) | 283 if (TryDismissSyncConfirmationDialog(browser)) |
| 284 return true; | 284 return true; |
| 285 RunLoopFor(base::TimeDelta::FromMilliseconds(1000)); | 285 RunLoopFor(base::TimeDelta::FromMilliseconds(1000)); |
| 286 } | 286 } |
| 287 return false; | 287 return false; |
| 288 } | 288 } |
| 289 | 289 |
| 290 } // namespace login_ui_test_utils | 290 } // namespace login_ui_test_utils |
| OLD | NEW |