()
| 51 | // This is what bm.getMemorySnapshot would return; we stub the BrowserManager |
| 52 | // so the test never spins up real Chromium. |
| 53 | function makeStructureStats(): MemoryStructureStats { |
| 54 | return { |
| 55 | modificationHistory: { current: 42, cap: 200, evicted: 0 }, |
| 56 | activitySubscribers: 1, |
| 57 | inspectorSubscribers: 0, |
| 58 | consoleBufferLen: 1842, |
| 59 | networkBufferLen: 12000, |
| 60 | dialogBufferLen: 3, |
| 61 | captureBufferBytes: 0, |
| 62 | }; |
| 63 | } |
| 64 | |
| 65 | function makeSnapshot(overrides: Partial<MemorySnapshot> = {}): MemorySnapshot { |
| 66 | return { |
no outgoing calls
no test coverage detected