Revert D6745720: [folly][compression] Log (de)compression bytes
[folly.git] / folly / compression / test / CompressionTest.cpp
index a1725765d067ccce0ac7d674206a3ede7ba186f5..9483979a7b99275b4939f97f51649ef8acb44209 100644 (file)
@@ -26,6 +26,7 @@
 #include <boost/noncopyable.hpp>
 #include <glog/logging.h>
 
+#include <folly/Benchmark.h>
 #include <folly/Memory.h>
 #include <folly/Random.h>
 #include <folly/Varint.h>
@@ -1488,3 +1489,14 @@ INSTANTIATE_TEST_CASE_P(
 } // namespace test
 } // namespace io
 } // namespace folly
+
+int main(int argc, char *argv[]) {
+  testing::InitGoogleTest(&argc, argv);
+  gflags::ParseCommandLineFlags(&argc, &argv, true);
+
+  auto ret = RUN_ALL_TESTS();
+  if (!ret) {
+    folly::runBenchmarksOnFlag();
+  }
+  return ret;
+}