#ifndef MOCKDEFS_H #define MOCKDEFS_H #include #include #include #include #include #include #include class DLL_PUBLIC Service : public IceTray::DryIce, PQ::Mock { public: Service(); }; class DLL_PUBLIC Maintenance : public IceTray::DryIce, PQ::Mock { public: Maintenance(); }; class DLL_PUBLIC TestClient : public IceTray::DryIceClient { public: TestClient(); Gentoo::MaintenancePrx m; Gentoo::PortagePrx p; Gentoo::UsersPrx u; }; #define SQL_REQUIRE_EQUAL(sql, type, expected) \ db->select(sql)->forEachRow([&expected](const auto & n) { BOOST_REQUIRE_EQUAL(expected, n); }); #endif