aboutsummaryrefslogtreecommitdiff
path: root/paludis/package_database_TEST.cc
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2009-10-21 22:00:49 +0100
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2009-10-21 22:01:52 +0100
commitcbcd4493d29a3309ffc52f9b91c2fad0ad942ae2 (patch)
treef51da5b08588d68a6d6e649c6da71c29b68ffeb7 /paludis/package_database_TEST.cc
parent576e0a19ba6bbf718d050f5743d687c3afc67641 (diff)
downloadpaludis-cbcd4493d29a3309ffc52f9b91c2fad0ad942ae2.tar.gz
paludis-cbcd4493d29a3309ffc52f9b91c2fad0ad942ae2.tar.xz
Consistent ctor style
Diffstat (limited to 'paludis/package_database_TEST.cc')
-rw-r--r--paludis/package_database_TEST.cc8
1 files changed, 7 insertions, 1 deletions
diff --git a/paludis/package_database_TEST.cc b/paludis/package_database_TEST.cc
index 62eba975c..c43a0ab96 100644
--- a/paludis/package_database_TEST.cc
+++ b/paludis/package_database_TEST.cc
@@ -167,7 +167,13 @@ namespace test_cases
p.add_repository(10, r3);
TEST_CHECK(true);
- std::tr1::shared_ptr<FakeInstalledRepository> r4(new FakeInstalledRepository(&e, RepositoryName("repo4")));
+ std::tr1::shared_ptr<FakeInstalledRepository> r4(new FakeInstalledRepository(
+ make_named_values<FakeInstalledRepositoryParams>(
+ value_for<n::environment>(&e),
+ value_for<n::name>(RepositoryName("repo4")),
+ value_for<n::suitable_destination>(true),
+ value_for<n::supports_uninstall>(true)
+ )));
r4->add_version(CategoryNamePart("good-cat1") + PackageNamePart("pkg-installed"), VersionSpec("0", VersionSpecOptions()));
r4->add_version(CategoryNamePart("good-cat1") + PackageNamePart("pkg-fail4"), VersionSpec("0", VersionSpecOptions()));
r4->add_version(CategoryNamePart("good-cat2") + PackageNamePart("pkg-fail4"), VersionSpec("0", VersionSpecOptions()));