aboutsummaryrefslogtreecommitdiff
path: root/paludis/repositories/virtuals/installed_virtuals_repository_TEST.cc
diff options
context:
space:
mode:
Diffstat (limited to 'paludis/repositories/virtuals/installed_virtuals_repository_TEST.cc')
-rw-r--r--paludis/repositories/virtuals/installed_virtuals_repository_TEST.cc22
1 files changed, 7 insertions, 15 deletions
diff --git a/paludis/repositories/virtuals/installed_virtuals_repository_TEST.cc b/paludis/repositories/virtuals/installed_virtuals_repository_TEST.cc
index d1156cbec..aac3eac37 100644
--- a/paludis/repositories/virtuals/installed_virtuals_repository_TEST.cc
+++ b/paludis/repositories/virtuals/installed_virtuals_repository_TEST.cc
@@ -1,7 +1,7 @@
/* vim: set sw=4 sts=4 et foldmethod=syntax : */
/*
- * Copyright (c) 2007, 2008, 2010 Ciaran McCreesh
+ * Copyright (c) 2007, 2008, 2010, 2011 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
@@ -17,25 +17,17 @@
* Place, Suite 330, Boston, MA 02111-1307 USA
*/
-#include <test/test_runner.hh>
-#include <test/test_framework.hh>
#include <paludis/repositories/virtuals/installed_virtuals_repository.hh>
+
#include <paludis/environments/test/test_environment.hh>
-using namespace test;
+#include <gtest/gtest.h>
+
using namespace paludis;
-namespace test_cases
+TEST(InstalledVirtualsRepository, Workss)
{
- struct InstalledVirtualsRepositoryTest : TestCase
- {
- InstalledVirtualsRepositoryTest() : TestCase("installed virtuals repository") { }
-
- void run()
- {
- TestEnvironment env;
- std::shared_ptr<const InstalledVirtualsRepository> r(std::make_shared<InstalledVirtualsRepository>(&env, FSPath("/")));
- }
- } test_installed_virtuals_repository;
+ TestEnvironment env;
+ std::shared_ptr<const InstalledVirtualsRepository> r(std::make_shared<InstalledVirtualsRepository>(&env, FSPath("/")));
}