Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(462)

Side by Side Diff: chrome/browser/extensions/external_provider_impl_chromeos_unittest.cc

Issue 2345843003: [Sync] Merge //components/browser_sync into one directory. (Closed)
Patch Set: Address comment + rebase. Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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"
11 #include "base/test/scoped_path_override.h" 11 #include "base/test/scoped_path_override.h"
12 #include "chrome/browser/chrome_notification_types.h" 12 #include "chrome/browser/chrome_notification_types.h"
13 #include "chrome/browser/chromeos/app_mode/kiosk_app_manager.h" 13 #include "chrome/browser/chromeos/app_mode/kiosk_app_manager.h"
14 #include "chrome/browser/chromeos/customization/customization_document.h" 14 #include "chrome/browser/chromeos/customization/customization_document.h"
15 #include "chrome/browser/chromeos/login/users/scoped_user_manager_enabler.h" 15 #include "chrome/browser/chromeos/login/users/scoped_user_manager_enabler.h"
16 #include "chrome/browser/extensions/extension_service.h" 16 #include "chrome/browser/extensions/extension_service.h"
17 #include "chrome/browser/extensions/extension_service_test_base.h" 17 #include "chrome/browser/extensions/extension_service_test_base.h"
18 #include "chrome/browser/prefs/pref_service_syncable_util.h" 18 #include "chrome/browser/prefs/pref_service_syncable_util.h"
19 #include "chrome/browser/profiles/profile_manager.h" 19 #include "chrome/browser/profiles/profile_manager.h"
20 #include "chrome/browser/signin/profile_oauth2_token_service_factory.h" 20 #include "chrome/browser/signin/profile_oauth2_token_service_factory.h"
21 #include "chrome/browser/signin/signin_manager_factory.h" 21 #include "chrome/browser/signin/signin_manager_factory.h"
22 #include "chrome/browser/sync/profile_sync_service_factory.h" 22 #include "chrome/browser/sync/profile_sync_service_factory.h"
23 #include "chrome/common/chrome_paths.h" 23 #include "chrome/common/chrome_paths.h"
24 #include "chrome/common/chrome_switches.h" 24 #include "chrome/common/chrome_switches.h"
25 #include "chrome/test/base/testing_browser_process.h" 25 #include "chrome/test/base/testing_browser_process.h"
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_sync_switches.h"
30 #include "components/browser_sync/common/browser_sync_switches.h" 30 #include "components/browser_sync/profile_sync_service.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"
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after
203 new syncer::SyncErrorFactoryMock())); 203 new syncer::SyncErrorFactoryMock()));
204 204
205 content::WindowedNotificationObserver( 205 content::WindowedNotificationObserver(
206 extensions::NOTIFICATION_CRX_INSTALLER_DONE, 206 extensions::NOTIFICATION_CRX_INSTALLER_DONE,
207 content::NotificationService::AllSources()).Wait(); 207 content::NotificationService::AllSources()).Wait();
208 208
209 EXPECT_TRUE(service_->GetInstalledExtension(kStandaloneAppId)); 209 EXPECT_TRUE(service_->GetInstalledExtension(kStandaloneAppId));
210 } 210 }
211 211
212 } // namespace extensions 212 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698