From 5d345a12062c55715eac54d20e89995b56ed238d Mon Sep 17 00:00:00 2001 From: Jaroslav Rohel Date: Fri, 6 Dec 2024 12:31:14 +0100 Subject: [PATCH] test_transaction: Move PackageDownloadCallbacks to anonymous namespace We want to avoid violating ODR. We want to isolate the tests. --- test/libdnf5/rpm/test_transaction.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/libdnf5/rpm/test_transaction.cpp b/test/libdnf5/rpm/test_transaction.cpp index bf43aac79..8467ca827 100644 --- a/test/libdnf5/rpm/test_transaction.cpp +++ b/test/libdnf5/rpm/test_transaction.cpp @@ -39,6 +39,8 @@ using namespace libdnf5::rpm; using namespace libdnf5::transaction; +namespace { + class PackageDownloadCallbacks : public libdnf5::repo::DownloadCallbacks { public: int end( @@ -76,6 +78,8 @@ class PackageDownloadCallbacks : public libdnf5::repo::DownloadCallbacks { int mirror_failure_cnt{0}; }; +} // namespace + void RpmTransactionTest::test_transaction() { add_repo_rpm("rpm-repo1");