aboutsummaryrefslogtreecommitdiff
path: root/paludis/repository_name_cache_TEST.cc
diff options
context:
space:
mode:
Diffstat (limited to 'paludis/repository_name_cache_TEST.cc')
-rw-r--r--paludis/repository_name_cache_TEST.cc30
1 files changed, 15 insertions, 15 deletions
diff --git a/paludis/repository_name_cache_TEST.cc b/paludis/repository_name_cache_TEST.cc
index a1a6f5e..0c02636 100644
--- a/paludis/repository_name_cache_TEST.cc
+++ b/paludis/repository_name_cache_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
@@ -42,8 +42,8 @@ namespace test_cases
{
TestEnvironment env;
const std::tr1::shared_ptr<FakeRepository> repo(new FakeRepository(make_named_values<FakeRepositoryParams>(
- value_for<n::environment>(&env),
- value_for<n::name>(RepositoryName("repo"))
+ n::environment() = &env,
+ n::name() = RepositoryName("repo")
)));
env.package_database()->add_repository(10, repo);
@@ -60,8 +60,8 @@ namespace test_cases
{
TestEnvironment env;
const std::tr1::shared_ptr<FakeRepository> repo(new FakeRepository(make_named_values<FakeRepositoryParams>(
- value_for<n::environment>(&env),
- value_for<n::name>(RepositoryName("repo"))
+ n::environment() = &env,
+ n::name() = RepositoryName("repo")
)));
env.package_database()->add_repository(10, repo);
@@ -80,8 +80,8 @@ namespace test_cases
{
TestEnvironment env;
const std::tr1::shared_ptr<FakeRepository> repo(new FakeRepository(make_named_values<FakeRepositoryParams>(
- value_for<n::environment>(&env),
- value_for<n::name>(RepositoryName("repo"))
+ n::environment() = &env,
+ n::name() = RepositoryName("repo")
)));
env.package_database()->add_repository(10, repo);
@@ -100,8 +100,8 @@ namespace test_cases
{
TestEnvironment env;
const std::tr1::shared_ptr<FakeRepository> repo(new FakeRepository(make_named_values<FakeRepositoryParams>(
- value_for<n::environment>(&env),
- value_for<n::name>(RepositoryName("repo"))
+ n::environment() = &env,
+ n::name() = RepositoryName("repo")
)));
env.package_database()->add_repository(10, repo);
@@ -120,8 +120,8 @@ namespace test_cases
{
TestEnvironment env;
const std::tr1::shared_ptr<FakeRepository> repo(new FakeRepository(make_named_values<FakeRepositoryParams>(
- value_for<n::environment>(&env),
- value_for<n::name>(RepositoryName("repo"))
+ n::environment() = &env,
+ n::name() = RepositoryName("repo")
)));
env.package_database()->add_repository(10, repo);
@@ -140,8 +140,8 @@ namespace test_cases
{
TestEnvironment env;
const std::tr1::shared_ptr<FakeRepository> repo(new FakeRepository(make_named_values<FakeRepositoryParams>(
- value_for<n::environment>(&env),
- value_for<n::name>(RepositoryName("repo"))
+ n::environment() = &env,
+ n::name() = RepositoryName("repo")
)));
env.package_database()->add_repository(10, repo);
@@ -168,8 +168,8 @@ namespace test_cases
{
TestEnvironment env;
const std::tr1::shared_ptr<FakeRepository> repo(new FakeRepository(make_named_values<FakeRepositoryParams>(
- value_for<n::environment>(&env),
- value_for<n::name>(RepositoryName("repo"))
+ n::environment() = &env,
+ n::name() = RepositoryName("repo")
)));
env.package_database()->add_repository(10, repo);