use super::Platform; use crate::{DisplayId, Executor}; pub struct TestPlatform; impl TestPlatform { pub fn new() -> Self { TestPlatform } } // todo!("implement out what our tests needed in GPUI 1") impl Platform for TestPlatform { fn executor(&self) -> Executor { unimplemented!() } fn display_linker(&self) -> std::sync::Arc { unimplemented!() } fn text_system(&self) -> std::sync::Arc { unimplemented!() } fn run(&self, _on_finish_launching: Box) { unimplemented!() } fn quit(&self) { unimplemented!() } fn restart(&self) { unimplemented!() } fn activate(&self, _ignoring_other_apps: bool) { unimplemented!() } fn hide(&self) { unimplemented!() } fn hide_other_apps(&self) { unimplemented!() } fn unhide_other_apps(&self) { unimplemented!() } fn displays(&self) -> Vec> { unimplemented!() } fn display(&self, _id: DisplayId) -> Option> { unimplemented!() } fn main_window(&self) -> Option { unimplemented!() } fn open_window( &self, _handle: crate::AnyWindowHandle, _options: crate::WindowOptions, ) -> Box { unimplemented!() } fn open_url(&self, _url: &str) { unimplemented!() } fn on_open_urls(&self, _callback: Box)>) { unimplemented!() } fn prompt_for_paths( &self, _options: crate::PathPromptOptions, ) -> futures::channel::oneshot::Receiver>> { unimplemented!() } fn prompt_for_new_path( &self, _directory: &std::path::Path, ) -> futures::channel::oneshot::Receiver> { unimplemented!() } fn reveal_path(&self, _path: &std::path::Path) { unimplemented!() } fn on_become_active(&self, _callback: Box) { unimplemented!() } fn on_resign_active(&self, _callback: Box) { unimplemented!() } fn on_quit(&self, _callback: Box) { unimplemented!() } fn on_reopen(&self, _callback: Box) { unimplemented!() } fn on_event(&self, _callback: Box bool>) { unimplemented!() } fn os_name(&self) -> &'static str { unimplemented!() } fn os_version(&self) -> anyhow::Result { unimplemented!() } fn app_version(&self) -> anyhow::Result { unimplemented!() } fn app_path(&self) -> anyhow::Result { unimplemented!() } fn local_timezone(&self) -> time::UtcOffset { unimplemented!() } fn path_for_auxiliary_executable(&self, _name: &str) -> anyhow::Result { unimplemented!() } fn set_cursor_style(&self, _style: crate::CursorStyle) { unimplemented!() } fn should_auto_hide_scrollbars(&self) -> bool { unimplemented!() } fn write_to_clipboard(&self, _item: crate::ClipboardItem) { unimplemented!() } fn read_from_clipboard(&self) -> Option { unimplemented!() } fn write_credentials( &self, _url: &str, _username: &str, _password: &[u8], ) -> anyhow::Result<()> { unimplemented!() } fn read_credentials(&self, _url: &str) -> anyhow::Result)>> { unimplemented!() } fn delete_credentials(&self, _url: &str) -> anyhow::Result<()> { unimplemented!() } }