diff --git a/proxygen/lib/http/codec/compress/experimental/simulator/CompressionSimulator.cpp b/proxygen/lib/http/codec/compress/experimental/simulator/CompressionSimulator.cpp index ab57213d8b..be252f8cb3 100644 --- a/proxygen/lib/http/codec/compress/experimental/simulator/CompressionSimulator.cpp +++ b/proxygen/lib/http/codec/compress/experimental/simulator/CompressionSimulator.cpp @@ -6,6 +6,8 @@ * LICENSE file in the root directory of this source tree. */ +#include + #include #include #include @@ -24,7 +26,7 @@ namespace { // This needs to be synchronized with HPACKEncoder::kAutoFlushThreshold. const size_t kMTU = 1400; -const std::string kTestDir = getContainingDirectory(__FILE__).str(); +const std::string kTestDir = getContainingDirectory(XLOG_FILENAME).str(); } // namespace diff --git a/proxygen/lib/http/session/test/HTTPSessionAcceptorTest.cpp b/proxygen/lib/http/session/test/HTTPSessionAcceptorTest.cpp index 05d674074c..0b0dccc28f 100644 --- a/proxygen/lib/http/session/test/HTTPSessionAcceptorTest.cpp +++ b/proxygen/lib/http/session/test/HTTPSessionAcceptorTest.cpp @@ -13,6 +13,7 @@ #include #include #include +#include #include #include @@ -26,7 +27,7 @@ using folly::test::MockAsyncSocket; namespace { -const std::string kTestDir = getContainingDirectory(__FILE__).str(); +const std::string kTestDir = getContainingDirectory(XLOG_FILENAME).str(); }