From 09e329f00497d9904f93e5c5c8c99dd967ea4dae Mon Sep 17 00:00:00 2001 From: Joseph Beshay Date: Mon, 16 Oct 2023 16:38:41 -0700 Subject: [PATCH] Replace references to __FILE__ with XLOG_FILENAME Summary: As title. Reviewed By: hanidamlaj Differential Revision: D50340446 fbshipit-source-id: 760c71a2a09293201f4c6162120bd976216e0ed3 --- .../compress/experimental/simulator/CompressionSimulator.cpp | 4 +++- proxygen/lib/http/session/test/HTTPSessionAcceptorTest.cpp | 3 ++- 2 files changed, 5 insertions(+), 2 deletions(-) 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(); }