Home
last modified time | relevance | path

Searched refs:id_util (Results 1 – 25 of 73) sorted by relevance

123

/external/chromium_org/chrome/browser/extensions/
Dshared_module_service_unittest.cc104 std::string import_id = crx_file::id_util::GenerateId("id"); in TEST_F()
105 std::string extension_id = crx_file::id_util::GenerateId("extension_id"); in TEST_F()
135 .SetID(crx_file::id_util::GenerateId("shared_module")) in TEST_F()
140 std::string extension_id = crx_file::id_util::GenerateId("extension_id"); in TEST_F()
175 .SetID(crx_file::id_util::GenerateId("shared_module_1")) in TEST_F()
191 .SetID(crx_file::id_util::GenerateId("shared_module_2")) in TEST_F()
195 std::string extension_id = crx_file::id_util::GenerateId("extension_id"); in TEST_F()
235 std::string whitelisted_id = crx_file::id_util::GenerateId("whitelisted"); in TEST_F()
237 crx_file::id_util::GenerateId("nonwhitelisted"); in TEST_F()
254 .SetID(crx_file::id_util::GenerateId("shared_module")) in TEST_F()
Dextension_management_test_util.cc32 DCHECK(crx_file::id_util::IdIsValid(id)); in UnsetPerExtensionSettings()
38 DCHECK(crx_file::id_util::IdIsValid(id)); in ClearPerExtensionSettings()
53 DCHECK(crx_file::id_util::IdIsValid(it.key())); in ClearInstallationModesForIndividualExtensions()
64 DCHECK(crx_file::id_util::IdIsValid(id)); in SetIndividualExtensionInstallationAllowed()
74 DCHECK(crx_file::id_util::IdIsValid(id)); in SetIndividualExtensionAutoInstalled()
Dextension_management.cc203 DCHECK(crx_file::id_util::IdIsValid(id)) << "Invalid ID: " << id; in ReadById()
274 if ((*it)->GetAsString(&id) && crx_file::id_util::IdIsValid(id)) in Refresh()
282 if ((*it)->GetAsString(&id) && crx_file::id_util::IdIsValid(id)) in Refresh()
291 if (!crx_file::id_util::IdIsValid(it.key())) in Refresh()
354 if (!crx_file::id_util::IdIsValid(extension_id)) { in Refresh()
395 DCHECK(crx_file::id_util::IdIsValid(id)) << "Invalid ID: " << id; in AccessById()
Dextension_sync_data.cc78 DCHECK(crx_file::id_util::IdIsValid(id_)); in PopulateExtensionSpecifics()
91 if (!crx_file::id_util::IdIsValid(specifics.id())) { in PopulateFromExtensionSpecifics()
Dall_urls_apitest.cc44 whitelist.push_back(crx_file::id_util::GenerateIdForPath(extension_dir1)); in IN_PROC_BROWSER_TEST_F()
45 whitelist.push_back(crx_file::id_util::GenerateIdForPath(extension_dir2)); in IN_PROC_BROWSER_TEST_F()
Dwebstore_installer_unittest.cc26 std::string id = crx_file::id_util::GenerateId("some random string"); in TEST()
/external/chromium_org/chrome/common/extensions/
Dextension_unittest.cc188 EXPECT_TRUE(crx_file::id_util::IdIsValid("aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa")); in TEST()
189 EXPECT_TRUE(crx_file::id_util::IdIsValid("pppppppppppppppppppppppppppppppp")); in TEST()
190 EXPECT_TRUE(crx_file::id_util::IdIsValid("abcdefghijklmnopabcdefghijklmnop")); in TEST()
191 EXPECT_TRUE(crx_file::id_util::IdIsValid("ABCDEFGHIJKLMNOPABCDEFGHIJKLMNOP")); in TEST()
192 EXPECT_FALSE(crx_file::id_util::IdIsValid("abcdefghijklmnopabcdefghijklmno")); in TEST()
194 crx_file::id_util::IdIsValid("abcdefghijklmnopabcdefghijklmnopa")); in TEST()
196 crx_file::id_util::IdIsValid("0123456789abcdef0123456789abcdef")); in TEST()
198 crx_file::id_util::IdIsValid("abcdefghijklmnopabcdefghijklmnoq")); in TEST()
200 crx_file::id_util::IdIsValid("abcdefghijklmnopabcdefghijklmno0")); in TEST()
/external/chromium_org/extensions/browser/
Derror_map_unittest.cc40 const std::string kId = crx_file::id_util::GenerateId("id"); in TEST_F()
62 const std::string kSecondId = crx_file::id_util::GenerateId("id2"); in TEST_F()
92 const std::string kId = crx_file::id_util::GenerateId("id"); in TEST_F()
119 const std::string kId = crx_file::id_util::GenerateId("id"); in TEST_F()
Dfile_reader_unittest.cc58 std::string extension_id = crx_file::id_util::GenerateId("test"); in RunBasicTest()
89 std::string extension_id = crx_file::id_util::GenerateId("test"); in TEST_F()
Dextension_prefs.cc290 DCHECK(crx_file::id_util::IdIsValid(extension_id_)); in ScopedUpdate()
459 if (!crx_file::id_util::IdIsValid(extension_id)) { in UpdateExtensionPref()
686 DCHECK(crx_file::id_util::IdIsValid(extension_id)); in AcknowledgeExternalExtension()
699 DCHECK(crx_file::id_util::IdIsValid(extension_id)); in AcknowledgeBlacklistedExtension()
712 DCHECK(crx_file::id_util::IdIsValid(extension_id)); in SetExternalInstallFirstRun()
951 DCHECK(crx_file::id_util::IdIsValid(extension_id)); in LastPingDay()
957 DCHECK(crx_file::id_util::IdIsValid(extension_id)); in SetLastPingDay()
973 DCHECK(crx_file::id_util::IdIsValid(extension_id)); in LastActivePingDay()
979 DCHECK(crx_file::id_util::IdIsValid(extension_id)); in SetLastActivePingDay()
1078 CHECK(crx_file::id_util::IdIsValid(extension_id)); in GetGrantedPermissions()
[all …]
/external/chromium_org/chrome/common/
Dpepper_permission_util_unittest.cc49 crx_file::id_util::GenerateId("whitelisted_extension"); in TEST()
67 crx_file::id_util::GenerateId("bad_host"); in TEST()
84 std::string whitelisted_id = crx_file::id_util::GenerateId("extension_id"); in TEST()
85 std::string bad_id = crx_file::id_util::GenerateId("bad_id"); in TEST()
/external/chromium_org/chrome/browser/extensions/error_console/
Derror_console.cc81 if (!enabled_ || !crx_file::id_util::IdIsValid(extension_id)) in SetReportingForExtension()
102 if (!enabled_ || !crx_file::id_util::IdIsValid(extension_id)) in SetReportingAllForExtension()
117 if (!enabled_ || !crx_file::id_util::IdIsValid(extension_id)) in IsReportingEnabledForExtension()
126 if (!enabled_ || !crx_file::id_util::IdIsValid(extension_id)) in UseDefaultReportingForExtension()
134 if (!enabled_ || !crx_file::id_util::IdIsValid(error->extension_id())) in ReportError()
Derror_console_unittest.cc131 const std::string kId = crx_file::id_util::GenerateId("id"); in TEST_F()
152 const std::string kId = crx_file::id_util::GenerateId("id"); in TEST_F()
179 const std::string kId2 = crx_file::id_util::GenerateId("id2"); in TEST_F()
206 .SetID(crx_file::id_util::GenerateId("unpacked")) in TEST_F()
216 .SetID(crx_file::id_util::GenerateId("packed")) in TEST_F()
/external/chromium_org/chrome/browser/sync/test/integration/
Dsync_extension_helper.cc86 crx_file::id_util::GenerateId(name), in UninstallExtension()
109 ->EnableExtension(crx_file::id_util::GenerateId(name)); in EnableExtension()
116 ->DisableExtension(crx_file::id_util::GenerateId(name), in DisableExtension()
124 ->IsExtensionEnabled(crx_file::id_util::GenerateId(name)); in IsExtensionEnabled()
130 crx_file::id_util::GenerateId(name), profile, true); in IncognitoEnableExtension()
136 crx_file::id_util::GenerateId(name), profile, false); in IncognitoDisableExtension()
142 crx_file::id_util::GenerateId(name), profile); in IsIncognitoEnabled()
387 const std::string& expected_id = crx_file::id_util::GenerateId(name); in GetExtension()
Dsync_app_helper.cc176 crx_file::id_util::GenerateId(name)); in GetPageOrdinalForApp()
184 crx_file::id_util::GenerateId(name), page_ordinal); in SetPageOrdinalForApp()
191 crx_file::id_util::GenerateId(name)); in GetAppLaunchOrdinalForApp()
199 crx_file::id_util::GenerateId(name), app_launch_ordinal); in SetAppLaunchOrdinalForApp()
/external/chromium_org/components/crx_file/
DBUILD.gn10 "id_util.cc",
11 "id_util.h",
Did_util.cc33 namespace id_util { namespace
74 if (id.size() != (crx_file::id_util::kIdSize * 2)) in IdIsValid()
Did_util_unittest.cc11 namespace id_util { namespace
Did_util.h15 namespace id_util {
/external/chromium_org/components/
Dcrx_file.gypi20 'crx_file/id_util.cc',
21 'crx_file/id_util.h',
/external/chromium_org/extensions/common/manifest_handlers/
Dshared_module_info.cc56 crx_file::id_util::IdIsValid(tokens[1])) { in ParseImportedPath()
69 crx_file::id_util::IdIsValid(tokens[1])) { in IsImportedPath()
158 !crx_file::id_util::IdIsValid(extension_id)) { in Parse()
199 !crx_file::id_util::IdIsValid(extension_id)) { in Parse()
/external/chromium_org/chrome/browser/extensions/api/push_messaging/
Dpush_messaging_invalidation_handler.cc64 if (!crx_file::id_util::IdIsValid(components[1])) { in ObjectIdToExtensionAndSubchannel()
107 DCHECK(crx_file::id_util::IdIsValid(extension_id)); in RegisterExtension()
115 DCHECK(crx_file::id_util::IdIsValid(extension_id)); in UnregisterExtension()
/external/chromium_org/extensions/common/
Dextension_resource_unittest.cc39 std::string extension_id = crx_file::id_util::GenerateId("test"); in TEST()
60 std::string extension_id = crx_file::id_util::GenerateId("test"); in TEST()
146 std::string extension_id = crx_file::id_util::GenerateId("test"); in TEST()
/external/chromium_org/extensions/browser/guest_view/extension_options/
Dextension_options_guest.cc69 if (!crx_file::id_util::IdIsValid(extension_id)) { in CreateWebContents()
74 if (crx_file::id_util::IdIsValid(embedder_extension_id) && in CreateWebContents()
/external/chromium_org/chrome/browser/media_galleries/
Dmedia_galleries_test_util.cc72 EXPECT_TRUE(crx_file::id_util::IdIsValid(extension->id())); in AddMediaGalleriesApp()
73 if (!extension.get() || !crx_file::id_util::IdIsValid(extension->id())) in AddMediaGalleriesApp()

123