Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Re-add `TestScreenCaptureStream` implementation for `mock_client` to fix FreeBSD and MinGW builds (#35191)
Maksim Bondarenkov3ad0546b0d4f
diff --git a/crates/livekit_client/src/mock_client/participant.rs b/crates/livekit_client/src/mock_client/participant.rsindex 991d10bd505..033808cbb54 100644--- a/crates/livekit_client/src/mock_client/participant.rs+++ b/crates/livekit_client/src/mock_client/participant.rs@@ -5,7 +5,9 @@ use crate::{};use anyhow::Result;use collections::HashMap;-use gpui::{AsyncApp, ScreenCaptureSource, ScreenCaptureStream, TestScreenCaptureStream};+use gpui::{+ AsyncApp, DevicePixels, ScreenCaptureSource, ScreenCaptureStream, SourceMetadata, size,+};#[derive(Clone, Debug)]pub struct LocalParticipant {@@ -119,3 +121,16 @@ impl RemoteParticipant {self.identity.clone()}}++struct TestScreenCaptureStream;++impl ScreenCaptureStream for TestScreenCaptureStream {+ fn metadata(&self) -> Result<SourceMetadata> {+ Ok(SourceMetadata {+ id: 0,+ is_main: None,+ label: None,+ resolution: size(DevicePixels(1), DevicePixels(1)),+ })+ }+}