cmake: fix the test builds
[folly.git] / folly / compression / test / CompressionTest.cpp
index 9c8460482da099d957bce8d3b0d9c2805824e9a6..9483979a7b99275b4939f97f51649ef8acb44209 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright 2017 Facebook, Inc.
+ * Copyright 2013-present Facebook, Inc.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
 #include <glog/logging.h>
 
 #include <folly/Benchmark.h>
-#include <folly/Hash.h>
 #include <folly/Memory.h>
 #include <folly/Random.h>
 #include <folly/Varint.h>
+#include <folly/hash/Hash.h>
 #include <folly/io/IOBufQueue.h>
 #include <folly/portability/GTest.h>
 
@@ -40,9 +40,9 @@
 
 #if FOLLY_HAVE_LIBZ
 #include <folly/compression/Zlib.h>
-#endif
 
 namespace zlib = folly::io::zlib;
+#endif
 
 namespace folly {
 namespace io {
@@ -1125,7 +1125,7 @@ class CustomCodec : public Codec {
   std::string prefix_;
   std::unique_ptr<Codec> codec_;
 };
-}
+} // namespace
 
 TEST_P(AutomaticCodecTest, CustomCodec) {
   const uint64_t length = 42;