Support XRTest.disconnectAllDevices()

This commit is contained in:
Manish Goregaokar 2019-07-19 19:59:55 -07:00
parent b0002a003d
commit 3f95d304ec
6 changed files with 55 additions and 11 deletions

View file

@ -38,6 +38,10 @@ impl FakeXRDevice {
FakeXRDeviceBinding::Wrap,
)
}
pub fn disconnect(&self, sender: IpcSender<()>) {
let _ = self.sender.send(MockDeviceMsg::Disconnect(sender));
}
}
pub fn get_views(views: &[FakeXRViewInit]) -> Fallible<Views> {