blob: 544adbab4921bc194b8377baca18b35a2d45dc19 [file] [log] [blame]
Parker Schuhe4a70d62017-12-27 20:10:20 -08001#include "aos/events/shm-event-loop.h"
2
3#include "aos/events/event-loop_param_test.h"
4#include "aos/testing/test_shm.h"
5#include "gtest/gtest.h"
6
7namespace aos {
8namespace testing {
9namespace {
10
11class ShmEventLoopTestFactory : public EventLoopTestFactory {
12 public:
13 std::unique_ptr<EventLoop> Make() override {
14 return std::unique_ptr<EventLoop>(new ShmEventLoop());
15 }
16
17 ::aos::testing::TestSharedMemory my_shm_;
18};
19
20INSTANTIATE_TEST_CASE_P(ShmEventLoopTest, AbstractEventLoopTest,
21 ::testing::Values([]() {
22 return new ShmEventLoopTestFactory();
23 }));
24
25} // namespace
26} // namespace testing
27} // namespace aos