aboutsummaryrefslogtreecommitdiff
path: root/paludis/filter_TEST.cc
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2010-05-19 16:01:04 +0100
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2010-05-19 16:01:04 +0100
commitcc129190d549f69eccc67407946261544d538a91 (patch)
tree08f0ffe78b5c3f63dfc89d32dba1d828a5107dd0 /paludis/filter_TEST.cc
parentb22056183d6a0e94e28e025c6bae6970979c26c0 (diff)
downloadpaludis-cc129190d549f69eccc67407946261544d538a91.tar.gz
paludis-cc129190d549f69eccc67407946261544d538a91.tar.xz
New improved NamedValue syntax
Diffstat (limited to 'paludis/filter_TEST.cc')
-rw-r--r--paludis/filter_TEST.cc18
1 files changed, 9 insertions, 9 deletions
diff --git a/paludis/filter_TEST.cc b/paludis/filter_TEST.cc
index 13495b509..8daea87f2 100644
--- a/paludis/filter_TEST.cc
+++ b/paludis/filter_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
@@ -55,19 +55,19 @@ namespace test_cases
TestCase("filter " + s + " with " + stringify(f)),
filter(f),
repo1(new FakeRepository(make_named_values<FakeRepositoryParams>(
- value_for<n::environment>(&env),
- value_for<n::name>(RepositoryName("repo1"))
+ n::environment() = &env,
+ n::name() = RepositoryName("repo1")
))),
repo2(new FakeRepository(make_named_values<FakeRepositoryParams>(
- value_for<n::environment>(&env),
- value_for<n::name>(RepositoryName("repo2"))
+ n::environment() = &env,
+ n::name() = RepositoryName("repo2")
))),
inst_repo1(new FakeInstalledRepository(
make_named_values<FakeInstalledRepositoryParams>(
- value_for<n::environment>(&env),
- value_for<n::name>(RepositoryName("inst_repo1")),
- value_for<n::suitable_destination>(true),
- value_for<n::supports_uninstall>(true)
+ n::environment() = &env,
+ n::name() = RepositoryName("inst_repo1"),
+ n::suitable_destination() = true,
+ n::supports_uninstall() = true
)))
{
env.package_database()->add_repository(1, repo1);