aboutsummaryrefslogtreecommitdiff
path: root/paludis/repositories/e/exndbam_repository_TEST.cc
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2009-02-09 16:07:13 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2009-02-09 16:07:13 +0000
commit58d9dd98d1bdfa81b810b9742c3f4cd93f6a5f8f (patch)
treebb8bf797880968675d55865997bc8ff72c66fcf3 /paludis/repositories/e/exndbam_repository_TEST.cc
parent768e6a2a4f80d4589e262f3241cdbc2273e029a5 (diff)
downloadpaludis-58d9dd98d1bdfa81b810b9742c3f4cd93f6a5f8f.tar.gz
paludis-58d9dd98d1bdfa81b810b9742c3f4cd93f6a5f8f.tar.xz
Update for output manager function
Diffstat (limited to 'paludis/repositories/e/exndbam_repository_TEST.cc')
-rw-r--r--paludis/repositories/e/exndbam_repository_TEST.cc9
1 files changed, 7 insertions, 2 deletions
diff --git a/paludis/repositories/e/exndbam_repository_TEST.cc b/paludis/repositories/e/exndbam_repository_TEST.cc
index 7c17f60d4..376b97b19 100644
--- a/paludis/repositories/e/exndbam_repository_TEST.cc
+++ b/paludis/repositories/e/exndbam_repository_TEST.cc
@@ -40,6 +40,11 @@ using namespace paludis;
namespace
{
+ std::tr1::shared_ptr<OutputManager> make_standard_output_manager(const Action &)
+ {
+ return make_shared_ptr(new StandardOutputManager);
+ }
+
std::string from_keys(const std::tr1::shared_ptr<const Map<std::string, std::string> > & m,
const std::string & k)
{
@@ -124,14 +129,14 @@ namespace test_cases
InstallAction install_action(make_named_values<InstallActionOptions>(
value_for<n::destination>(exndbam_repo),
- value_for<n::output_manager>(make_shared_ptr(new StandardOutputManager)),
+ value_for<n::make_output_manager>(&make_standard_output_manager),
value_for<n::used_this_for_config_protect>(&dummy_used_this_for_config_protect),
value_for<n::want_phase>(&want_all_phases)
));
UninstallAction uninstall_action(make_named_values<UninstallActionOptions>(
value_for<n::config_protect>(""),
- value_for<n::output_manager>(make_shared_ptr(new StandardOutputManager))
+ value_for<n::make_output_manager>(&make_standard_output_manager)
));
TEST_CHECK(exndbam_repo->package_ids(QualifiedPackageName("cat/pkg"))->empty());