Require a name when making a simulated event loop
We need application names for both timing reports and for maps. So,
lets require the names everywhere.
Change-Id: I82bf63e2500d0552bc0bb01380f67c5328e9b201
diff --git a/aos/actions/action_test.cc b/aos/actions/action_test.cc
index aa0e6d2..fa1a347 100644
--- a/aos/actions/action_test.cc
+++ b/aos/actions/action_test.cc
@@ -102,9 +102,9 @@
: configuration_(
configuration::ReadConfig("aos/actions/action_test_config.json")),
event_loop_factory_(&configuration_.message()),
- actor1_event_loop_(event_loop_factory_.MakeEventLoop()),
- actor2_event_loop_(event_loop_factory_.MakeEventLoop()),
- test_event_loop_(event_loop_factory_.MakeEventLoop()) {
+ actor1_event_loop_(event_loop_factory_.MakeEventLoop("actor1")),
+ actor2_event_loop_(event_loop_factory_.MakeEventLoop("actor2")),
+ test_event_loop_(event_loop_factory_.MakeEventLoop("test")) {
::aos::testing::EnableTestLogging();
}
@@ -132,7 +132,7 @@
// cancel message.
TEST_F(ActionTest, StartWithOldGoal) {
::std::unique_ptr<::aos::EventLoop> test2_event_loop =
- event_loop_factory_.MakeEventLoop();
+ event_loop_factory_.MakeEventLoop("test2");
::aos::Sender<TestActionGoal> goal_sender =
test2_event_loop->MakeSender<TestActionGoal>("/test_action");
::aos::Fetcher<Status> status_fetcher =