Parker Schuh | e4a70d6 | 2017-12-27 20:10:20 -0800 | [diff] [blame] | 1 | #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 | |
| 7 | namespace aos { |
| 8 | namespace testing { |
| 9 | namespace { |
| 10 | |
| 11 | class 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 | |
| 20 | INSTANTIATE_TEST_CASE_P(ShmEventLoopTest, AbstractEventLoopTest, |
| 21 | ::testing::Values([]() { |
| 22 | return new ShmEventLoopTestFactory(); |
| 23 | })); |
| 24 | |
| 25 | } // namespace |
| 26 | } // namespace testing |
| 27 | } // namespace aos |