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

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

Issue 1305213009: Componentize PrefSyncableService and support classes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@pref_service_syncable
Patch Set: Add missing dependency on //sync:test_support_sync_api for unit tests with gn Created 5 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 (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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 <algorithm> 5 #include <algorithm>
6 #include <set> 6 #include <set>
7 #include <vector> 7 #include <vector>
8 8
9 #include "base/at_exit.h" 9 #include "base/at_exit.h"
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 #include "chrome/browser/extensions/pack_extension_job.h" 59 #include "chrome/browser/extensions/pack_extension_job.h"
60 #include "chrome/browser/extensions/pending_extension_info.h" 60 #include "chrome/browser/extensions/pending_extension_info.h"
61 #include "chrome/browser/extensions/pending_extension_manager.h" 61 #include "chrome/browser/extensions/pending_extension_manager.h"
62 #include "chrome/browser/extensions/permissions_updater.h" 62 #include "chrome/browser/extensions/permissions_updater.h"
63 #include "chrome/browser/extensions/test_blacklist.h" 63 #include "chrome/browser/extensions/test_blacklist.h"
64 #include "chrome/browser/extensions/test_extension_system.h" 64 #include "chrome/browser/extensions/test_extension_system.h"
65 #include "chrome/browser/extensions/unpacked_installer.h" 65 #include "chrome/browser/extensions/unpacked_installer.h"
66 #include "chrome/browser/extensions/updater/extension_updater.h" 66 #include "chrome/browser/extensions/updater/extension_updater.h"
67 #include "chrome/browser/policy/profile_policy_connector.h" 67 #include "chrome/browser/policy/profile_policy_connector.h"
68 #include "chrome/browser/policy/profile_policy_connector_factory.h" 68 #include "chrome/browser/policy/profile_policy_connector_factory.h"
69 #include "chrome/browser/prefs/pref_service_syncable.h"
70 #include "chrome/browser/sync/profile_sync_service.h" 69 #include "chrome/browser/sync/profile_sync_service.h"
71 #include "chrome/browser/sync/profile_sync_service_factory.h" 70 #include "chrome/browser/sync/profile_sync_service_factory.h"
72 #include "chrome/common/chrome_constants.h" 71 #include "chrome/common/chrome_constants.h"
73 #include "chrome/common/chrome_switches.h" 72 #include "chrome/common/chrome_switches.h"
74 #include "chrome/common/extensions/api/plugins/plugins_handler.h" 73 #include "chrome/common/extensions/api/plugins/plugins_handler.h"
75 #include "chrome/common/extensions/manifest_handlers/app_launch_info.h" 74 #include "chrome/common/extensions/manifest_handlers/app_launch_info.h"
76 #include "chrome/common/extensions/manifest_handlers/content_scripts_handler.h" 75 #include "chrome/common/extensions/manifest_handlers/content_scripts_handler.h"
77 #include "chrome/common/extensions/sync_helper.h" 76 #include "chrome/common/extensions/sync_helper.h"
78 #include "chrome/common/pref_names.h" 77 #include "chrome/common/pref_names.h"
79 #include "chrome/common/url_constants.h" 78 #include "chrome/common/url_constants.h"
80 #include "chrome/test/base/scoped_browser_locale.h" 79 #include "chrome/test/base/scoped_browser_locale.h"
81 #include "chrome/test/base/testing_pref_service_syncable.h"
82 #include "chrome/test/base/testing_profile.h" 80 #include "chrome/test/base/testing_profile.h"
83 #include "components/crx_file/id_util.h" 81 #include "components/crx_file/id_util.h"
84 #include "components/pref_registry/pref_registry_syncable.h" 82 #include "components/pref_registry/pref_registry_syncable.h"
83 #include "components/syncable_prefs/pref_service_syncable.h"
84 #include "components/syncable_prefs/testing_pref_service_syncable.h"
85 #include "content/public/browser/dom_storage_context.h" 85 #include "content/public/browser/dom_storage_context.h"
86 #include "content/public/browser/gpu_data_manager.h" 86 #include "content/public/browser/gpu_data_manager.h"
87 #include "content/public/browser/indexed_db_context.h" 87 #include "content/public/browser/indexed_db_context.h"
88 #include "content/public/browser/notification_registrar.h" 88 #include "content/public/browser/notification_registrar.h"
89 #include "content/public/browser/notification_service.h" 89 #include "content/public/browser/notification_service.h"
90 #include "content/public/browser/plugin_service.h" 90 #include "content/public/browser/plugin_service.h"
91 #include "content/public/browser/render_process_host.h" 91 #include "content/public/browser/render_process_host.h"
92 #include "content/public/browser/storage_partition.h" 92 #include "content/public/browser/storage_partition.h"
93 #include "content/public/common/content_constants.h" 93 #include "content/public/common/content_constants.h"
94 #include "content/public/test/test_browser_thread_bundle.h" 94 #include "content/public/test/test_browser_thread_bundle.h"
(...skipping 8078 matching lines...) Expand 10 before | Expand all | Expand 10 after
8173 8173
8174 service()->Observe(chrome::NOTIFICATION_PROFILE_DESTRUCTION_STARTED, 8174 service()->Observe(chrome::NOTIFICATION_PROFILE_DESTRUCTION_STARTED,
8175 content::Source<Profile>(profile()), 8175 content::Source<Profile>(profile()),
8176 content::NotificationService::NoDetails()); 8176 content::NotificationService::NoDetails());
8177 EXPECT_EQ(UnloadedExtensionInfo::REASON_PROFILE_SHUTDOWN, unloaded_reason_); 8177 EXPECT_EQ(UnloadedExtensionInfo::REASON_PROFILE_SHUTDOWN, unloaded_reason_);
8178 EXPECT_EQ(0u, registry()->enabled_extensions().size()); 8178 EXPECT_EQ(0u, registry()->enabled_extensions().size());
8179 EXPECT_EQ(0u, registry()->disabled_extensions().size()); 8179 EXPECT_EQ(0u, registry()->disabled_extensions().size());
8180 EXPECT_EQ(0u, registry()->terminated_extensions().size()); 8180 EXPECT_EQ(0u, registry()->terminated_extensions().size());
8181 EXPECT_EQ(0u, registry()->blacklisted_extensions().size()); 8181 EXPECT_EQ(0u, registry()->blacklisted_extensions().size());
8182 } 8182 }
OLDNEW
« no previous file with comments | « chrome/browser/extensions/extension_service_test_base.cc ('k') | chrome/browser/extensions/external_policy_loader_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698