| 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/chromeos/policy/consumer_management_notifier.h" | 5 #include "chrome/browser/chromeos/policy/consumer_management_notifier.h" |
| 6 | 6 |
| 7 #include "base/memory/scoped_ptr.h" |
| 7 #include "chrome/browser/browser_process.h" | 8 #include "chrome/browser/browser_process.h" |
| 8 #include "chrome/browser/browser_process_platform_part.h" | 9 #include "chrome/browser/browser_process_platform_part.h" |
| 9 #include "chrome/browser/chromeos/policy/browser_policy_connector_chromeos.h" | 10 #include "chrome/browser/chromeos/policy/browser_policy_connector_chromeos.h" |
| 10 #include "chrome/browser/chromeos/policy/consumer_management_service.h" | 11 #include "chrome/browser/chromeos/policy/consumer_management_service.h" |
| 11 #include "chrome/browser/chromeos/policy/fake_consumer_management_service.h" | 12 #include "chrome/browser/chromeos/policy/fake_consumer_management_service.h" |
| 12 #include "chrome/browser/notifications/notification_ui_manager.h" | 13 #include "chrome/browser/notifications/notification_ui_manager.h" |
| 13 #include "chrome/test/base/browser_with_test_window_test.h" | 14 #include "chrome/test/base/browser_with_test_window_test.h" |
| 14 #include "chrome/test/base/testing_browser_process.h" | 15 #include "chrome/test/base/testing_browser_process.h" |
| 15 #include "chrome/test/base/testing_profile_manager.h" | 16 #include "chrome/test/base/testing_profile_manager.h" |
| 16 #include "testing/gtest/include/gtest/gtest.h" | 17 #include "testing/gtest/include/gtest/gtest.h" |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 92 | 93 |
| 93 fake_service_->SetStatusAndEnrollmentStage( | 94 fake_service_->SetStatusAndEnrollmentStage( |
| 94 ConsumerManagementService::STATUS_ENROLLED, | 95 ConsumerManagementService::STATUS_ENROLLED, |
| 95 ConsumerManagementService::ENROLLMENT_STAGE_SUCCESS); | 96 ConsumerManagementService::ENROLLMENT_STAGE_SUCCESS); |
| 96 EXPECT_EQ(ConsumerManagementService::ENROLLMENT_STAGE_NONE, | 97 EXPECT_EQ(ConsumerManagementService::ENROLLMENT_STAGE_NONE, |
| 97 fake_service_->GetEnrollmentStage()); | 98 fake_service_->GetEnrollmentStage()); |
| 98 EXPECT_TRUE(HasEnrollmentNotification()); | 99 EXPECT_TRUE(HasEnrollmentNotification()); |
| 99 } | 100 } |
| 100 | 101 |
| 101 } // namespace policy | 102 } // namespace policy |
| OLD | NEW |