Skip to content

Commit

Permalink
test_transaction: Move PackageDownloadCallbacks to anonymous namespace
Browse files Browse the repository at this point in the history
We want to avoid violating ODR. We want to isolate the tests.
  • Loading branch information
jrohel committed Dec 8, 2024
1 parent 63bee40 commit 561bfc2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/libdnf5/rpm/test_transaction.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ using namespace libdnf5::rpm;
using namespace libdnf5::transaction;


namespace {

class PackageDownloadCallbacks : public libdnf5::repo::DownloadCallbacks {
public:
int end(
Expand Down Expand Up @@ -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");
Expand Down

0 comments on commit 561bfc2

Please sign in to comment.