fix(sandbox): implement Windows Mandatory Integrity Control for GeminiSandbox (#24057)

This commit is contained in:
Gal Zahavi
2026-03-27 17:14:35 -07:00
committed by GitHub
parent c2705e8332
commit ae123c547c
8 changed files with 75 additions and 23 deletions
@@ -385,5 +385,14 @@ describe('SandboxManager', () => {
expect(manager).toBeInstanceOf(expected);
},
);
it('should return WindowsSandboxManager if sandboxing is enabled on win32', () => {
vi.spyOn(os, 'platform').mockReturnValue('win32');
const manager = createSandboxManager(
{ enabled: true },
{ workspace: '/workspace' },
);
expect(manager).toBeInstanceOf(WindowsSandboxManager);
});
});
});