aboutsummaryrefslogtreecommitdiff
path: root/paludis/user_dep_spec_TEST.cc
diff options
context:
space:
mode:
Diffstat (limited to 'paludis/user_dep_spec_TEST.cc')
-rw-r--r--paludis/user_dep_spec_TEST.cc22
1 files changed, 11 insertions, 11 deletions
diff --git a/paludis/user_dep_spec_TEST.cc b/paludis/user_dep_spec_TEST.cc
index ece856702..2e3cd8647 100644
--- a/paludis/user_dep_spec_TEST.cc
+++ b/paludis/user_dep_spec_TEST.cc
@@ -1,7 +1,7 @@
/* vim: set sw=4 sts=4 et foldmethod=syntax : */
/*
- * Copyright (c) 2006, 2007, 2008, 2009 Ciaran McCreesh
+ * Copyright (c) 2006, 2007, 2008, 2009, 2010 Ciaran McCreesh
*
* This file is part of the Paludis package manager. Paludis is free software;
* you can redistribute it and/or modify it under the terms of the GNU General
@@ -315,14 +315,14 @@ namespace test_cases
{
TestEnvironment env;
std::tr1::shared_ptr<FakeRepository> fake(new FakeRepository(make_named_values<FakeRepositoryParams>(
- value_for<n::environment>(&env),
- value_for<n::name>(RepositoryName("fake")))));
+ n::environment() = &env,
+ n::name() = RepositoryName("fake"))));
std::tr1::shared_ptr<FakeInstalledRepository> fake_inst(new FakeInstalledRepository(
make_named_values<FakeInstalledRepositoryParams>(
- value_for<n::environment>(&env),
- value_for<n::name>(RepositoryName("fake_inst")),
- value_for<n::suitable_destination>(true),
- value_for<n::supports_uninstall>(true)
+ n::environment() = &env,
+ n::name() = RepositoryName("fake_inst"),
+ n::suitable_destination() = true,
+ n::supports_uninstall() = true
)));
env.package_database()->add_repository(1, fake);
env.package_database()->add_repository(2, fake_inst);
@@ -378,8 +378,8 @@ namespace test_cases
{
TestEnvironment env;
std::tr1::shared_ptr<FakeRepository> fake(new FakeRepository(make_named_values<FakeRepositoryParams>(
- value_for<n::environment>(&env),
- value_for<n::name>(RepositoryName("fake")))));
+ n::environment() = &env,
+ n::name() = RepositoryName("fake"))));
env.package_database()->add_repository(1, fake);
fake->add_version("cat", "world", "1");
fake->add_version("cat", "moon", "1");
@@ -411,8 +411,8 @@ namespace test_cases
{
TestEnvironment env;
std::tr1::shared_ptr<FakeRepository> fake(new FakeRepository(make_named_values<FakeRepositoryParams>(
- value_for<n::environment>(&env),
- value_for<n::name>(RepositoryName("fake")))));
+ n::environment() = &env,
+ n::name() = RepositoryName("fake"))));
env.package_database()->add_repository(1, fake);
std::tr1::shared_ptr<FakePackageID> pkg1(fake->add_version("cat", "pkg1", "1"));