aboutsummaryrefslogtreecommitdiff
path: root/paludis/repositories/virtuals/virtuals_repository_TEST.cc
diff options
context:
space:
mode:
Diffstat (limited to 'paludis/repositories/virtuals/virtuals_repository_TEST.cc')
-rw-r--r--paludis/repositories/virtuals/virtuals_repository_TEST.cc16
1 files changed, 14 insertions, 2 deletions
diff --git a/paludis/repositories/virtuals/virtuals_repository_TEST.cc b/paludis/repositories/virtuals/virtuals_repository_TEST.cc
index a61891399..90f5e31bc 100644
--- a/paludis/repositories/virtuals/virtuals_repository_TEST.cc
+++ b/paludis/repositories/virtuals/virtuals_repository_TEST.cc
@@ -55,7 +55,13 @@ namespace test_cases
value_for<n::environment>(&env),
value_for<n::name>(RepositoryName("repo"))
)));
- std::tr1::shared_ptr<FakeInstalledRepository> installed(new FakeInstalledRepository(&env, RepositoryName("installed")));
+ std::tr1::shared_ptr<FakeInstalledRepository> installed(new FakeInstalledRepository(
+ make_named_values<FakeInstalledRepositoryParams>(
+ value_for<n::environment>(&env),
+ value_for<n::name>(RepositoryName("installed")),
+ value_for<n::suitable_destination>(true),
+ value_for<n::supports_uninstall>(true)
+ )));
TEST_CHECK(repo->virtuals_interface());
@@ -96,7 +102,13 @@ namespace test_cases
value_for<n::environment>(&env),
value_for<n::name>(RepositoryName("repo2"))
)));
- std::tr1::shared_ptr<FakeInstalledRepository> installed(new FakeInstalledRepository(&env, RepositoryName("installed")));
+ std::tr1::shared_ptr<FakeInstalledRepository> installed(new FakeInstalledRepository(
+ make_named_values<FakeInstalledRepositoryParams>(
+ value_for<n::environment>(&env),
+ value_for<n::name>(RepositoryName("installed")),
+ value_for<n::suitable_destination>(true),
+ value_for<n::supports_uninstall>(true)
+ )));
env.package_database()->add_repository(2, virtuals);
env.package_database()->add_repository(3, repo1);