1
0
Fork 0
forked from wry/wry

autocommit 2022-05-01 17:23:55 CEST

This commit is contained in:
Julian Orth 2022-05-01 17:23:55 +02:00
parent 4373ed05bf
commit e1d5bf0e5d
39 changed files with 1772 additions and 57 deletions

34
src/it/test_client.rs Normal file
View file

@ -0,0 +1,34 @@
use {
crate::{
client::Client,
it::{
test_ifs::{
test_compositor::TestCompositor, test_jay_compositor::TestJayCompositor,
test_registry::TestRegistry, test_shm::TestShm,
},
test_transport::TestTransport,
testrun::TestRun,
},
},
std::rc::Rc,
};
pub struct TestClient {
pub run: Rc<TestRun>,
pub server: Rc<Client>,
pub transport: Rc<TestTransport>,
pub registry: Rc<TestRegistry>,
pub jc: Rc<TestJayCompositor>,
pub comp: Rc<TestCompositor>,
pub shm: Rc<TestShm>,
}
impl TestClient {
pub fn error(&self, msg: &str) {
self.transport.error(msg)
}
pub async fn sync(self: &Rc<Self>) {
self.transport.sync().await
}
}