aboutsummaryrefslogtreecommitdiff
path: root/paludis/repositories/fake/fake_repository_TEST.cc
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2011-03-25 11:02:04 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2011-03-25 16:55:34 +0000
commit696a370f93de32f8fbb115c84733595e96ede8b4 (patch)
tree829346d77b6985afb6ae7390bfe35f8f2ce87df0 /paludis/repositories/fake/fake_repository_TEST.cc
parentc225b90e67f8bc211cb738558f6d57427089e3f6 (diff)
downloadpaludis-696a370f93de32f8fbb115c84733595e96ede8b4.tar.gz
paludis-696a370f93de32f8fbb115c84733595e96ede8b4.tar.xz
gtest more
Diffstat (limited to 'paludis/repositories/fake/fake_repository_TEST.cc')
-rw-r--r--paludis/repositories/fake/fake_repository_TEST.cc30
1 files changed, 11 insertions, 19 deletions
diff --git a/paludis/repositories/fake/fake_repository_TEST.cc b/paludis/repositories/fake/fake_repository_TEST.cc
index 007b977cc..0a12a70b0 100644
--- a/paludis/repositories/fake/fake_repository_TEST.cc
+++ b/paludis/repositories/fake/fake_repository_TEST.cc
@@ -1,7 +1,7 @@
/* vim: set sw=4 sts=4 et foldmethod=syntax : */
/*
- * Copyright (c) 2007, 2008, 2009, 2010 Ciaran McCreesh
+ * Copyright (c) 2007, 2008, 2009, 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,30 +17,22 @@
* Place, Suite 330, Boston, MA 02111-1307 USA
*/
-#include <test/test_runner.hh>
-#include <test/test_framework.hh>
#include <paludis/repositories/fake/fake_repository.hh>
+
#include <paludis/environments/test/test_environment.hh>
+
#include <paludis/util/make_named_values.hh>
-using namespace test;
+#include <gtest/gtest.h>
+
using namespace paludis;
-namespace test_cases
+TEST(FakeRepository, Works)
{
- struct FakeRepositoryTest : TestCase
- {
- FakeRepositoryTest() : TestCase("fake repository") { }
-
- void run()
- {
- TestEnvironment env;
- const std::shared_ptr<FakeRepository> repo(std::make_shared<FakeRepository>(make_named_values<FakeRepositoryParams>(
- n::environment() = &env,
- n::name() = RepositoryName("repo")
- )));
- }
- } test_fake_repository;
+ TestEnvironment env;
+ const std::shared_ptr<FakeRepository> repo(std::make_shared<FakeRepository>(make_named_values<FakeRepositoryParams>(
+ n::environment() = &env,
+ n::name() = RepositoryName("repo")
+ )));
}
-