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