OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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/affiliated_invalidation_service_provide
r_impl.h" | 5 #include "chrome/browser/chromeos/policy/affiliated_invalidation_service_provide
r_impl.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 | 8 |
| 9 #include "base/macros.h" |
9 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
10 #include "chrome/browser/chrome_notification_types.h" | 11 #include "chrome/browser/chrome_notification_types.h" |
11 #include "chrome/browser/chromeos/login/users/fake_chrome_user_manager.h" | 12 #include "chrome/browser/chromeos/login/users/fake_chrome_user_manager.h" |
12 #include "chrome/browser/chromeos/login/users/scoped_user_manager_enabler.h" | 13 #include "chrome/browser/chromeos/login/users/scoped_user_manager_enabler.h" |
13 #include "chrome/browser/chromeos/policy/stub_enterprise_install_attributes.h" | 14 #include "chrome/browser/chromeos/policy/stub_enterprise_install_attributes.h" |
14 #include "chrome/browser/chromeos/settings/cros_settings.h" | 15 #include "chrome/browser/chromeos/settings/cros_settings.h" |
15 #include "chrome/browser/chromeos/settings/device_oauth2_token_service_factory.h
" | 16 #include "chrome/browser/chromeos/settings/device_oauth2_token_service_factory.h
" |
16 #include "chrome/browser/chromeos/settings/device_settings_service.h" | 17 #include "chrome/browser/chromeos/settings/device_settings_service.h" |
17 #include "chrome/browser/invalidation/fake_invalidation_service.h" | 18 #include "chrome/browser/invalidation/fake_invalidation_service.h" |
18 #include "chrome/browser/invalidation/profile_invalidation_provider_factory.h" | 19 #include "chrome/browser/invalidation/profile_invalidation_provider_factory.h" |
(...skipping 651 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
670 EXPECT_EQ(0, consumer_->GetAndClearInvalidationServiceSetCount()); | 671 EXPECT_EQ(0, consumer_->GetAndClearInvalidationServiceSetCount()); |
671 provider_->Shutdown(); | 672 provider_->Shutdown(); |
672 EXPECT_EQ(1, consumer_->GetAndClearInvalidationServiceSetCount()); | 673 EXPECT_EQ(1, consumer_->GetAndClearInvalidationServiceSetCount()); |
673 EXPECT_EQ(nullptr, consumer_->GetInvalidationService()); | 674 EXPECT_EQ(nullptr, consumer_->GetInvalidationService()); |
674 | 675 |
675 // Verify that the device-global invalidation service has been destroyed. | 676 // Verify that the device-global invalidation service has been destroyed. |
676 EXPECT_FALSE(provider_->GetDeviceInvalidationServiceForTest()); | 677 EXPECT_FALSE(provider_->GetDeviceInvalidationServiceForTest()); |
677 } | 678 } |
678 | 679 |
679 } // namespace policy | 680 } // namespace policy |
OLD | NEW |