/external/chromium_org/chrome/browser/extensions/ |
D | shared_module_service_unittest.cc | 104 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()
|
D | extension_management_test_util.cc | 32 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()
|
D | extension_management.cc | 203 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()
|
D | extension_sync_data.cc | 78 DCHECK(crx_file::id_util::IdIsValid(id_)); in PopulateExtensionSpecifics() 91 if (!crx_file::id_util::IdIsValid(specifics.id())) { in PopulateFromExtensionSpecifics()
|
D | all_urls_apitest.cc | 44 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()
|
D | webstore_installer_unittest.cc | 26 std::string id = crx_file::id_util::GenerateId("some random string"); in TEST()
|
/external/chromium_org/chrome/common/extensions/ |
D | extension_unittest.cc | 188 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/ |
D | error_map_unittest.cc | 40 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()
|
D | file_reader_unittest.cc | 58 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()
|
D | extension_prefs.cc | 290 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/ |
D | pepper_permission_util_unittest.cc | 49 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/ |
D | error_console.cc | 81 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()
|
D | error_console_unittest.cc | 131 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/ |
D | sync_extension_helper.cc | 86 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()
|
D | sync_app_helper.cc | 176 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/ |
D | BUILD.gn | 10 "id_util.cc", 11 "id_util.h",
|
D | id_util.cc | 33 namespace id_util { namespace 74 if (id.size() != (crx_file::id_util::kIdSize * 2)) in IdIsValid()
|
D | id_util_unittest.cc | 11 namespace id_util { namespace
|
D | id_util.h | 15 namespace id_util {
|
/external/chromium_org/components/ |
D | crx_file.gypi | 20 'crx_file/id_util.cc', 21 'crx_file/id_util.h',
|
/external/chromium_org/extensions/common/manifest_handlers/ |
D | shared_module_info.cc | 56 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/ |
D | push_messaging_invalidation_handler.cc | 64 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/ |
D | extension_resource_unittest.cc | 39 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/ |
D | extension_options_guest.cc | 69 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/ |
D | media_galleries_test_util.cc | 72 EXPECT_TRUE(crx_file::id_util::IdIsValid(extension->id())); in AddMediaGalleriesApp() 73 if (!extension.get() || !crx_file::id_util::IdIsValid(extension->id())) in AddMediaGalleriesApp()
|