Skip to content

Commit

Permalink
Replace references to __FILE__ with XLOG_FILENAME
Browse files Browse the repository at this point in the history
Summary: As title.

Reviewed By: hanidamlaj

Differential Revision: D50340446

fbshipit-source-id: 760c71a2a09293201f4c6162120bd976216e0ed3
  • Loading branch information
jbeshay authored and facebook-github-bot committed Oct 16, 2023
1 parent d4b2691 commit 09e329f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
* LICENSE file in the root directory of this source tree.
*/

#include <folly/logging/xlog.h>

#include <proxygen/lib/http/codec/compress/experimental/simulator/CompressionSimulator.h>
#include <proxygen/lib/http/codec/compress/experimental/simulator/CompressionUtils.h>
#include <proxygen/lib/http/codec/compress/experimental/simulator/HPACKScheme.h>
Expand All @@ -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

Expand Down
3 changes: 2 additions & 1 deletion proxygen/lib/http/session/test/HTTPSessionAcceptorTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
#include <folly/io/async/AsyncSSLSocket.h>
#include <folly/io/async/test/MockAsyncServerSocket.h>
#include <folly/io/async/test/MockAsyncSocket.h>
#include <folly/logging/xlog.h>
#include <proxygen/lib/http/session/test/HTTPSessionMocks.h>
#include <proxygen/lib/utils/TestUtils.h>

Expand All @@ -26,7 +27,7 @@ using folly::test::MockAsyncSocket;

namespace {

const std::string kTestDir = getContainingDirectory(__FILE__).str();
const std::string kTestDir = getContainingDirectory(XLOG_FILENAME).str();

}

Expand Down

0 comments on commit 09e329f

Please sign in to comment.