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

Side by Side Diff: chrome/browser/extensions/shared_module_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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/shared_module_service.h" 5 #include "chrome/browser/extensions/shared_module_service.h"
6 6
7 #include <memory> 7 #include <memory>
8 #include <utility> 8 #include <utility>
9 9
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
11 #include "base/strings/string16.h" 11 #include "base/strings/string16.h"
12 #include "base/values.h" 12 #include "base/values.h"
13 #include "chrome/browser/extensions/extension_service.h" 13 #include "chrome/browser/extensions/extension_service.h"
14 #include "chrome/browser/extensions/extension_service_test_base.h" 14 #include "chrome/browser/extensions/extension_service_test_base.h"
15 #include "chrome/browser/extensions/pending_extension_manager.h" 15 #include "chrome/browser/extensions/pending_extension_manager.h"
16 #include "components/crx_file/id_util.h" 16 #include "components/crx_file/id_util.h"
17 #include "components/sync/api/string_ordinal.h"
17 #include "components/version_info/version_info.h" 18 #include "components/version_info/version_info.h"
18 #include "extensions/browser/extension_registry.h" 19 #include "extensions/browser/extension_registry.h"
19 #include "extensions/browser/install_flag.h" 20 #include "extensions/browser/install_flag.h"
20 #include "extensions/browser/uninstall_reason.h" 21 #include "extensions/browser/uninstall_reason.h"
21 #include "extensions/common/extension_builder.h" 22 #include "extensions/common/extension_builder.h"
22 #include "extensions/common/features/feature_channel.h" 23 #include "extensions/common/features/feature_channel.h"
23 #include "extensions/common/value_builder.h" 24 #include "extensions/common/value_builder.h"
24 #include "sync/api/string_ordinal.h"
25 25
26 namespace extensions { 26 namespace extensions {
27 27
28 namespace { 28 namespace {
29 29
30 // Return an extension with |id| which imports all the modules that are in the 30 // Return an extension with |id| which imports all the modules that are in the
31 // container |import_ids|. 31 // container |import_ids|.
32 scoped_refptr<Extension> CreateExtensionImportingModules( 32 scoped_refptr<Extension> CreateExtensionImportingModules(
33 const std::vector<std::string>& import_ids, 33 const std::vector<std::string>& import_ids,
34 const std::string& id, 34 const std::string& id,
(...skipping 269 matching lines...) Expand 10 before | Expand all | Expand 10 after
304 // Since the modules were only referenced by that single extension, they 304 // Since the modules were only referenced by that single extension, they
305 // should have been uninstalled as a side-effect of uninstalling the extension 305 // should have been uninstalled as a side-effect of uninstalling the extension
306 // that depended upon it. 306 // that depended upon it.
307 EXPECT_FALSE(registry()->GetExtensionById(shared_module_one->id(), 307 EXPECT_FALSE(registry()->GetExtensionById(shared_module_one->id(),
308 ExtensionRegistry::EVERYTHING)); 308 ExtensionRegistry::EVERYTHING));
309 EXPECT_FALSE(registry()->GetExtensionById(shared_module_two->id(), 309 EXPECT_FALSE(registry()->GetExtensionById(shared_module_two->id(),
310 ExtensionRegistry::EVERYTHING)); 310 ExtensionRegistry::EVERYTHING));
311 } 311 }
312 312
313 } // namespace extensions 313 } // namespace extensions
OLDNEW
« no previous file with comments | « chrome/browser/extensions/external_provider_impl_chromeos_unittest.cc ('k') | chrome/browser/extensions/sync_bundle.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698