aboutsummaryrefslogtreecommitdiff
path: root/paludis/generator_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/generator_TEST.cc
parentdd3736da2c72911ed8e7c3db6b45ae504d234af4 (diff)
downloadpaludis-576e0a19ba6bbf718d050f5743d687c3afc67641.tar.gz
paludis-576e0a19ba6bbf718d050f5743d687c3afc67641.tar.xz
Kill old ctor
Diffstat (limited to 'paludis/generator_TEST.cc')
-rw-r--r--paludis/generator_TEST.cc9
1 files changed, 7 insertions, 2 deletions
diff --git a/paludis/generator_TEST.cc b/paludis/generator_TEST.cc
index 6a7f971bb..b4e1840e9 100644
--- a/paludis/generator_TEST.cc
+++ b/paludis/generator_TEST.cc
@@ -30,6 +30,7 @@
#include <paludis/util/sequence.hh>
#include <paludis/util/wrapped_forward_iterator.hh>
#include <paludis/util/indirect_iterator-impl.hh>
+#include <paludis/util/make_named_values.hh>
#include <test/test_runner.hh>
#include <test/test_framework.hh>
#include <test/test_concepts.hh>
@@ -53,8 +54,12 @@ namespace test_cases
GeneratorTestCaseBase(const std::string & s, const Generator & f) :
TestCase("generator " + s + " with " + stringify(f)),
generator(f),
- repo1(new FakeRepository(&env, RepositoryName("repo1"))),
- repo2(new FakeRepository(&env, RepositoryName("repo2"))),
+ repo1(new FakeRepository(make_named_values<FakeRepositoryParams>(
+ value_for<n::environment>(&env),
+ value_for<n::name>(RepositoryName("repo1"))))),
+ repo2(new FakeRepository(make_named_values<FakeRepositoryParams>(
+ value_for<n::environment>(&env),
+ value_for<n::name>(RepositoryName("repo2"))))),
inst_repo1(new FakeInstalledRepository(&env, RepositoryName("inst_repo1")))
{
env.package_database()->add_repository(1, repo1);