aboutsummaryrefslogtreecommitdiff
path: root/paludis/repositories/e/fix_locked_dependencies_TEST.cc
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2009-10-21 19:19:57 +0100
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2009-10-21 22:01:52 +0100
commit576e0a19ba6bbf718d050f5743d687c3afc67641 (patch)
tree544032f388e6132acd7adb03271bfa488dcda75b /paludis/repositories/e/fix_locked_dependencies_TEST.cc
parentdd3736da2c72911ed8e7c3db6b45ae504d234af4 (diff)
downloadpaludis-576e0a19ba6bbf718d050f5743d687c3afc67641.tar.gz
paludis-576e0a19ba6bbf718d050f5743d687c3afc67641.tar.xz
Kill old ctor
Diffstat (limited to 'paludis/repositories/e/fix_locked_dependencies_TEST.cc')
-rw-r--r--paludis/repositories/e/fix_locked_dependencies_TEST.cc6
1 files changed, 5 insertions, 1 deletions
diff --git a/paludis/repositories/e/fix_locked_dependencies_TEST.cc b/paludis/repositories/e/fix_locked_dependencies_TEST.cc
index 6f44fb0ce..ca9a5353e 100644
--- a/paludis/repositories/e/fix_locked_dependencies_TEST.cc
+++ b/paludis/repositories/e/fix_locked_dependencies_TEST.cc
@@ -25,6 +25,7 @@
#include <paludis/repositories/fake/fake_repository.hh>
#include <paludis/repositories/fake/fake_installed_repository.hh>
#include <paludis/environments/test/test_environment.hh>
+#include <paludis/util/make_named_values.hh>
#include <paludis/stringify_formatter.hh>
#include <paludis/package_database.hh>
#include <test/test_framework.hh>
@@ -43,7 +44,10 @@ namespace test_cases
void run()
{
TestEnvironment env;
- std::tr1::shared_ptr<FakeRepository> repo(new FakeRepository(&env, RepositoryName("repo")));
+ const std::tr1::shared_ptr<FakeRepository> repo(new FakeRepository(make_named_values<FakeRepositoryParams>(
+ value_for<n::environment>(&env),
+ value_for<n::name>(RepositoryName("repo"))
+ )));
env.package_database()->add_repository(1, repo);
std::tr1::shared_ptr<const PackageID> id(repo->add_version("cat", "pkg", "1"));