Parker Schuh | e4a70d6 | 2017-12-27 20:10:20 -0800 | [diff] [blame] | 1 | #ifndef _AOS_EVENTS_EVENT_LOOP_PARAM_TEST_H_ |
| 2 | #define _AOS_EVENTS_EVENT_LOOP_PARAM_TEST_H_ |
| 3 | |
Brian Silverman | 4f4e061 | 2020-08-12 19:54:41 -0700 | [diff] [blame] | 4 | #include <initializer_list> |
Austin Schuh | 5f1cc5c | 2019-12-01 18:01:11 -0800 | [diff] [blame] | 5 | #include <string_view> |
Neil Balch | 229001a | 2018-01-07 18:22:52 -0800 | [diff] [blame] | 6 | #include <vector> |
| 7 | |
Alex Perry | cb7da4b | 2019-08-28 19:35:56 -0700 | [diff] [blame] | 8 | #include "aos/events/event_loop.h" |
Brian Silverman | 4f4e061 | 2020-08-12 19:54:41 -0700 | [diff] [blame] | 9 | #include "aos/events/test_message_generated.h" |
Austin Schuh | a9df9ad | 2021-06-16 14:49:39 -0700 | [diff] [blame^] | 10 | #include "aos/events/test_message_schema.h" |
| 11 | #include "aos/events/timing_report_schema.h" |
Alex Perry | cb7da4b | 2019-08-28 19:35:56 -0700 | [diff] [blame] | 12 | #include "aos/flatbuffers.h" |
| 13 | #include "aos/json_to_flatbuffer.h" |
Austin Schuh | a9df9ad | 2021-06-16 14:49:39 -0700 | [diff] [blame^] | 14 | #include "aos/logging/log_message_schema.h" |
| 15 | #include "aos/network/message_bridge_client_schema.h" |
| 16 | #include "aos/network/message_bridge_server_schema.h" |
| 17 | #include "aos/network/timestamp_schema.h" |
Parker Schuh | e4a70d6 | 2017-12-27 20:10:20 -0800 | [diff] [blame] | 18 | #include "gtest/gtest.h" |
| 19 | |
| 20 | namespace aos { |
| 21 | namespace testing { |
| 22 | |
| 23 | class EventLoopTestFactory { |
| 24 | public: |
Alex Perry | cb7da4b | 2019-08-28 19:35:56 -0700 | [diff] [blame] | 25 | EventLoopTestFactory() |
Austin Schuh | a9df9ad | 2021-06-16 14:49:39 -0700 | [diff] [blame^] | 26 | : flatbuffer_(configuration::AddSchema( |
| 27 | R"config({ |
Brian Silverman | 7716297 | 2020-08-12 19:52:40 -0700 | [diff] [blame] | 28 | "channels": [ |
| 29 | { |
| 30 | "name": "/aos", |
| 31 | "type": "aos.logging.LogMessageFbs" |
| 32 | }, |
| 33 | { |
| 34 | "name": "/aos", |
| 35 | "type": "aos.timing.Report" |
| 36 | }, |
| 37 | { |
| 38 | "name": "/test", |
| 39 | "type": "aos.TestMessage" |
| 40 | }, |
| 41 | { |
| 42 | "name": "/test1", |
| 43 | "type": "aos.TestMessage" |
| 44 | }, |
| 45 | { |
| 46 | "name": "/test2", |
| 47 | "type": "aos.TestMessage" |
| 48 | } |
| 49 | ] |
Austin Schuh | a9df9ad | 2021-06-16 14:49:39 -0700 | [diff] [blame^] | 50 | })config", |
| 51 | {aos::FlatbufferSpan<reflection::Schema>( |
| 52 | logging::LogMessageFbsSchema()), |
| 53 | aos::FlatbufferSpan<reflection::Schema>(timing::ReportSchema()), |
| 54 | aos::FlatbufferSpan<reflection::Schema>(TestMessageSchema())})) {} |
Alex Perry | cb7da4b | 2019-08-28 19:35:56 -0700 | [diff] [blame] | 55 | |
Parker Schuh | e4a70d6 | 2017-12-27 20:10:20 -0800 | [diff] [blame] | 56 | virtual ~EventLoopTestFactory() {} |
| 57 | |
Austin Schuh | 44019f9 | 2019-05-19 19:58:27 -0700 | [diff] [blame] | 58 | // Makes a connected event loop. |
Austin Schuh | 5f1cc5c | 2019-12-01 18:01:11 -0800 | [diff] [blame] | 59 | virtual std::unique_ptr<EventLoop> Make(std::string_view name) = 0; |
Austin Schuh | 44019f9 | 2019-05-19 19:58:27 -0700 | [diff] [blame] | 60 | // Makes a primary event loop. This is the one the tests will try to use for |
| 61 | // anything blocking. |
Austin Schuh | 5f1cc5c | 2019-12-01 18:01:11 -0800 | [diff] [blame] | 62 | virtual std::unique_ptr<EventLoop> MakePrimary(std::string_view name) = 0; |
Austin Schuh | 44019f9 | 2019-05-19 19:58:27 -0700 | [diff] [blame] | 63 | |
| 64 | // Runs the loops until they quit. |
| 65 | virtual void Run() = 0; |
Austin Schuh | 52d325c | 2019-06-23 18:59:06 -0700 | [diff] [blame] | 66 | |
Austin Schuh | 9fe68f7 | 2019-08-10 19:32:03 -0700 | [diff] [blame] | 67 | // Quits the loops. |
| 68 | virtual void Exit() = 0; |
| 69 | |
Austin Schuh | 52d325c | 2019-06-23 18:59:06 -0700 | [diff] [blame] | 70 | // Advances time by sleeping. Can't be called from inside a loop. |
| 71 | virtual void SleepFor(::std::chrono::nanoseconds duration) = 0; |
Alex Perry | cb7da4b | 2019-08-28 19:35:56 -0700 | [diff] [blame] | 72 | |
Austin Schuh | d54780b | 2020-10-03 16:26:02 -0700 | [diff] [blame] | 73 | // Sets the config to a config with a max size with an invalid alignment. |
| 74 | void InvalidChannelAlignment() { |
Austin Schuh | a9df9ad | 2021-06-16 14:49:39 -0700 | [diff] [blame^] | 75 | flatbuffer_ = configuration::AddSchema( |
| 76 | R"config({ |
Austin Schuh | d54780b | 2020-10-03 16:26:02 -0700 | [diff] [blame] | 77 | "channels": [ |
| 78 | { |
| 79 | "name": "/aos", |
| 80 | "type": "aos.logging.LogMessageFbs" |
| 81 | }, |
| 82 | { |
| 83 | "name": "/aos", |
| 84 | "type": "aos.timing.Report" |
| 85 | }, |
| 86 | { |
| 87 | "name": "/test", |
| 88 | "type": "aos.TestMessage", |
| 89 | "max_size": 13 |
| 90 | }, |
| 91 | { |
| 92 | "name": "/test1", |
| 93 | "type": "aos.TestMessage" |
| 94 | }, |
| 95 | { |
| 96 | "name": "/test2", |
| 97 | "type": "aos.TestMessage" |
| 98 | } |
| 99 | ] |
Austin Schuh | a9df9ad | 2021-06-16 14:49:39 -0700 | [diff] [blame^] | 100 | })config", |
| 101 | {aos::FlatbufferSpan<reflection::Schema>( |
| 102 | logging::LogMessageFbsSchema()), |
| 103 | aos::FlatbufferSpan<reflection::Schema>(timing::ReportSchema()), |
| 104 | aos::FlatbufferSpan<reflection::Schema>(TestMessageSchema())}); |
Austin Schuh | d54780b | 2020-10-03 16:26:02 -0700 | [diff] [blame] | 105 | } |
| 106 | |
Brian Silverman | 7716297 | 2020-08-12 19:52:40 -0700 | [diff] [blame] | 107 | void PinReads() { |
| 108 | static const std::string kJson = R"config({ |
| 109 | "channels": [ |
| 110 | { |
| 111 | "name": "/aos", |
| 112 | "type": "aos.logging.LogMessageFbs", |
| 113 | "read_method": "PIN", |
| 114 | "num_readers": 10 |
| 115 | }, |
| 116 | { |
| 117 | "name": "/aos", |
| 118 | "type": "aos.timing.Report", |
| 119 | "read_method": "PIN", |
| 120 | "num_readers": 10 |
| 121 | }, |
| 122 | { |
| 123 | "name": "/test", |
| 124 | "type": "aos.TestMessage", |
| 125 | "read_method": "PIN", |
| 126 | "num_readers": 10 |
| 127 | }, |
| 128 | { |
| 129 | "name": "/test1", |
| 130 | "type": "aos.TestMessage", |
| 131 | "read_method": "PIN", |
| 132 | "num_readers": 10 |
| 133 | }, |
| 134 | { |
| 135 | "name": "/test2", |
| 136 | "type": "aos.TestMessage", |
| 137 | "read_method": "PIN", |
| 138 | "num_readers": 10 |
| 139 | } |
| 140 | ] |
| 141 | })config"; |
| 142 | |
Austin Schuh | a9df9ad | 2021-06-16 14:49:39 -0700 | [diff] [blame^] | 143 | flatbuffer_ = configuration::AddSchema( |
| 144 | kJson, {aos::FlatbufferSpan<reflection::Schema>( |
| 145 | logging::LogMessageFbsSchema()), |
| 146 | aos::FlatbufferSpan<reflection::Schema>(timing::ReportSchema()), |
| 147 | aos::FlatbufferSpan<reflection::Schema>(TestMessageSchema())}); |
Brian Silverman | 7716297 | 2020-08-12 19:52:40 -0700 | [diff] [blame] | 148 | } |
| 149 | |
Austin Schuh | 217a978 | 2019-12-21 23:02:50 -0800 | [diff] [blame] | 150 | void EnableNodes(std::string_view my_node) { |
Brian Silverman | 7716297 | 2020-08-12 19:52:40 -0700 | [diff] [blame] | 151 | static const std::string kJson = R"config({ |
Austin Schuh | 217a978 | 2019-12-21 23:02:50 -0800 | [diff] [blame] | 152 | "channels": [ |
| 153 | { |
Austin Schuh | 4c3b970 | 2020-08-30 11:34:55 -0700 | [diff] [blame] | 154 | "name": "/me/aos", |
Tyler Chatow | 67ddb03 | 2020-01-12 14:30:04 -0800 | [diff] [blame] | 155 | "type": "aos.logging.LogMessageFbs", |
| 156 | "source_node": "me" |
| 157 | }, |
| 158 | { |
Austin Schuh | 4c3b970 | 2020-08-30 11:34:55 -0700 | [diff] [blame] | 159 | "name": "/them/aos", |
Tyler Chatow | 67ddb03 | 2020-01-12 14:30:04 -0800 | [diff] [blame] | 160 | "type": "aos.logging.LogMessageFbs", |
| 161 | "source_node": "them" |
| 162 | }, |
| 163 | { |
Austin Schuh | 4c3b970 | 2020-08-30 11:34:55 -0700 | [diff] [blame] | 164 | "name": "/me/aos", |
| 165 | "type": "aos.message_bridge.Timestamp", |
| 166 | "source_node": "me", |
| 167 | "destination_nodes": [ |
| 168 | { |
| 169 | "name": "them" |
| 170 | } |
| 171 | ] |
| 172 | }, |
| 173 | { |
| 174 | "name": "/them/aos", |
| 175 | "type": "aos.message_bridge.Timestamp", |
| 176 | "source_node": "them", |
| 177 | "destination_nodes": [ |
| 178 | { |
| 179 | "name": "me" |
| 180 | } |
| 181 | ] |
| 182 | }, |
| 183 | { |
| 184 | "name": "/me/aos", |
| 185 | "type": "aos.message_bridge.ServerStatistics", |
| 186 | "source_node": "me", |
| 187 | "frequency": 2 |
| 188 | }, |
| 189 | { |
| 190 | "name": "/them/aos", |
| 191 | "type": "aos.message_bridge.ServerStatistics", |
| 192 | "source_node": "them", |
| 193 | "frequency": 2 |
| 194 | }, |
| 195 | { |
| 196 | "name": "/me/aos", |
| 197 | "type": "aos.message_bridge.ClientStatistics", |
| 198 | "source_node": "me", |
| 199 | "frequency": 2 |
| 200 | }, |
| 201 | { |
| 202 | "name": "/them/aos", |
| 203 | "type": "aos.message_bridge.ClientStatistics", |
| 204 | "source_node": "them", |
| 205 | "frequency": 2 |
| 206 | }, |
| 207 | { |
Austin Schuh | 217a978 | 2019-12-21 23:02:50 -0800 | [diff] [blame] | 208 | "name": "/aos", |
| 209 | "type": "aos.timing.Report", |
| 210 | "source_node": "me" |
| 211 | }, |
| 212 | { |
| 213 | "name": "/test", |
| 214 | "type": "aos.TestMessage", |
| 215 | "source_node": "me" |
| 216 | }, |
| 217 | { |
| 218 | "name": "/test1", |
| 219 | "type": "aos.TestMessage", |
| 220 | "source_node": "me" |
| 221 | }, |
| 222 | { |
| 223 | "name": "/test2", |
| 224 | "type": "aos.TestMessage", |
| 225 | "source_node": "me" |
| 226 | } |
| 227 | ], |
| 228 | "nodes": [ |
| 229 | { |
Austin Schuh | 898f497 | 2020-01-11 17:21:25 -0800 | [diff] [blame] | 230 | "name": "me", |
Austin Schuh | 217a978 | 2019-12-21 23:02:50 -0800 | [diff] [blame] | 231 | "hostname": "myhostname" |
Austin Schuh | 898f497 | 2020-01-11 17:21:25 -0800 | [diff] [blame] | 232 | }, |
| 233 | { |
| 234 | "name": "them", |
| 235 | "hostname": "themhostname" |
Austin Schuh | 217a978 | 2019-12-21 23:02:50 -0800 | [diff] [blame] | 236 | } |
Tyler Chatow | 67ddb03 | 2020-01-12 14:30:04 -0800 | [diff] [blame] | 237 | ], |
| 238 | "maps": [ |
| 239 | { |
| 240 | "match": { |
Austin Schuh | 4c3b970 | 2020-08-30 11:34:55 -0700 | [diff] [blame] | 241 | "name": "/aos*", |
Tyler Chatow | 67ddb03 | 2020-01-12 14:30:04 -0800 | [diff] [blame] | 242 | "source_node": "me" |
| 243 | }, |
| 244 | "rename": { |
Austin Schuh | 4c3b970 | 2020-08-30 11:34:55 -0700 | [diff] [blame] | 245 | "name": "/me/aos" |
Tyler Chatow | 67ddb03 | 2020-01-12 14:30:04 -0800 | [diff] [blame] | 246 | } |
| 247 | }, |
| 248 | { |
| 249 | "match": { |
Austin Schuh | 4c3b970 | 2020-08-30 11:34:55 -0700 | [diff] [blame] | 250 | "name": "/aos*", |
Tyler Chatow | 67ddb03 | 2020-01-12 14:30:04 -0800 | [diff] [blame] | 251 | "source_node": "them" |
| 252 | }, |
| 253 | "rename": { |
Austin Schuh | 4c3b970 | 2020-08-30 11:34:55 -0700 | [diff] [blame] | 254 | "name": "/them/aos" |
Tyler Chatow | 67ddb03 | 2020-01-12 14:30:04 -0800 | [diff] [blame] | 255 | } |
| 256 | } |
Austin Schuh | 217a978 | 2019-12-21 23:02:50 -0800 | [diff] [blame] | 257 | ] |
| 258 | })config"; |
| 259 | |
Austin Schuh | 4c3b970 | 2020-08-30 11:34:55 -0700 | [diff] [blame] | 260 | flatbuffer_ = configuration::MergeConfiguration( |
Austin Schuh | a9df9ad | 2021-06-16 14:49:39 -0700 | [diff] [blame^] | 261 | configuration::MergeConfiguration( |
| 262 | aos::FlatbufferDetachedBuffer<Configuration>( |
| 263 | JsonToFlatbuffer<Configuration>(kJson))), |
| 264 | {aos::FlatbufferSpan<reflection::Schema>( |
| 265 | logging::LogMessageFbsSchema()), |
| 266 | aos::FlatbufferSpan<reflection::Schema>(timing::ReportSchema()), |
| 267 | aos::FlatbufferSpan<reflection::Schema>(TestMessageSchema()), |
| 268 | aos::FlatbufferSpan<reflection::Schema>( |
| 269 | message_bridge::ClientStatisticsSchema()), |
| 270 | aos::FlatbufferSpan<reflection::Schema>( |
| 271 | message_bridge::ServerStatisticsSchema()), |
| 272 | aos::FlatbufferSpan<reflection::Schema>( |
| 273 | message_bridge::TimestampSchema())}); |
Austin Schuh | 217a978 | 2019-12-21 23:02:50 -0800 | [diff] [blame] | 274 | |
Austin Schuh | ac0771c | 2020-01-07 18:36:30 -0800 | [diff] [blame] | 275 | my_node_ = configuration::GetNode(&flatbuffer_.message(), my_node); |
Austin Schuh | 217a978 | 2019-12-21 23:02:50 -0800 | [diff] [blame] | 276 | } |
| 277 | |
Austin Schuh | ac0771c | 2020-01-07 18:36:30 -0800 | [diff] [blame] | 278 | const Node *my_node() const { return my_node_; } |
Austin Schuh | 217a978 | 2019-12-21 23:02:50 -0800 | [diff] [blame] | 279 | |
Alex Perry | cb7da4b | 2019-08-28 19:35:56 -0700 | [diff] [blame] | 280 | const Configuration *configuration() { return &flatbuffer_.message(); } |
| 281 | |
| 282 | private: |
| 283 | FlatbufferDetachedBuffer<Configuration> flatbuffer_; |
Austin Schuh | 217a978 | 2019-12-21 23:02:50 -0800 | [diff] [blame] | 284 | |
Austin Schuh | ac0771c | 2020-01-07 18:36:30 -0800 | [diff] [blame] | 285 | const Node *my_node_ = nullptr; |
Parker Schuh | e4a70d6 | 2017-12-27 20:10:20 -0800 | [diff] [blame] | 286 | }; |
| 287 | |
Austin Schuh | 6bae825 | 2021-02-07 22:01:49 -0800 | [diff] [blame] | 288 | enum class DoTimingReports { kYes, kNo }; |
| 289 | |
Brian Silverman | 4f4e061 | 2020-08-12 19:54:41 -0700 | [diff] [blame] | 290 | class AbstractEventLoopTest |
Brian Silverman | 7716297 | 2020-08-12 19:52:40 -0700 | [diff] [blame] | 291 | : public ::testing::TestWithParam< |
Austin Schuh | 6bae825 | 2021-02-07 22:01:49 -0800 | [diff] [blame] | 292 | std::tuple<std::function<EventLoopTestFactory *()>, ReadMethod, |
| 293 | DoTimingReports>> { |
Parker Schuh | e4a70d6 | 2017-12-27 20:10:20 -0800 | [diff] [blame] | 294 | public: |
Brian Silverman | 4f4e061 | 2020-08-12 19:54:41 -0700 | [diff] [blame] | 295 | AbstractEventLoopTest() : factory_(std::get<0>(GetParam())()) { |
Brian Silverman | 7716297 | 2020-08-12 19:52:40 -0700 | [diff] [blame] | 296 | if (read_method() == ReadMethod::PIN) { |
| 297 | factory_->PinReads(); |
| 298 | } |
| 299 | } |
| 300 | |
| 301 | ReadMethod read_method() const { return std::get<1>(GetParam()); } |
Austin Schuh | 6bae825 | 2021-02-07 22:01:49 -0800 | [diff] [blame] | 302 | DoTimingReports do_timing_reports() const { return std::get<2>(GetParam()); } |
Parker Schuh | e4a70d6 | 2017-12-27 20:10:20 -0800 | [diff] [blame] | 303 | |
Brian Silverman | 4f4e061 | 2020-08-12 19:54:41 -0700 | [diff] [blame] | 304 | ::std::unique_ptr<EventLoop> Make(std::string_view name = ""); |
| 305 | |
Austin Schuh | 5f1cc5c | 2019-12-01 18:01:11 -0800 | [diff] [blame] | 306 | ::std::unique_ptr<EventLoop> MakePrimary(std::string_view name = "primary") { |
| 307 | ++event_loop_count_; |
Austin Schuh | 6bae825 | 2021-02-07 22:01:49 -0800 | [diff] [blame] | 308 | auto result = factory_->MakePrimary(name); |
| 309 | if (do_timing_reports() == DoTimingReports::kNo) { |
| 310 | result->SkipTimingReport(); |
| 311 | } |
| 312 | return result; |
Austin Schuh | 5f1cc5c | 2019-12-01 18:01:11 -0800 | [diff] [blame] | 313 | } |
Austin Schuh | 44019f9 | 2019-05-19 19:58:27 -0700 | [diff] [blame] | 314 | |
Austin Schuh | d54780b | 2020-10-03 16:26:02 -0700 | [diff] [blame] | 315 | void InvalidChannelAlignment() { factory_->InvalidChannelAlignment(); } |
| 316 | |
Austin Schuh | 217a978 | 2019-12-21 23:02:50 -0800 | [diff] [blame] | 317 | void EnableNodes(std::string_view my_node) { factory_->EnableNodes(my_node); } |
| 318 | |
Austin Schuh | 44019f9 | 2019-05-19 19:58:27 -0700 | [diff] [blame] | 319 | void Run() { return factory_->Run(); } |
Austin Schuh | 52d325c | 2019-06-23 18:59:06 -0700 | [diff] [blame] | 320 | |
Austin Schuh | 9fe68f7 | 2019-08-10 19:32:03 -0700 | [diff] [blame] | 321 | void Exit() { return factory_->Exit(); } |
| 322 | |
Austin Schuh | 52d325c | 2019-06-23 18:59:06 -0700 | [diff] [blame] | 323 | void SleepFor(::std::chrono::nanoseconds duration) { |
| 324 | return factory_->SleepFor(duration); |
| 325 | } |
Austin Schuh | 9fe68f7 | 2019-08-10 19:32:03 -0700 | [diff] [blame] | 326 | |
Austin Schuh | 217a978 | 2019-12-21 23:02:50 -0800 | [diff] [blame] | 327 | const Configuration *configuration() { return factory_->configuration(); } |
| 328 | |
Austin Schuh | ac0771c | 2020-01-07 18:36:30 -0800 | [diff] [blame] | 329 | const Node *my_node() const { return factory_->my_node(); } |
Austin Schuh | 217a978 | 2019-12-21 23:02:50 -0800 | [diff] [blame] | 330 | |
Austin Schuh | 9fe68f7 | 2019-08-10 19:32:03 -0700 | [diff] [blame] | 331 | // Ends the given event loop at the given time from now. |
| 332 | void EndEventLoop(EventLoop *loop, ::std::chrono::milliseconds duration) { |
| 333 | auto end_timer = loop->AddTimer([this]() { this->Exit(); }); |
Austin Schuh | 7d87b67 | 2019-12-01 20:23:49 -0800 | [diff] [blame] | 334 | end_timer->Setup(loop->monotonic_now() + duration); |
Austin Schuh | 39788ff | 2019-12-01 18:22:57 -0800 | [diff] [blame] | 335 | end_timer->set_name("end"); |
Austin Schuh | 9fe68f7 | 2019-08-10 19:32:03 -0700 | [diff] [blame] | 336 | } |
| 337 | |
Brian Silverman | 4f4e061 | 2020-08-12 19:54:41 -0700 | [diff] [blame] | 338 | // Verifies that the buffer_index values for all of the given objects are |
| 339 | // consistent. |
| 340 | void VerifyBuffers( |
| 341 | int number_buffers, |
| 342 | std::vector<std::reference_wrapper<const Fetcher<TestMessage>>> fetchers, |
| 343 | std::vector<std::reference_wrapper<const Sender<TestMessage>>> senders); |
| 344 | |
Parker Schuh | e4a70d6 | 2017-12-27 20:10:20 -0800 | [diff] [blame] | 345 | private: |
Brian Silverman | 7716297 | 2020-08-12 19:52:40 -0700 | [diff] [blame] | 346 | const ::std::unique_ptr<EventLoopTestFactory> factory_; |
Austin Schuh | 5f1cc5c | 2019-12-01 18:01:11 -0800 | [diff] [blame] | 347 | |
| 348 | int event_loop_count_ = 0; |
Parker Schuh | e4a70d6 | 2017-12-27 20:10:20 -0800 | [diff] [blame] | 349 | }; |
| 350 | |
Brian Silverman | 4f4e061 | 2020-08-12 19:54:41 -0700 | [diff] [blame] | 351 | using AbstractEventLoopDeathTest = AbstractEventLoopTest; |
Austin Schuh | 6b6dfa5 | 2019-06-12 20:16:20 -0700 | [diff] [blame] | 352 | |
Parker Schuh | e4a70d6 | 2017-12-27 20:10:20 -0800 | [diff] [blame] | 353 | } // namespace testing |
| 354 | } // namespace aos |
| 355 | |
| 356 | #endif // _AOS_EVENTS_EVENT_LOOP_PARAM_TEST_H_ |