Store UUIDs as 16 bytes of data
This makes them much more efficient to write over shared memory to solve
the boot UUID logging problem when we add them.
Change-Id: Idf361d6b096bfa52cbc98f555c90bf1f6b90d3e0
diff --git a/aos/events/simulated_event_loop_test.cc b/aos/events/simulated_event_loop_test.cc
index 43833fd..60731c1 100644
--- a/aos/events/simulated_event_loop_test.cc
+++ b/aos/events/simulated_event_loop_test.cc
@@ -653,7 +653,7 @@
EXPECT_EQ(header.boot_uuid()->string_view(),
simulated_event_loop_factory.GetNodeEventLoopFactory(pi2)
->boot_uuid()
- .string_view());
+ .ToString());
const aos::monotonic_clock::time_point header_monotonic_sent_time(
chrono::nanoseconds(header.monotonic_sent_time()));
@@ -1433,7 +1433,7 @@
EXPECT_EQ(header.boot_uuid()->string_view(),
simulated_event_loop_factory.GetNodeEventLoopFactory(pi2)
->boot_uuid()
- .string_view());
+ .ToString());
VLOG(1) << aos::FlatbufferToJson(&header);
if (header.channel_index() == reliable_channel_index) {
++reliable_timestamp_count;
@@ -1488,7 +1488,7 @@
std::string expected_boot_uuid(
simulated_event_loop_factory.GetNodeEventLoopFactory(pi2)
->boot_uuid()
- .string_view());
+ .ToString());
int timestamp_count = 0;
pi1_remote_timestamp->MakeWatcher(
@@ -1530,12 +1530,12 @@
EXPECT_NE(expected_boot_uuid,
simulated_event_loop_factory.GetNodeEventLoopFactory(pi2)
->boot_uuid()
- .string_view());
+ .ToString());
expected_boot_uuid =
simulated_event_loop_factory.GetNodeEventLoopFactory(pi2)
->boot_uuid()
- .string_view();
+ .ToString();
timestamp_count = 0;
pi1_server_statistics_count = 0;