| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/extensions/external_provider_impl.h" | 5 #include "chrome/browser/extensions/external_provider_impl.h" |
| 6 | 6 |
| 7 #include <memory> | 7 #include <memory> |
| 8 | 8 |
| 9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| (...skipping 15 matching lines...) Expand all Loading... |
| 26 #include "chrome/test/base/testing_profile.h" | 26 #include "chrome/test/base/testing_profile.h" |
| 27 #include "chromeos/system/fake_statistics_provider.h" | 27 #include "chromeos/system/fake_statistics_provider.h" |
| 28 #include "chromeos/system/statistics_provider.h" | 28 #include "chromeos/system/statistics_provider.h" |
| 29 #include "components/browser_sync/browser/profile_sync_service.h" | 29 #include "components/browser_sync/browser/profile_sync_service.h" |
| 30 #include "components/browser_sync/common/browser_sync_switches.h" | 30 #include "components/browser_sync/common/browser_sync_switches.h" |
| 31 #include "components/signin/core/browser/profile_oauth2_token_service.h" | 31 #include "components/signin/core/browser/profile_oauth2_token_service.h" |
| 32 #include "components/signin/core/browser/signin_manager_base.h" | 32 #include "components/signin/core/browser/signin_manager_base.h" |
| 33 #include "components/sync/api/fake_sync_change_processor.h" | 33 #include "components/sync/api/fake_sync_change_processor.h" |
| 34 #include "components/sync/api/sync_change_processor.h" | 34 #include "components/sync/api/sync_change_processor.h" |
| 35 #include "components/sync/api/sync_error_factory_mock.h" | 35 #include "components/sync/api/sync_error_factory_mock.h" |
| 36 #include "components/sync_driver/pref_names.h" | 36 #include "components/sync/driver/pref_names.h" |
| 37 #include "components/syncable_prefs/pref_service_syncable.h" | 37 #include "components/syncable_prefs/pref_service_syncable.h" |
| 38 #include "components/user_manager/fake_user_manager.h" | 38 #include "components/user_manager/fake_user_manager.h" |
| 39 #include "content/public/browser/notification_service.h" | 39 #include "content/public/browser/notification_service.h" |
| 40 #include "content/public/test/test_utils.h" | 40 #include "content/public/test/test_utils.h" |
| 41 | 41 |
| 42 namespace extensions { | 42 namespace extensions { |
| 43 | 43 |
| 44 namespace { | 44 namespace { |
| 45 | 45 |
| 46 const char kExternalAppId[] = "kekdneafjmhmndejhmbcadfiiofngffo"; | 46 const char kExternalAppId[] = "kekdneafjmhmndejhmbcadfiiofngffo"; |
| (...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 206 new syncer::SyncErrorFactoryMock())); | 206 new syncer::SyncErrorFactoryMock())); |
| 207 | 207 |
| 208 content::WindowedNotificationObserver( | 208 content::WindowedNotificationObserver( |
| 209 extensions::NOTIFICATION_CRX_INSTALLER_DONE, | 209 extensions::NOTIFICATION_CRX_INSTALLER_DONE, |
| 210 content::NotificationService::AllSources()).Wait(); | 210 content::NotificationService::AllSources()).Wait(); |
| 211 | 211 |
| 212 EXPECT_TRUE(service_->GetInstalledExtension(kStandaloneAppId)); | 212 EXPECT_TRUE(service_->GetInstalledExtension(kStandaloneAppId)); |
| 213 } | 213 } |
| 214 | 214 |
| 215 } // namespace extensions | 215 } // namespace extensions |
| OLD | NEW |