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

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

Issue 2130453004: [Sync] Move //sync to //components/sync. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 4 years, 4 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"
(...skipping 12 matching lines...) Expand all
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/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"
34 #include "components/sync/api/sync_change_processor.h"
35 #include "components/sync/api/sync_error_factory_mock.h"
33 #include "components/sync_driver/pref_names.h" 36 #include "components/sync_driver/pref_names.h"
34 #include "components/syncable_prefs/pref_service_syncable.h" 37 #include "components/syncable_prefs/pref_service_syncable.h"
35 #include "components/user_manager/fake_user_manager.h" 38 #include "components/user_manager/fake_user_manager.h"
36 #include "content/public/browser/notification_service.h" 39 #include "content/public/browser/notification_service.h"
37 #include "content/public/test/test_utils.h" 40 #include "content/public/test/test_utils.h"
38 #include "sync/api/fake_sync_change_processor.h"
39 #include "sync/api/sync_change_processor.h"
40 #include "sync/api/sync_error_factory_mock.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";
47 const char kStandaloneAppId[] = "ldnnhddmnhbkjipkidpdiheffobcpfmf"; 47 const char kStandaloneAppId[] = "ldnnhddmnhbkjipkidpdiheffobcpfmf";
48 48
49 class ExternalProviderImplChromeOSTest : public ExtensionServiceTestBase { 49 class ExternalProviderImplChromeOSTest : public ExtensionServiceTestBase {
50 public: 50 public:
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
OLDNEW
« no previous file with comments | « chrome/browser/extensions/extension_sync_service.cc ('k') | chrome/browser/extensions/shared_module_service_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698