Support node specific remaps in LogReader
When we have a bunch of nodes running similar pieces of software, we end
up with a bunch of channels which are all the same, bar a prefix. The
applications then end up with node specific maps to avoid being
different everywhere.
When renaming those in replay, we need to recreate both the node
specific map, and take the map into account when renaming. We don't
want to leak the naming pattern up.
Change-Id: I6a6a0556bf49664679f443a21eaed23d024a515f
diff --git a/aos/events/simulated_event_loop_test.cc b/aos/events/simulated_event_loop_test.cc
index cf48c34..c7ab942 100644
--- a/aos/events/simulated_event_loop_test.cc
+++ b/aos/events/simulated_event_loop_test.cc
@@ -4,6 +4,7 @@
#include "aos/events/event_loop_param_test.h"
#include "aos/events/logging/logger_generated.h"
+#include "aos/events/message_counter.h"
#include "aos/events/ping_lib.h"
#include "aos/events/pong_lib.h"
#include "aos/events/test_message_generated.h"
@@ -259,19 +260,6 @@
0.0);
}
-template <typename T>
-class MessageCounter {
- public:
- MessageCounter(aos::EventLoop *event_loop, std::string_view name) {
- event_loop->MakeNoArgWatcher<T>(name, [this]() { ++count_; });
- }
-
- size_t count() const { return count_; }
-
- private:
- size_t count_ = 0;
-};
-
// Tests that ping and pong work when on 2 different nodes, and the message
// gateway messages are sent out as expected.
TEST(SimulatedEventLoopTest, MultinodePingPong) {