aboutsummaryrefslogtreecommitdiffstats
path: root/src/tests
diff options
context:
space:
mode:
authorKunal Mohan <kunalmohan99@gmail.com>2021-04-01 22:40:40 +0530
committerKunal Mohan <kunalmohan99@gmail.com>2021-05-04 20:48:15 +0530
commit223ee743e1b503f7d81c06343c23b2c786b2dbee (patch)
tree0b7a6a996c93c80328e327197816a28447f7b65a /src/tests
parentwip: helper functions for ServerInstruction (diff)
downloadsl0ppij-223ee743e1b503f7d81c06343c23b2c786b2dbee.tar.gz
sl0ppij-223ee743e1b503f7d81c06343c23b2c786b2dbee.tar.xz
sl0ppij-223ee743e1b503f7d81c06343c23b2c786b2dbee.zip
Move screen and plugins to client side.
Remove AppInstruction enum spawn pty thread, screen thread and plugin thread on demand
Diffstat (limited to 'src/tests')
-rw-r--r--src/tests/fakes.rs7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/tests/fakes.rs b/src/tests/fakes.rs
index 7c4175bb..f5b03fde 100644
--- a/src/tests/fakes.rs
+++ b/src/tests/fakes.rs
@@ -190,8 +190,11 @@ impl ClientOsApi for FakeInputOutput {
self.server_sender.update(new_ctx);
self.client_sender.update(new_ctx);
}
- fn connect_to_server(&mut self) {
- ClientOsApi::send_to_server(self, ServerInstruction::NewClient("zellij".into()));
+ fn connect_to_server(&mut self, full_screen_ws: PositionAndSize) {
+ ClientOsApi::send_to_server(
+ self,
+ ServerInstruction::NewClient("zellij".into(), full_screen_ws),
+ );
}
fn client_recv(&self) -> (ClientInstruction, ErrorContext) {
self.client_receiver.lock().unwrap().recv().unwrap()