Home
last modified time | relevance | path

Searched refs:Manifest (Results 1 – 25 of 356) sorted by relevance

12345678910>>...15

/external/chromium_org/extensions/common/
Dcsp_validator_unittest.cc11 using extensions::Manifest;
27 ContentSecurityPolicyIsSecure(std::string(), Manifest::TYPE_EXTENSION)); in TEST()
29 Manifest::TYPE_EXTENSION)); in TEST()
32 "default-src *", Manifest::TYPE_EXTENSION)); in TEST()
34 "default-src 'self'", Manifest::TYPE_EXTENSION)); in TEST()
36 "default-src 'none'", Manifest::TYPE_EXTENSION)); in TEST()
38 "default-src 'self' ftp://google.com", Manifest::TYPE_EXTENSION)); in TEST()
40 "default-src 'self' https://google.com", Manifest::TYPE_EXTENSION)); in TEST()
43 "default-src *; default-src 'self'", Manifest::TYPE_EXTENSION)); in TEST()
45 "default-src 'self'; default-src *", Manifest::TYPE_EXTENSION)); in TEST()
[all …]
Dmanifest.cc30 int GetLocationRank(Manifest::Location location) { in GetLocationRank()
36 case Manifest::COMPONENT: in GetLocationRank()
40 case Manifest::EXTERNAL_COMPONENT: in GetLocationRank()
46 case Manifest::EXTERNAL_POLICY: in GetLocationRank()
50 case Manifest::EXTERNAL_POLICY_DOWNLOAD: in GetLocationRank()
57 case Manifest::COMMAND_LINE: in GetLocationRank()
61 case Manifest::UNPACKED: in GetLocationRank()
67 case Manifest::EXTERNAL_REGISTRY: in GetLocationRank()
71 case Manifest::EXTERNAL_PREF: in GetLocationRank()
75 case Manifest::EXTERNAL_PREF_DOWNLOAD: in GetLocationRank()
[all …]
/external/chromium_org/chrome/common/extensions/manifest_tests/
Dextension_manifest_test.h23 class Manifest {
25 explicit Manifest(const char* name);
26 Manifest(base::DictionaryValue* manifest, const char* name);
36 Manifest(const Manifest& m);
38 ~Manifest();
59 const Manifest& manifest,
61 extensions::Manifest::Location location =
62 extensions::Manifest::INTERNAL,
66 const Manifest& manifest,
67 extensions::Manifest::Location location =
[all …]
Dextension_manifest_test.cc60 ExtensionManifestTest::Manifest::Manifest(const char* name) in Manifest() function in ExtensionManifestTest::Manifest
64 ExtensionManifestTest::Manifest::Manifest(base::DictionaryValue* manifest, in Manifest() function in ExtensionManifestTest::Manifest
70 ExtensionManifestTest::Manifest::Manifest(const Manifest& m) { in Manifest() function in ExtensionManifestTest::Manifest
74 ExtensionManifestTest::Manifest::~Manifest() { in ~Manifest()
77 base::DictionaryValue* ExtensionManifestTest::Manifest::GetManifest( in GetManifest()
105 const Manifest& manifest, in LoadExtension()
107 extensions::Manifest::Location location, in LoadExtension()
119 const Manifest& manifest, in LoadAndExpectSuccess()
120 extensions::Manifest::Location location, in LoadAndExpectSuccess()
132 extensions::Manifest::Location location, in LoadAndExpectSuccess()
[all …]
Dextension_manifests_update_unittest.cc20 Testcase("update_url_valid_1.json", extensions::Manifest::INTERNAL, in TEST_F()
22 Testcase("update_url_valid_2.json", extensions::Manifest::INTERNAL, in TEST_F()
24 Testcase("update_url_valid_3.json", extensions::Manifest::INTERNAL, in TEST_F()
26 Testcase("update_url_valid_4.json", extensions::Manifest::INTERNAL, in TEST_F()
35 extensions::Manifest::INTERNAL, Extension::NO_FLAGS), in TEST_F()
37 extensions::Manifest::INTERNAL, Extension::NO_FLAGS), in TEST_F()
39 extensions::Manifest::INTERNAL, Extension::NO_FLAGS) in TEST_F()
/external/apache-harmony/archive/src/test/java/org/apache/harmony/archive/tests/java/util/jar/
DManifestTest.java28 import java.util.jar.Manifest;
59 private Manifest getManifest(String fileName) { in getManifest()
63 Manifest m = jarFile.getManifest(); in getManifest()
77 Manifest emptyManifest = new Manifest(); in testConstructor()
88 Manifest firstManifest = new Manifest(new ByteArrayInputStream( in testCopyingConstructor()
90 Manifest secondManifest = new Manifest(firstManifest); in testCopyingConstructor()
98 private void checkManifest(Manifest manifest) { in checkManifest()
129 Manifest m = getManifest(ATT_JAR_NAME); in testStreamConstructor()
133 Manifest mCopy = new Manifest(is); in testStreamConstructor()
136 Manifest manifest = new Manifest(new ByteArrayInputStream( in testStreamConstructor()
[all …]
/external/chromium_org/chrome/common/extensions/
Dmanifest_unittest.cc31 void AssertType(Manifest* manifest, Manifest::Type type) { in AssertType()
33 EXPECT_EQ(type == Manifest::TYPE_THEME, manifest->is_theme()); in AssertType()
34 EXPECT_EQ(type == Manifest::TYPE_PLATFORM_APP, in AssertType()
36 EXPECT_EQ(type == Manifest::TYPE_LEGACY_PACKAGED_APP, in AssertType()
38 EXPECT_EQ(type == Manifest::TYPE_HOSTED_APP, manifest->is_hosted_app()); in AssertType()
39 EXPECT_EQ(type == Manifest::TYPE_SHARED_MODULE, in AssertType()
46 void MutateManifest(scoped_ptr<Manifest>* manifest, in MutateManifest()
55 manifest->reset(new Manifest(Manifest::INTERNAL, manifest_value.Pass())); in MutateManifest()
70 scoped_ptr<Manifest> manifest( in TEST_F()
71 new Manifest(Manifest::INTERNAL, manifest_value.Pass())); in TEST_F()
[all …]
Dextension_unittest.cc37 ASSERT_EQ(0, Manifest::INVALID_LOCATION); in TEST()
38 ASSERT_EQ(1, Manifest::INTERNAL); in TEST()
39 ASSERT_EQ(2, Manifest::EXTERNAL_PREF); in TEST()
40 ASSERT_EQ(3, Manifest::EXTERNAL_REGISTRY); in TEST()
41 ASSERT_EQ(4, Manifest::UNPACKED); in TEST()
42 ASSERT_EQ(5, Manifest::COMPONENT); in TEST()
43 ASSERT_EQ(6, Manifest::EXTERNAL_PREF_DOWNLOAD); in TEST()
44 ASSERT_EQ(7, Manifest::EXTERNAL_POLICY_DOWNLOAD); in TEST()
45 ASSERT_EQ(8, Manifest::COMMAND_LINE); in TEST()
46 ASSERT_EQ(9, Manifest::EXTERNAL_POLICY); in TEST()
[all …]
Dsync_helper.cc50 case Manifest::TYPE_EXTENSION: in GetSyncType()
53 case Manifest::TYPE_USER_SCRIPT: in GetSyncType()
59 case Manifest::TYPE_HOSTED_APP: in GetSyncType()
60 case Manifest::TYPE_LEGACY_PACKAGED_APP: in GetSyncType()
61 case Manifest::TYPE_PLATFORM_APP: in GetSyncType()
64 case Manifest::TYPE_UNKNOWN: in GetSyncType()
67 case Manifest::TYPE_THEME: in GetSyncType()
68 case Manifest::TYPE_SHARED_MODULE: in GetSyncType()
84 bool is_syncable = (extension->location() == Manifest::INTERNAL && in IsSyncable()
Dsync_type_unittest.cc33 Manifest::Location location, in MakeSyncTestExtensionWithPluginPermission()
85 Manifest::Location location, in MakeSyncTestExtension()
105 Manifest::INTERNAL, base::FilePath(), in TEST_F()
113 Manifest::INTERNAL, base::FilePath(), in TEST_F()
121 Manifest::INTERNAL, base::FilePath(), in TEST_F()
129 Manifest::INTERNAL, base::FilePath(), in TEST_F()
138 Manifest::INTERNAL, base::FilePath(), in TEST_F()
146 Manifest::EXTERNAL_PREF, base::FilePath(), in TEST_F()
155 Manifest::INTERNAL, base::FilePath(), Extension::NO_FLAGS)); in TEST_F()
162 Manifest::INTERNAL, base::FilePath(), in TEST_F()
[all …]
/external/chromium_org/chrome/browser/extensions/
Dextension_web_contents_observer.cc50 Manifest::Type type = extension->GetType(); in RenderViewCreated()
51 if (type == Manifest::TYPE_EXTENSION || in RenderViewCreated()
52 type == Manifest::TYPE_LEGACY_PACKAGED_APP || in RenderViewCreated()
53 (type == Manifest::TYPE_PLATFORM_APP && in RenderViewCreated()
54 extension->location() == Manifest::COMPONENT)) { in RenderViewCreated()
60 if (type == Manifest::TYPE_EXTENSION || in RenderViewCreated()
61 type == Manifest::TYPE_LEGACY_PACKAGED_APP) { in RenderViewCreated()
70 case Manifest::TYPE_EXTENSION: in RenderViewCreated()
71 case Manifest::TYPE_USER_SCRIPT: in RenderViewCreated()
72 case Manifest::TYPE_HOSTED_APP: in RenderViewCreated()
[all …]
Dinstalled_loader.cc93 if (Manifest::IsUnpackedLocation(info.extension_location)) in ShouldReloadExtensionManifest()
143 if (extension.get() && !Manifest::IsUnpackedLocation(extension->location()) && in Load()
200 if (info->extension_location == Manifest::COMMAND_LINE) in LoadAllExtensions()
239 if (extensions_info->at(i)->extension_location == Manifest::COMMAND_LINE) in LoadAllExtensions()
281 Manifest::Location location = (*ex)->location(); in LoadAllExtensions()
282 Manifest::Type type = (*ex)->GetType(); in LoadAllExtensions()
286 } else if (type == Manifest::TYPE_EXTENSION) { in LoadAllExtensions()
294 if (Manifest::IsExternalLocation(location)) { in LoadAllExtensions()
323 if (location == Manifest::COMPONENT) in LoadAllExtensions()
337 if (Manifest::IsUnpackedLocation(location)) in LoadAllExtensions()
[all …]
Dexternal_provider_impl.cc70 Manifest::Location crx_location, in ExternalProviderImpl()
71 Manifest::Location download_location, in ExternalProviderImpl()
224 if (crx_location_ == Manifest::INVALID_LOCATION) { in SetPrefs()
261 if (download_location_ == Manifest::INVALID_LOCATION) { in SetPrefs()
307 const std::string& id, Manifest::Location* location, in GetExtensionDetails()
316 Manifest::Location loc = Manifest::INVALID_LOCATION; in GetExtensionDetails()
347 extensions::Manifest::Location crx_location = Manifest::INVALID_LOCATION; in CreateExternalProviders()
362 crx_location = Manifest::EXTERNAL_POLICY; in CreateExternalProviders()
382 Manifest::EXTERNAL_POLICY_DOWNLOAD, in CreateExternalProviders()
428 Manifest::EXTERNAL_PREF, in CreateExternalProviders()
[all …]
Dexternal_policy_loader_unittest.cc61 Manifest::INVALID_LOCATION, in Visit()
62 Manifest::EXTERNAL_POLICY_DOWNLOAD, in Visit()
75 Manifest::Location unused, in OnExternalExtensionFileFound()
84 Manifest::Location location, int unused1, bool unused2) OVERRIDE { in OnExternalExtensionUpdateUrlFound()
86 EXPECT_EQ(Manifest::EXTERNAL_POLICY_DOWNLOAD, location); in OnExternalExtensionUpdateUrlFound()
89 Manifest::Location location1; in OnExternalExtensionUpdateUrlFound()
92 EXPECT_EQ(Manifest::EXTERNAL_POLICY_DOWNLOAD, location1); in OnExternalExtensionUpdateUrlFound()
/external/chromium_org/extensions/browser/
Dadmin_policy.cc19 extension->location() != extensions::Manifest::COMPONENT && in ManagementPolicyImpl()
20 !extensions::Manifest::IsPolicyLocation(extension->location()); in ManagementPolicyImpl()
60 if (extension->location() == Manifest::COMPONENT) in UserMayLoad()
64 if (extension->location() != Manifest::EXTERNAL_POLICY && in UserMayLoad()
65 extension->location() != Manifest::EXTERNAL_POLICY_DOWNLOAD && in UserMayLoad()
82 case Manifest::TYPE_UNKNOWN: in UserMayLoad()
84 case Manifest::TYPE_EXTENSION: in UserMayLoad()
85 case Manifest::TYPE_THEME: in UserMayLoad()
86 case Manifest::TYPE_USER_SCRIPT: in UserMayLoad()
87 case Manifest::TYPE_HOSTED_APP: in UserMayLoad()
[all …]
Dadmin_policy_unittest.cc15 using extensions::Manifest;
21 void CreateExtension(Manifest::Location location) { in CreateExtension()
26 void CreateHostedApp(Manifest::Location location) { in CreateHostedApp()
34 void CreateExtensionFromValues(Manifest::Location location, in CreateExtensionFromValues()
65 CreateExtension(Manifest::COMPONENT); in TEST_F()
85 CreateExtension(Manifest::INTERNAL); in TEST_F()
98 CreateExtension(Manifest::INTERNAL); in TEST_F()
117 CreateExtension(Manifest::INTERNAL); in TEST_F()
150 CreateExtension(Manifest::INTERNAL); in TEST_F()
157 allowed_types.AppendInteger(Manifest::TYPE_EXTENSION); in TEST_F()
[all …]
Dpending_extension_manager.cc109 const Manifest::Location kSyncLocation = Manifest::INTERNAL; in AddFromSync()
131 const Manifest::Location kManifestLocation = Manifest::INTERNAL; in AddFromExtensionImport()
142 Manifest::Location location, in AddFromExternalUpdateUrl()
152 location == Manifest::GetHigherPriorityLocation(location, in AddFromExternalUpdateUrl()
175 Manifest::Location install_source, in AddFromExternalFile()
205 Manifest::Location install_source = iter->install_source(); in GetPendingIdsForUpdateCheck()
210 if (install_source == Manifest::EXTERNAL_PREF || in GetPendingIdsForUpdateCheck()
211 install_source == Manifest::EXTERNAL_REGISTRY) in GetPendingIdsForUpdateCheck()
225 Manifest::Location install_source, in AddExtensionImpl()
/external/chromium_org/chrome/common/extensions/features/
Dsimple_feature_unittest.cc16 using extensions::Manifest;
24 Manifest::Type extension_type;
43 { "", Manifest::TYPE_UNKNOWN, in TEST_F()
46 { "random-extension", Manifest::TYPE_UNKNOWN, in TEST_F()
49 { "", Manifest::TYPE_LEGACY_PACKAGED_APP, in TEST_F()
52 { "", Manifest::TYPE_UNKNOWN, in TEST_F()
55 { "", Manifest::TYPE_UNKNOWN, in TEST_F()
58 { "", Manifest::TYPE_UNKNOWN, in TEST_F()
61 { "", Manifest::TYPE_UNKNOWN, in TEST_F()
87 kIdFoo, Manifest::TYPE_UNKNOWN, Feature::UNSPECIFIED_LOCATION, -1, in TEST_F()
[all …]
Dbase_feature_provider_unittest.cc22 EXPECT_EQ(1u, feature->extension_types()->count(Manifest::TYPE_EXTENSION)); in TEST()
24 feature->extension_types()->count(Manifest::TYPE_LEGACY_PACKAGED_APP)); in TEST()
26 feature->extension_types()->count(Manifest::TYPE_PLATFORM_APP)); in TEST()
27 EXPECT_EQ(1u, feature->extension_types()->count(Manifest::TYPE_HOSTED_APP)); in TEST()
28 EXPECT_EQ(1u, feature->extension_types()->count(Manifest::TYPE_THEME)); in TEST()
30 feature->extension_types()->count(Manifest::TYPE_SHARED_MODULE)); in TEST()
39 base::FilePath(), Manifest::INTERNAL, manifest, Extension::NO_FLAGS, in TEST()
65 EXPECT_EQ(1u, feature->extension_types()->count(Manifest::TYPE_EXTENSION)); in TEST()
67 feature->extension_types()->count(Manifest::TYPE_LEGACY_PACKAGED_APP)); in TEST()
69 feature->extension_types()->count(Manifest::TYPE_PLATFORM_APP)); in TEST()
[all …]
Dsimple_feature.cc27 extension_types["extension"] = Manifest::TYPE_EXTENSION; in Mappings()
28 extension_types["theme"] = Manifest::TYPE_THEME; in Mappings()
29 extension_types["legacy_packaged_app"] = Manifest::TYPE_LEGACY_PACKAGED_APP; in Mappings()
30 extension_types["hosted_app"] = Manifest::TYPE_HOSTED_APP; in Mappings()
31 extension_types["platform_app"] = Manifest::TYPE_PLATFORM_APP; in Mappings()
32 extension_types["shared_module"] = Manifest::TYPE_SHARED_MODULE; in Mappings()
54 std::map<std::string, Manifest::Type> extension_types;
160 std::string GetDisplayName(Manifest::Type type) { in GetDisplayName()
162 case Manifest::TYPE_UNKNOWN: in GetDisplayName()
164 case Manifest::TYPE_EXTENSION: in GetDisplayName()
[all …]
Dcomplex_feature_unittest.cc17 using extensions::Manifest;
63 Manifest::TYPE_EXTENSION, in TEST_F()
71 Manifest::TYPE_LEGACY_PACKAGED_APP, in TEST_F()
79 Manifest::TYPE_EXTENSION, in TEST_F()
84 Manifest::TYPE_LEGACY_PACKAGED_APP, in TEST_F()
119 Manifest::TYPE_EXTENSION, in TEST_F()
130 Manifest::TYPE_LEGACY_PACKAGED_APP, in TEST_F()
141 Manifest::TYPE_EXTENSION, in TEST_F()
/external/chromium_org/chrome/common/extensions/api/identity/
Dextension_manifests_auth_unittest.cc110 Manifest manifest(&ext_manifest, "test"); in TEST_F()
127 Manifest manifest(&app_manifest, "test"); in TEST_F()
144 Manifest manifest(&app_manifest, "test"); in TEST_F()
162 Manifest manifest(ext_manifest, "test"); in TEST_F()
172 Manifest manifest(ext_manifest, "test"); in TEST_F()
185 Manifest manifest(ext_manifest, "test"); in TEST_F()
198 Manifest manifest(ext_manifest, "test"); in TEST_F()
211 Manifest manifest(ext_manifest, "test"); in TEST_F()
221 Manifest manifest(ext_manifest, "test"); in TEST_F()
231 Manifest manifest(ext_manifest, "test"); in TEST_F()
[all …]
/external/chromium_org/chrome/common/extensions/permissions/
Dchrome_permission_message_provider.h25 Manifest::Type extension_type) const OVERRIDE;
28 Manifest::Type extension_type) const OVERRIDE;
31 Manifest::Type extension_type) const OVERRIDE;
35 Manifest::Type extension_type) const OVERRIDE;
49 Manifest::Type extension_type) const;
68 Manifest::Type extension_type) const;
/external/chromium_org/webkit/browser/appcache/
Dmanifest_parser.h46 struct WEBKIT_STORAGE_BROWSER_EXPORT Manifest { struct
47 Manifest();
48 ~Manifest();
60 Manifest& manifest); argument
/external/chromium_org/chrome/browser/profile_resetter/
Dprofile_resetter_unittest.cc79 using extensions::Manifest;
237 Manifest::Location location, in CreateExtension()
238 extensions::Manifest::Type type, in CreateExtension()
244 case extensions::Manifest::TYPE_THEME: in CreateExtension()
247 case extensions::Manifest::TYPE_HOSTED_APP: in CreateExtension()
253 case extensions::Manifest::TYPE_EXTENSION: in CreateExtension()
460 Manifest::INVALID_LOCATION, in TEST_F()
461 extensions::Manifest::TYPE_THEME, in TEST_F()
474 Manifest::INVALID_LOCATION, in TEST_F()
475 extensions::Manifest::TYPE_EXTENSION, in TEST_F()
[all …]

12345678910>>...15