aboutsummaryrefslogtreecommitdiff
path: root/paludis/repositories/e/dep_parser_TEST.cc
diff options
context:
space:
mode:
Diffstat (limited to 'paludis/repositories/e/dep_parser_TEST.cc')
-rw-r--r--paludis/repositories/e/dep_parser_TEST.cc66
1 files changed, 33 insertions, 33 deletions
diff --git a/paludis/repositories/e/dep_parser_TEST.cc b/paludis/repositories/e/dep_parser_TEST.cc
index b0a9040..483d462 100644
--- a/paludis/repositories/e/dep_parser_TEST.cc
+++ b/paludis/repositories/e/dep_parser_TEST.cc
@@ -1,7 +1,7 @@
/* vim: set sw=4 sts=4 et foldmethod=syntax : */
/*
- * Copyright (c) 2005, 2006, 2007, 2008, 2009 Ciaran McCreesh
+ * Copyright (c) 2005, 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
@@ -53,8 +53,8 @@ namespace test_cases
{
TestEnvironment env;
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(1, repo);
std::tr1::shared_ptr<const PackageID> id(repo->add_version("cat", "pkg", "1"));
@@ -79,8 +79,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(1, repo);
std::tr1::shared_ptr<const PackageID> id(repo->add_version("cat", "pkg", "1"));
@@ -105,8 +105,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(1, repo);
std::tr1::shared_ptr<const PackageID> id(repo->add_version("cat", "pkg", "1"));
@@ -132,8 +132,8 @@ namespace test_cases
StringifyFormatter ff;
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(1, repo);
std::tr1::shared_ptr<const PackageID> id(repo->add_version("cat", "pkg", "1"));
@@ -168,8 +168,8 @@ namespace test_cases
StringifyFormatter ff;
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(1, repo);
std::tr1::shared_ptr<const PackageID> id(repo->add_version("cat", "pkg", "1"));
@@ -190,8 +190,8 @@ namespace test_cases
StringifyFormatter ff;
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(1, repo);
std::tr1::shared_ptr<const PackageID> id(repo->add_version("cat", "pkg", "1"));
@@ -212,8 +212,8 @@ namespace test_cases
StringifyFormatter ff;
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(1, repo);
std::tr1::shared_ptr<const PackageID> id(repo->add_version("cat", "pkg", "1"));
@@ -246,8 +246,8 @@ namespace test_cases
StringifyFormatter ff;
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(1, repo);
std::tr1::shared_ptr<const PackageID> id(repo->add_version("cat", "pkg", "1"));
@@ -272,8 +272,8 @@ namespace test_cases
StringifyFormatter ff;
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(1, repo);
std::tr1::shared_ptr<const PackageID> id(repo->add_version("cat", "pkg", "1"));
@@ -297,8 +297,8 @@ namespace test_cases
StringifyFormatter ff;
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(1, repo);
std::tr1::shared_ptr<const PackageID> id(repo->add_version("cat", "pkg", "1"));
@@ -318,8 +318,8 @@ namespace test_cases
StringifyFormatter ff;
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(1, repo);
std::tr1::shared_ptr<const PackageID> id(repo->add_version("cat", "pkg", "1"));
@@ -350,8 +350,8 @@ namespace test_cases
StringifyFormatter ff;
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(1, repo);
std::tr1::shared_ptr<const PackageID> id(repo->add_version("cat", "pkg", "1"));
@@ -383,8 +383,8 @@ namespace test_cases
StringifyFormatter ff;
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(1, repo);
std::tr1::shared_ptr<const PackageID> id(repo->add_version("cat", "pkg", "1"));
@@ -438,8 +438,8 @@ namespace test_cases
StringifyFormatter ff;
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(1, repo);
std::tr1::shared_ptr<const PackageID> id(repo->add_version("cat", "pkg", "1"));
@@ -462,8 +462,8 @@ namespace test_cases
StringifyFormatter ff;
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(1, repo);
std::tr1::shared_ptr<const PackageID> id(repo->add_version("cat", "pkg", "1"));
@@ -485,8 +485,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(1, repo);
std::tr1::shared_ptr<const PackageID> id(repo->add_version("cat", "pkg", "1"));