aboutsummaryrefslogtreecommitdiff
path: root/paludis/repositories/fake/fake_installed_repository.hh
diff options
context:
space:
mode:
Diffstat (limited to 'paludis/repositories/fake/fake_installed_repository.hh')
-rw-r--r--paludis/repositories/fake/fake_installed_repository.hh23
1 files changed, 21 insertions, 2 deletions
diff --git a/paludis/repositories/fake/fake_installed_repository.hh b/paludis/repositories/fake/fake_installed_repository.hh
index a566d3a7c..c61a0b88c 100644
--- a/paludis/repositories/fake/fake_installed_repository.hh
+++ b/paludis/repositories/fake/fake_installed_repository.hh
@@ -24,6 +24,25 @@
namespace paludis
{
+ namespace n
+ {
+ struct environment;
+ struct name;
+ struct suitable_destination;
+ struct supports_uninstall;
+ }
+
+ /**
+ * Parameters for a FakeInstalledRepository.
+ */
+ struct FakeInstalledRepositoryParams
+ {
+ NamedValue<n::environment, const Environment *> environment;
+ NamedValue<n::name, RepositoryName> name;
+ NamedValue<n::suitable_destination, bool> suitable_destination;
+ NamedValue<n::supports_uninstall, bool> supports_uninstall;
+ };
+
/**
* A fake repository for test cases, for installed packages.
*
@@ -61,8 +80,8 @@ namespace paludis
///\name Basic operations
///\{
- FakeInstalledRepository(const Environment * const, const RepositoryName &, const bool supports_uninstall = true,
- const bool suitable_destination = true);
+ ///\since 0.42
+ FakeInstalledRepository(const FakeInstalledRepositoryParams &);
~FakeInstalledRepository();
///\}