test: add tests for electron fuses (#42129)

* spec: add tests for electron fuses

* spec: fix tests for windows

* spec: handle weird crash codes on win32

* spec: disable fuse tests on arm64 windows
This commit is contained in:
Samuel Attard 2024-05-13 10:48:26 -07:00 committed by GitHub
parent c56e1dffb0
commit e19754d7fd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
9 changed files with 1080 additions and 38 deletions

View file

@ -116,7 +116,7 @@ bool FillFileInfoWithNode(Archive::FileInfo* info,
info->executable = *executable;
}
#if BUILDFLAG(IS_MAC)
#if BUILDFLAG(IS_MAC) || BUILDFLAG(IS_WIN)
if (load_integrity &&
electron::fuses::IsEmbeddedAsarIntegrityValidationEnabled()) {
if (const base::Value::Dict* integrity = node->FindDict("integrity")) {