1use super::Platform;
2use crate::ScreenId;
3
4pub struct TestPlatform;
5
6impl TestPlatform {
7 pub fn new() -> Self {
8 TestPlatform
9 }
10}
11
12// todo!("implement out what our tests needed in GPUI 1")
13impl Platform for TestPlatform {
14 fn dispatcher(&self) -> std::sync::Arc<dyn crate::PlatformDispatcher> {
15 unimplemented!()
16 }
17
18 fn text_system(&self) -> std::sync::Arc<dyn crate::PlatformTextSystem> {
19 unimplemented!()
20 }
21
22 fn run(&self, _on_finish_launching: Box<dyn FnOnce()>) {
23 unimplemented!()
24 }
25
26 fn quit(&self) {
27 unimplemented!()
28 }
29
30 fn restart(&self) {
31 unimplemented!()
32 }
33
34 fn activate(&self, _ignoring_other_apps: bool) {
35 unimplemented!()
36 }
37
38 fn hide(&self) {
39 unimplemented!()
40 }
41
42 fn hide_other_apps(&self) {
43 unimplemented!()
44 }
45
46 fn unhide_other_apps(&self) {
47 unimplemented!()
48 }
49
50 fn screens(&self) -> Vec<std::rc::Rc<dyn crate::PlatformScreen>> {
51 unimplemented!()
52 }
53
54 fn screen_by_id(&self, _id: ScreenId) -> Option<std::rc::Rc<dyn crate::PlatformScreen>> {
55 unimplemented!()
56 }
57
58 fn main_window(&self) -> Option<crate::AnyWindowHandle> {
59 unimplemented!()
60 }
61
62 fn open_window(
63 &self,
64 _handle: crate::AnyWindowHandle,
65 _options: crate::WindowOptions,
66 ) -> Box<dyn crate::PlatformWindow> {
67 unimplemented!()
68 }
69
70 fn open_url(&self, _url: &str) {
71 unimplemented!()
72 }
73
74 fn on_open_urls(&self, _callback: Box<dyn FnMut(Vec<String>)>) {
75 unimplemented!()
76 }
77
78 fn prompt_for_paths(
79 &self,
80 _options: crate::PathPromptOptions,
81 ) -> futures::channel::oneshot::Receiver<Option<Vec<std::path::PathBuf>>> {
82 unimplemented!()
83 }
84
85 fn prompt_for_new_path(
86 &self,
87 _directory: &std::path::Path,
88 ) -> futures::channel::oneshot::Receiver<Option<std::path::PathBuf>> {
89 unimplemented!()
90 }
91
92 fn reveal_path(&self, _path: &std::path::Path) {
93 unimplemented!()
94 }
95
96 fn on_become_active(&self, _callback: Box<dyn FnMut()>) {
97 unimplemented!()
98 }
99
100 fn on_resign_active(&self, _callback: Box<dyn FnMut()>) {
101 unimplemented!()
102 }
103
104 fn on_quit(&self, _callback: Box<dyn FnMut()>) {
105 unimplemented!()
106 }
107
108 fn on_reopen(&self, _callback: Box<dyn FnMut()>) {
109 unimplemented!()
110 }
111
112 fn on_event(&self, _callback: Box<dyn FnMut(crate::Event) -> bool>) {
113 unimplemented!()
114 }
115
116 fn os_name(&self) -> &'static str {
117 unimplemented!()
118 }
119
120 fn os_version(&self) -> anyhow::Result<crate::SemanticVersion> {
121 unimplemented!()
122 }
123
124 fn app_version(&self) -> anyhow::Result<crate::SemanticVersion> {
125 unimplemented!()
126 }
127
128 fn app_path(&self) -> anyhow::Result<std::path::PathBuf> {
129 unimplemented!()
130 }
131
132 fn local_timezone(&self) -> time::UtcOffset {
133 unimplemented!()
134 }
135
136 fn path_for_auxiliary_executable(&self, _name: &str) -> anyhow::Result<std::path::PathBuf> {
137 unimplemented!()
138 }
139
140 fn set_cursor_style(&self, _style: crate::CursorStyle) {
141 unimplemented!()
142 }
143
144 fn should_auto_hide_scrollbars(&self) -> bool {
145 unimplemented!()
146 }
147
148 fn write_to_clipboard(&self, _item: crate::ClipboardItem) {
149 unimplemented!()
150 }
151
152 fn read_from_clipboard(&self) -> Option<crate::ClipboardItem> {
153 unimplemented!()
154 }
155
156 fn write_credentials(
157 &self,
158 _url: &str,
159 _username: &str,
160 _password: &[u8],
161 ) -> anyhow::Result<()> {
162 unimplemented!()
163 }
164
165 fn read_credentials(&self, _url: &str) -> anyhow::Result<Option<(String, Vec<u8>)>> {
166 unimplemented!()
167 }
168
169 fn delete_credentials(&self, _url: &str) -> anyhow::Result<()> {
170 unimplemented!()
171 }
172}