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

Side by Side Diff: chrome/browser/extensions/extension_prefs_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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_prefs_unittest.h" 5 #include "chrome/browser/extensions/extension_prefs_unittest.h"
6 6
7 #include "base/files/scoped_temp_dir.h" 7 #include "base/files/scoped_temp_dir.h"
8 #include "base/path_service.h" 8 #include "base/path_service.h"
9 #include "base/run_loop.h" 9 #include "base/run_loop.h"
10 #include "base/stl_util.h" 10 #include "base/stl_util.h"
11 #include "base/strings/string_number_conversions.h" 11 #include "base/strings/string_number_conversions.h"
12 #include "base/strings/stringprintf.h" 12 #include "base/strings/stringprintf.h"
13 #include "base/time/time.h" 13 #include "base/time/time.h"
14 #include "base/values.h" 14 #include "base/values.h"
15 #include "chrome/common/chrome_paths.h" 15 #include "chrome/common/chrome_paths.h"
16 #include "components/pref_registry/pref_registry_syncable.h" 16 #include "components/pref_registry/pref_registry_syncable.h"
17 #include "components/prefs/mock_pref_change_callback.h" 17 #include "components/prefs/mock_pref_change_callback.h"
18 #include "components/prefs/pref_change_registrar.h" 18 #include "components/prefs/pref_change_registrar.h"
19 #include "components/prefs/scoped_user_pref_update.h" 19 #include "components/prefs/scoped_user_pref_update.h"
20 #include "components/sync/api/string_ordinal.h"
20 #include "components/syncable_prefs/pref_service_syncable.h" 21 #include "components/syncable_prefs/pref_service_syncable.h"
21 #include "content/public/browser/notification_details.h" 22 #include "content/public/browser/notification_details.h"
22 #include "content/public/browser/notification_source.h" 23 #include "content/public/browser/notification_source.h"
23 #include "content/public/test/mock_notification_observer.h" 24 #include "content/public/test/mock_notification_observer.h"
24 #include "extensions/browser/extension_pref_value_map.h" 25 #include "extensions/browser/extension_pref_value_map.h"
25 #include "extensions/browser/extension_prefs.h" 26 #include "extensions/browser/extension_prefs.h"
26 #include "extensions/browser/install_flag.h" 27 #include "extensions/browser/install_flag.h"
27 #include "extensions/common/extension.h" 28 #include "extensions/common/extension.h"
28 #include "extensions/common/extension_builder.h" 29 #include "extensions/common/extension_builder.h"
29 #include "extensions/common/manifest_constants.h" 30 #include "extensions/common/manifest_constants.h"
30 #include "extensions/common/permissions/permission_set.h" 31 #include "extensions/common/permissions/permission_set.h"
31 #include "extensions/common/permissions/permissions_info.h" 32 #include "extensions/common/permissions/permissions_info.h"
32 #include "sync/api/string_ordinal.h"
33 33
34 using base::Time; 34 using base::Time;
35 using base::TimeDelta; 35 using base::TimeDelta;
36 using content::BrowserThread; 36 using content::BrowserThread;
37 37
38 namespace extensions { 38 namespace extensions {
39 39
40 static void AddPattern(URLPatternSet* extent, const std::string& pattern) { 40 static void AddPattern(URLPatternSet* extent, const std::string& pattern) {
41 int schemes = URLPattern::SCHEME_ALL; 41 int schemes = URLPattern::SCHEME_ALL;
42 extent->AddPattern(URLPattern(schemes, pattern)); 42 extent->AddPattern(URLPattern(schemes, pattern));
(...skipping 949 matching lines...) Expand 10 before | Expand all | Expand 10 after
992 992
993 private: 993 private:
994 std::unique_ptr<const PermissionSet> active_perms_; 994 std::unique_ptr<const PermissionSet> active_perms_;
995 scoped_refptr<Extension> component_extension_; 995 scoped_refptr<Extension> component_extension_;
996 scoped_refptr<Extension> no_component_extension_; 996 scoped_refptr<Extension> no_component_extension_;
997 }; 997 };
998 TEST_F(ExtensionPrefsComponentExtension, ExtensionPrefsComponentExtension) { 998 TEST_F(ExtensionPrefsComponentExtension, ExtensionPrefsComponentExtension) {
999 } 999 }
1000 1000
1001 } // namespace extensions 1001 } // namespace extensions
OLDNEW
« no previous file with comments | « chrome/browser/extensions/extension_disabled_ui_browsertest.cc ('k') | chrome/browser/extensions/extension_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698