Use overloading instead of default values
As we are getting ready to add the send boot UUID everywhere, that will
require a UUID as an argument to all the Send methods with a default
that is event_loop_->boot_uuid(). That doesn't work. Instead, use
overloading to achieve the same purpose.
There are few call sites for all of these, so it isn't hard to change
them all.
Change-Id: Id1e17bbef2e63c72fa6ad2b038c69d452610e86e
diff --git a/aos/ipc_lib/lockless_queue_test.cc b/aos/ipc_lib/lockless_queue_test.cc
index a90b976..c8f3d23 100644
--- a/aos/ipc_lib/lockless_queue_test.cc
+++ b/aos/ipc_lib/lockless_queue_test.cc
@@ -238,17 +238,18 @@
// Send a trivial piece of data.
char data[100];
size_t s = snprintf(data, sizeof(data), "foobar%d", i);
- sender.Send(data, s);
+ sender.Send(data, s, monotonic_clock::min_time, realtime_clock::min_time,
+ 0xffffffffu, nullptr, nullptr, nullptr);
// Confirm that the queue index still makes sense. This is easier since the
// empty case has been handled.
EXPECT_EQ(reader.LatestIndex().index(), i);
// Read a result from 5 in the past.
- ::aos::monotonic_clock::time_point monotonic_sent_time;
- ::aos::realtime_clock::time_point realtime_sent_time;
- ::aos::monotonic_clock::time_point monotonic_remote_time;
- ::aos::realtime_clock::time_point realtime_remote_time;
+ monotonic_clock::time_point monotonic_sent_time;
+ realtime_clock::time_point realtime_sent_time;
+ monotonic_clock::time_point monotonic_remote_time;
+ realtime_clock::time_point realtime_remote_time;
uint32_t remote_queue_index;
char read_data[1024];
size_t length;