| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/memory/scoped_ptr.h" | 6 #include "base/memory/scoped_ptr.h" |
| 7 #include "chrome/browser/chromeos/login/enrollment/enterprise_enrollment_screen.
h" | 7 #include "chrome/browser/chromeos/login/enrollment/enterprise_enrollment_screen.
h" |
| 8 #include "chrome/browser/chromeos/login/mock_screen_observer.h" | 8 #include "chrome/browser/chromeos/login/mock_screen_observer.h" |
| 9 #include "chrome/browser/chromeos/login/views_oobe_display.h" | |
| 10 #include "chrome/browser/chromeos/login/wizard_controller.h" | 9 #include "chrome/browser/chromeos/login/wizard_controller.h" |
| 11 #include "chrome/browser/chromeos/login/wizard_in_process_browser_test.h" | 10 #include "chrome/browser/chromeos/login/wizard_in_process_browser_test.h" |
| 12 #include "testing/gmock/include/gmock/gmock.h" | 11 #include "testing/gmock/include/gmock/gmock.h" |
| 13 #include "testing/gtest/include/gtest/gtest.h" | 12 #include "testing/gtest/include/gtest/gtest.h" |
| 14 | 13 |
| 15 using testing::Mock; | 14 using testing::Mock; |
| 16 | 15 |
| 17 namespace chromeos { | 16 namespace chromeos { |
| 18 | 17 |
| 19 class EnterpriseEnrollmentScreenTest : public WizardInProcessBrowserTest { | 18 class EnterpriseEnrollmentScreenTest : public WizardInProcessBrowserTest { |
| (...skipping 22 matching lines...) Expand all Loading... |
| 42 EXPECT_CALL(mock_screen_observer, | 41 EXPECT_CALL(mock_screen_observer, |
| 43 OnExit(ScreenObserver::ENTERPRISE_ENROLLMENT_CANCELLED)); | 42 OnExit(ScreenObserver::ENTERPRISE_ENROLLMENT_CANCELLED)); |
| 44 enterprise_enrollment_screen->OnAuthCancelled(); | 43 enterprise_enrollment_screen->OnAuthCancelled(); |
| 45 Mock::VerifyAndClearExpectations(&mock_screen_observer); | 44 Mock::VerifyAndClearExpectations(&mock_screen_observer); |
| 46 | 45 |
| 47 static_cast<WizardScreen*>(enterprise_enrollment_screen)->screen_observer_ = | 46 static_cast<WizardScreen*>(enterprise_enrollment_screen)->screen_observer_ = |
| 48 controller(); | 47 controller(); |
| 49 } | 48 } |
| 50 | 49 |
| 51 } // namespace chromeos | 50 } // namespace chromeos |
| OLD | NEW |