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/testing/gtest_main.cc b/aos/testing/gtest_main.cc
index 1940988..ecf2889 100644
--- a/aos/testing/gtest_main.cc
+++ b/aos/testing/gtest_main.cc
@@ -1,14 +1,15 @@
-#include "gflags/gflags.h"
-#include "glog/logging.h"
+#include "absl/flags/flag.h"
+#include "absl/log/check.h"
+#include "absl/log/log.h"
 #include "gtest/gtest.h"
 
 #include "aos/init.h"
 #include "aos/testing/tmpdir.h"
 
-DEFINE_bool(print_logs, false,
-            "Print the log messages as they are being generated.");
-DEFINE_string(log_file, "",
-              "Print all log messages to FILE instead of standard output.");
+ABSL_FLAG(bool, print_logs, false,
+          "Print the log messages as they are being generated.");
+ABSL_FLAG(std::string, log_file, "",
+          "Print all log messages to FILE instead of standard output.");
 
 namespace aos::testing {
 
@@ -20,22 +21,20 @@
 
 GTEST_API_ int main(int argc, char **argv) {
   ::testing::InitGoogleTest(&argc, argv);
-  FLAGS_logtostderr = true;
-
   aos::InitGoogle(&argc, &argv);
 
-  if (FLAGS_print_logs) {
+  if (absl::GetFlag(FLAGS_print_logs)) {
     if (::aos::testing::ForcePrintLogsDuringTests) {
       ::aos::testing::ForcePrintLogsDuringTests();
     }
   }
 
-  if (!FLAGS_log_file.empty()) {
+  if (!absl::GetFlag(FLAGS_log_file).empty()) {
     if (::aos::testing::ForcePrintLogsDuringTests) {
       ::aos::testing::ForcePrintLogsDuringTests();
     }
     if (::aos::testing::SetLogFileName) {
-      ::aos::testing::SetLogFileName(FLAGS_log_file.c_str());
+      ::aos::testing::SetLogFileName(absl::GetFlag(FLAGS_log_file).c_str());
     }
   }