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/sctp_lib_test.cc b/aos/network/sctp_lib_test.cc
index f297a82..a822257 100644
--- a/aos/network/sctp_lib_test.cc
+++ b/aos/network/sctp_lib_test.cc
@@ -1,16 +1,17 @@
#include "aos/network/sctp_lib.h"
-#include "gflags/gflags.h"
+#include "absl/flags/flag.h"
#include "aos/init.h"
-DEFINE_string(host, "", "host to resolve");
-DEFINE_int32(port, 2977, "port to use");
+ABSL_FLAG(std::string, host, "", "host to resolve");
+ABSL_FLAG(int32_t, port, 2977, "port to use");
int main(int argc, char **argv) {
aos::InitGoogle(&argc, &argv);
struct sockaddr_storage sockaddr = aos::message_bridge::ResolveSocket(
- FLAGS_host, FLAGS_port, aos::message_bridge::Ipv6Enabled());
+ absl::GetFlag(FLAGS_host), absl::GetFlag(FLAGS_port),
+ aos::message_bridge::Ipv6Enabled());
LOG(INFO) << "Family " << aos::message_bridge::Family(sockaddr);
LOG(INFO) << "Address " << aos::message_bridge::Address(sockaddr);
return 0;