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/basictypes.h" | 5 #include "base/basictypes.h" |
6 #include "base/command_line.h" | 6 #include "base/command_line.h" |
7 #include "base/path_service.h" | |
8 #include "base/run_loop.h" | 7 #include "base/run_loop.h" |
9 #include "chrome/browser/chromeos/login/enrollment/enrollment_screen.h" | 8 #include "chrome/browser/chromeos/login/enrollment/enrollment_screen.h" |
10 #include "chrome/browser/chromeos/login/screens/mock_base_screen_delegate.h" | 9 #include "chrome/browser/chromeos/login/screens/mock_base_screen_delegate.h" |
11 #include "chrome/browser/chromeos/login/startup_utils.h" | 10 #include "chrome/browser/chromeos/login/startup_utils.h" |
12 #include "chrome/browser/chromeos/login/test/wizard_in_process_browser_test.h" | 11 #include "chrome/browser/chromeos/login/test/wizard_in_process_browser_test.h" |
13 #include "chrome/browser/chromeos/login/wizard_controller.h" | 12 #include "chrome/browser/chromeos/login/wizard_controller.h" |
14 #include "chrome/test/base/ui_test_utils.h" | 13 #include "chrome/test/base/ui_test_utils.h" |
15 #include "chromeos/chromeos_switches.h" | 14 #include "chromeos/chromeos_switches.h" |
16 #include "chromeos/chromeos_test_utils.h" | 15 #include "chromeos/chromeos_test_utils.h" |
17 #include "content/public/test/test_utils.h" | 16 #include "content/public/test/test_utils.h" |
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
123 .WillOnce(InvokeWithoutArgs(&run_loop, &base::RunLoop::Quit)); | 122 .WillOnce(InvokeWithoutArgs(&run_loop, &base::RunLoop::Quit)); |
124 enrollment_screen->OnCancel(); | 123 enrollment_screen->OnCancel(); |
125 content::RunThisRunLoop(&run_loop); | 124 content::RunThisRunLoop(&run_loop); |
126 Mock::VerifyAndClearExpectations(&mock_base_screen_delegate); | 125 Mock::VerifyAndClearExpectations(&mock_base_screen_delegate); |
127 | 126 |
128 static_cast<BaseScreen*>(enrollment_screen)->base_screen_delegate_ = | 127 static_cast<BaseScreen*>(enrollment_screen)->base_screen_delegate_ = |
129 WizardController::default_controller(); | 128 WizardController::default_controller(); |
130 } | 129 } |
131 | 130 |
132 } // namespace chromeos | 131 } // namespace chromeos |
OLD | NEW |