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

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

Issue 1658793002: Update chrome for new prefs location. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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/component_loader.h" 5 #include "chrome/browser/extensions/component_loader.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include <string> 9 #include <string>
10 10
11 #include "base/command_line.h" 11 #include "base/command_line.h"
12 #include "base/files/file_util.h" 12 #include "base/files/file_util.h"
13 #include "base/path_service.h" 13 #include "base/path_service.h"
14 #include "base/prefs/pref_registry_simple.h"
15 #include "build/build_config.h" 14 #include "build/build_config.h"
16 #include "chrome/browser/extensions/test_extension_service.h" 15 #include "chrome/browser/extensions/test_extension_service.h"
17 #include "chrome/common/chrome_paths.h" 16 #include "chrome/common/chrome_paths.h"
18 #include "chrome/common/chrome_switches.h" 17 #include "chrome/common/chrome_switches.h"
19 #include "chrome/common/pref_names.h" 18 #include "chrome/common/pref_names.h"
20 #include "chrome/test/base/testing_profile.h" 19 #include "chrome/test/base/testing_profile.h"
21 #include "components/pref_registry/pref_registry_syncable.h" 20 #include "components/pref_registry/pref_registry_syncable.h"
21 #include "components/prefs/pref_registry_simple.h"
22 #include "components/syncable_prefs/testing_pref_service_syncable.h" 22 #include "components/syncable_prefs/testing_pref_service_syncable.h"
23 #include "content/public/test/test_browser_thread_bundle.h" 23 #include "content/public/test/test_browser_thread_bundle.h"
24 #include "extensions/browser/extension_registry.h" 24 #include "extensions/browser/extension_registry.h"
25 #include "extensions/common/constants.h" 25 #include "extensions/common/constants.h"
26 #include "extensions/common/extension.h" 26 #include "extensions/common/extension.h"
27 #include "extensions/common/extension_set.h" 27 #include "extensions/common/extension_set.h"
28 #include "extensions/common/manifest_handlers/background_info.h" 28 #include "extensions/common/manifest_handlers/background_info.h"
29 #include "testing/gtest/include/gtest/gtest.h" 29 #include "testing/gtest/include/gtest/gtest.h"
30 30
31 namespace extensions { 31 namespace extensions {
(...skipping 247 matching lines...) Expand 10 before | Expand all | Expand 10 after
279 component_loader_.AddOrReplace(known_extension); 279 component_loader_.AddOrReplace(known_extension);
280 EXPECT_EQ(default_count + 1, registry->enabled_extensions().size()); 280 EXPECT_EQ(default_count + 1, registry->enabled_extensions().size());
281 EXPECT_EQ(1u, extension_service_.unloaded_count()); 281 EXPECT_EQ(1u, extension_service_.unloaded_count());
282 282
283 // Add an invalid component extension. 283 // Add an invalid component extension.
284 std::string extension_id = component_loader_.AddOrReplace(invalid_extension); 284 std::string extension_id = component_loader_.AddOrReplace(invalid_extension);
285 EXPECT_TRUE(extension_id.empty()); 285 EXPECT_TRUE(extension_id.empty());
286 } 286 }
287 287
288 } // namespace extensions 288 } // namespace extensions
OLDNEW
« no previous file with comments | « chrome/browser/extensions/bookmark_app_helper.cc ('k') | chrome/browser/extensions/component_migration_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698