notedeck

One damus client to rule them all
git clone git://jb55.com/notedeck
Log | Files | Refs | README | LICENSE

account_login_view_test.rs (568B)


      1 use crate::egui_test_setup::{EguiTestCase, EguiTestSetup};
      2 use notedeck::account_login_view::AccountLoginView;
      3 use notedeck::login_manager::LoginManager;
      4 
      5 pub struct AccountLoginTest {
      6     manager: LoginManager,
      7 }
      8 
      9 impl EguiTestCase for AccountLoginTest {
     10     fn new(_supr: EguiTestSetup) -> Self {
     11         AccountLoginTest {
     12             manager: LoginManager::new(),
     13         }
     14     }
     15 }
     16 
     17 impl eframe::App for AccountLoginTest {
     18     fn update(&mut self, ctx: &egui::Context, _: &mut eframe::Frame) {
     19         AccountLoginView::new(ctx, &mut self.manager).panel()
     20     }
     21 }