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

Side by Side Diff: chrome/browser/extensions/extension_service_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 (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 "chrome/browser/extensions/extension_service.h" 5 #include "chrome/browser/extensions/extension_service.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <algorithm> 10 #include <algorithm>
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 #include "chrome/common/extensions/api/plugins/plugins_handler.h" 80 #include "chrome/common/extensions/api/plugins/plugins_handler.h"
81 #include "chrome/common/extensions/manifest_handlers/app_launch_info.h" 81 #include "chrome/common/extensions/manifest_handlers/app_launch_info.h"
82 #include "chrome/common/extensions/manifest_handlers/content_scripts_handler.h" 82 #include "chrome/common/extensions/manifest_handlers/content_scripts_handler.h"
83 #include "chrome/common/pref_names.h" 83 #include "chrome/common/pref_names.h"
84 #include "chrome/common/url_constants.h" 84 #include "chrome/common/url_constants.h"
85 #include "chrome/test/base/scoped_browser_locale.h" 85 #include "chrome/test/base/scoped_browser_locale.h"
86 #include "chrome/test/base/testing_profile.h" 86 #include "chrome/test/base/testing_profile.h"
87 #include "components/crx_file/id_util.h" 87 #include "components/crx_file/id_util.h"
88 #include "components/pref_registry/pref_registry_syncable.h" 88 #include "components/pref_registry/pref_registry_syncable.h"
89 #include "components/prefs/scoped_user_pref_update.h" 89 #include "components/prefs/scoped_user_pref_update.h"
90 #include "components/sync/api/string_ordinal.h"
90 #include "components/syncable_prefs/pref_service_syncable.h" 91 #include "components/syncable_prefs/pref_service_syncable.h"
91 #include "components/syncable_prefs/testing_pref_service_syncable.h" 92 #include "components/syncable_prefs/testing_pref_service_syncable.h"
92 #include "content/public/browser/dom_storage_context.h" 93 #include "content/public/browser/dom_storage_context.h"
93 #include "content/public/browser/gpu_data_manager.h" 94 #include "content/public/browser/gpu_data_manager.h"
94 #include "content/public/browser/indexed_db_context.h" 95 #include "content/public/browser/indexed_db_context.h"
95 #include "content/public/browser/notification_service.h" 96 #include "content/public/browser/notification_service.h"
96 #include "content/public/browser/plugin_service.h" 97 #include "content/public/browser/plugin_service.h"
97 #include "content/public/browser/render_process_host.h" 98 #include "content/public/browser/render_process_host.h"
98 #include "content/public/browser/storage_partition.h" 99 #include "content/public/browser/storage_partition.h"
99 #include "content/public/common/content_constants.h" 100 #include "content/public/common/content_constants.h"
(...skipping 27 matching lines...) Expand all
127 #include "gpu/config/gpu_info.h" 128 #include "gpu/config/gpu_info.h"
128 #include "grit/browser_resources.h" 129 #include "grit/browser_resources.h"
129 #include "grit/generated_resources.h" 130 #include "grit/generated_resources.h"
130 #include "net/cookies/cookie_options.h" 131 #include "net/cookies/cookie_options.h"
131 #include "net/cookies/cookie_store.h" 132 #include "net/cookies/cookie_store.h"
132 #include "net/url_request/url_request_context.h" 133 #include "net/url_request/url_request_context.h"
133 #include "net/url_request/url_request_context_getter.h" 134 #include "net/url_request/url_request_context_getter.h"
134 #include "storage/browser/database/database_tracker.h" 135 #include "storage/browser/database/database_tracker.h"
135 #include "storage/browser/quota/quota_manager.h" 136 #include "storage/browser/quota/quota_manager.h"
136 #include "storage/common/database/database_identifier.h" 137 #include "storage/common/database/database_identifier.h"
137 #include "sync/api/string_ordinal.h"
138 #include "testing/gmock/include/gmock/gmock.h" 138 #include "testing/gmock/include/gmock/gmock.h"
139 #include "testing/gtest/include/gtest/gtest.h" 139 #include "testing/gtest/include/gtest/gtest.h"
140 #include "testing/platform_test.h" 140 #include "testing/platform_test.h"
141 #include "ui/base/l10n/l10n_util.h" 141 #include "ui/base/l10n/l10n_util.h"
142 #include "ui/base/material_design/material_design_controller.h" 142 #include "ui/base/material_design/material_design_controller.h"
143 #include "url/gurl.h" 143 #include "url/gurl.h"
144 144
145 #if defined(OS_CHROMEOS) 145 #if defined(OS_CHROMEOS)
146 #include "chrome/browser/chromeos/login/users/scoped_test_user_manager.h" 146 #include "chrome/browser/chromeos/login/users/scoped_test_user_manager.h"
147 #include "chrome/browser/chromeos/settings/cros_settings.h" 147 #include "chrome/browser/chromeos/settings/cros_settings.h"
(...skipping 6762 matching lines...) Expand 10 before | Expand all | Expand 10 after
6910 6910
6911 service()->Observe(chrome::NOTIFICATION_PROFILE_DESTRUCTION_STARTED, 6911 service()->Observe(chrome::NOTIFICATION_PROFILE_DESTRUCTION_STARTED,
6912 content::Source<Profile>(profile()), 6912 content::Source<Profile>(profile()),
6913 content::NotificationService::NoDetails()); 6913 content::NotificationService::NoDetails());
6914 EXPECT_EQ(UnloadedExtensionInfo::REASON_PROFILE_SHUTDOWN, unloaded_reason_); 6914 EXPECT_EQ(UnloadedExtensionInfo::REASON_PROFILE_SHUTDOWN, unloaded_reason_);
6915 EXPECT_EQ(0u, registry()->enabled_extensions().size()); 6915 EXPECT_EQ(0u, registry()->enabled_extensions().size());
6916 EXPECT_EQ(0u, registry()->disabled_extensions().size()); 6916 EXPECT_EQ(0u, registry()->disabled_extensions().size());
6917 EXPECT_EQ(0u, registry()->terminated_extensions().size()); 6917 EXPECT_EQ(0u, registry()->terminated_extensions().size());
6918 EXPECT_EQ(0u, registry()->blacklisted_extensions().size()); 6918 EXPECT_EQ(0u, registry()->blacklisted_extensions().size());
6919 } 6919 }
OLDNEW
« no previous file with comments | « chrome/browser/extensions/extension_service_sync_unittest.cc ('k') | chrome/browser/extensions/extension_sync_data.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698