~andreas-pokorny/mir/unregitser-fd-handler

« back to all changes in this revision

Viewing changes to tests/unit-tests/test_asio_main_loop.cpp

Removing InputDispatcherConfiguration and the by-pass of the InputTranslator using a dynamic cast that was only necessary until lp~andreas-pokorny:extended-input-dispatcher lands

The contents of the former InputDispatcherConfiguration have been moved to DefaultServerConfiguration. En passent the nested input relay was dropped too. The mir::input::InputDispatcher interface is now used directly. Note: Event filtering still works like before.

Approved by PS Jenkins bot, Alexandros Frantzis, Alan Griffiths, Chris Halse Rogers.

Show diffs side-by-side

added added

removed removed

Lines of Context:
341
341
 
342
342
    {
343
343
        std::unique_lock<decltype(checkpoint_mutex)> lock(checkpoint_mutex);
344
 
        ASSERT_TRUE(checkpoint.wait_for(lock, std::chrono::milliseconds{10}, [&hit_checkpoint]() { return hit_checkpoint; }));
 
344
        ASSERT_TRUE(checkpoint.wait_for(lock, std::chrono::milliseconds{100}, [&hit_checkpoint]() { return hit_checkpoint; }));
345
345
    }
346
346
 
347
347
    auto alarm = ml.notify_in(std::chrono::milliseconds{10}, [this]
349
349
        wait.notify_ready();
350
350
    });
351
351
 
352
 
    EXPECT_NO_THROW(wait.wait_until_ready(std::chrono::milliseconds{50}));
 
352
    EXPECT_NO_THROW(wait.wait_until_ready(std::chrono::milliseconds{500}));
353
353
 
354
354
    ml.stop();
355
355
    // Main loop should be stopped now