aboutsummaryrefslogtreecommitdiff
path: root/paludis/selection_TEST.cc
diff options
context:
space:
mode:
Diffstat (limited to 'paludis/selection_TEST.cc')
-rw-r--r--paludis/selection_TEST.cc22
1 files changed, 11 insertions, 11 deletions
diff --git a/paludis/selection_TEST.cc b/paludis/selection_TEST.cc
index 644413e..411e77c 100644
--- a/paludis/selection_TEST.cc
+++ b/paludis/selection_TEST.cc
@@ -1,7 +1,7 @@
/* vim: set sw=4 sts=4 et foldmethod=syntax : */
/*
- * Copyright (c) 2008, 2009 Ciaran McCreesh
+ * Copyright (c) 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
@@ -50,8 +50,8 @@ namespace test_cases
TestEnvironment env;
std::tr1::shared_ptr<FakeRepository> r1(new FakeRepository(make_named_values<FakeRepositoryParams>(
- value_for<n::environment>(&env),
- value_for<n::name>(RepositoryName("repo1")))));
+ n::environment() = &env,
+ n::name() = RepositoryName("repo1"))));
r1->add_version("r1c1", "r1c1p1", "1");
r1->add_version("r1c1", "r1c1p2", "1");
r1->add_version("r1c1", "r1c1p2", "2");
@@ -61,8 +61,8 @@ namespace test_cases
TEST_CHECK(true);
std::tr1::shared_ptr<FakeRepository> r2(new FakeRepository(make_named_values<FakeRepositoryParams>(
- value_for<n::environment>(&env),
- value_for<n::name>(RepositoryName("repo2")))));
+ n::environment() = &env,
+ n::name() = RepositoryName("repo2"))));
r2->add_version("rac1", "rac1pa", "1");
r2->add_version("rac1", "rac1pa", "3");
env.package_database()->add_repository(10, r2);
@@ -118,8 +118,8 @@ namespace test_cases
TestEnvironment env;
std::tr1::shared_ptr<FakeRepository> r1(new FakeRepository(make_named_values<FakeRepositoryParams>(
- value_for<n::environment>(&env),
- value_for<n::name>(RepositoryName("repo1")))));
+ n::environment() = &env,
+ n::name() = RepositoryName("repo1"))));
r1->add_version("cat", "pkg", "1")->set_slot(SlotName("a"));
r1->add_version("cat", "pkg", "2")->set_slot(SlotName("c"));
r1->add_version("cat", "pkg", "3")->set_slot(SlotName("c"));
@@ -128,8 +128,8 @@ namespace test_cases
TEST_CHECK(true);
std::tr1::shared_ptr<FakeRepository> r2(new FakeRepository(make_named_values<FakeRepositoryParams>(
- value_for<n::environment>(&env),
- value_for<n::name>(RepositoryName("repo2")))));
+ n::environment() = &env,
+ n::name() = RepositoryName("repo2"))));
r2->add_version("cat", "pkg", "1")->set_slot(SlotName("a"));
r2->add_version("cat", "pkg", "3")->set_slot(SlotName("b"));
env.package_database()->add_repository(5, r2);
@@ -154,8 +154,8 @@ namespace test_cases
"cat/pkg-3:b::repo2 cat/pkg-3:c::repo1 cat/pkg-4:a::repo1");
std::tr1::shared_ptr<FakeRepository> r3(new FakeRepository(make_named_values<FakeRepositoryParams>(
- value_for<n::environment>(&env),
- value_for<n::name>(RepositoryName("repo3")))));
+ n::environment() = &env,
+ n::name() = RepositoryName("repo3"))));
r3->add_version("cat", "other", "1")->set_slot(SlotName("a"));
env.package_database()->add_repository(5, r3);
TEST_CHECK(true);