| 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" | 7 #include "base/path_service.h" |
| 8 #include "base/run_loop.h" | 8 #include "base/run_loop.h" |
| 9 #include "chrome/browser/chromeos/login/enrollment/enrollment_screen.h" | 9 #include "chrome/browser/chromeos/login/enrollment/enrollment_screen.h" |
| 10 #include "chrome/browser/chromeos/login/screens/mock_screen_observer.h" | 10 #include "chrome/browser/chromeos/login/screens/mock_screen_observer.h" |
| 11 #include "chrome/browser/chromeos/login/test/wizard_in_process_browser_test.h" |
| 11 #include "chrome/browser/chromeos/login/wizard_controller.h" | 12 #include "chrome/browser/chromeos/login/wizard_controller.h" |
| 12 #include "chrome/browser/chromeos/login/wizard_in_process_browser_test.h" | |
| 13 #include "chrome/test/base/ui_test_utils.h" | 13 #include "chrome/test/base/ui_test_utils.h" |
| 14 #include "chromeos/chromeos_switches.h" | 14 #include "chromeos/chromeos_switches.h" |
| 15 #include "chromeos/chromeos_test_utils.h" | 15 #include "chromeos/chromeos_test_utils.h" |
| 16 #include "content/public/test/test_utils.h" | 16 #include "content/public/test/test_utils.h" |
| 17 #include "testing/gmock/include/gmock/gmock.h" | 17 #include "testing/gmock/include/gmock/gmock.h" |
| 18 #include "testing/gtest/include/gtest/gtest.h" | 18 #include "testing/gtest/include/gtest/gtest.h" |
| 19 | 19 |
| 20 using testing::InvokeWithoutArgs; | 20 using testing::InvokeWithoutArgs; |
| 21 using testing::Mock; | 21 using testing::Mock; |
| 22 | 22 |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 96 .WillOnce(InvokeWithoutArgs(&run_loop, &base::RunLoop::Quit)); | 96 .WillOnce(InvokeWithoutArgs(&run_loop, &base::RunLoop::Quit)); |
| 97 enrollment_screen->OnCancel(); | 97 enrollment_screen->OnCancel(); |
| 98 content::RunThisRunLoop(&run_loop); | 98 content::RunThisRunLoop(&run_loop); |
| 99 Mock::VerifyAndClearExpectations(&mock_screen_observer); | 99 Mock::VerifyAndClearExpectations(&mock_screen_observer); |
| 100 | 100 |
| 101 static_cast<WizardScreen*>(enrollment_screen)->screen_observer_ = | 101 static_cast<WizardScreen*>(enrollment_screen)->screen_observer_ = |
| 102 WizardController::default_controller(); | 102 WizardController::default_controller(); |
| 103 } | 103 } |
| 104 | 104 |
| 105 } // namespace chromeos | 105 } // namespace chromeos |
| OLD | NEW |