MCPcopy Create free account
hub / github.com/electron/electron / ClearHeldPromiseForTesting

Function ClearHeldPromiseForTesting

shell/common/api/electron_api_testing.cc:242–244  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

240}
241
242void ClearHeldPromiseForTesting() {
243 GetHeldPromise().reset();
244}
245
246// Reaches the protected PowerMonitorSource::ProcessPowerEvent().
247struct PowerEventInjector : base::PowerMonitorSource {

Callers

nothing calls this directly

Calls 1

resetMethod · 0.45

Tested by

no test coverage detected