Move over to ABSL logging and flags.
Removes gperftools too since that wants gflags.
Here come the fireworks.
Change-Id: I79cb7bcf60f1047fbfa28bfffc21a0fd692e4b1c
Signed-off-by: Austin Schuh <austin.linux@gmail.com>
diff --git a/aos/network/timestamp_channel_test.cc b/aos/network/timestamp_channel_test.cc
index a217a74..9c0f57c 100644
--- a/aos/network/timestamp_channel_test.cc
+++ b/aos/network/timestamp_channel_test.cc
@@ -1,5 +1,7 @@
#include "aos/network/timestamp_channel.h"
+#include "absl/flags/declare.h"
+#include "absl/flags/flag.h"
#include "gtest/gtest.h"
#include "aos/configuration.h"
@@ -9,16 +11,16 @@
#include "aos/testing/path.h"
#include "aos/testing/tmpdir.h"
-DECLARE_string(override_hostname);
+ABSL_DECLARE_FLAG(std::string, override_hostname);
namespace aos::message_bridge::testing {
+
class TimestampChannelTest : public ::testing::Test {
protected:
TimestampChannelTest()
: config_(aos::configuration::ReadConfig(aos::testing::ArtifactPath(
"aos/network/timestamp_channel_test_config.json"))) {
- FLAGS_shm_base = aos::testing::TestTmpDir();
- FLAGS_override_hostname = "pi1";
+ absl::SetFlag(&FLAGS_override_hostname, "pi1");
}
aos::FlatbufferDetachedBuffer<aos::Configuration> config_;
};