spirosmastorakis | 15ebb1e | 2016-01-25 21:20:25 -0800 | [diff] [blame] | 1 | /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */ |
| 2 | /** |
| 3 | * Copyright (c) 2016 Regents of the University of California. |
| 4 | * |
| 5 | * This file is part of the nTorrent codebase. |
| 6 | * |
| 7 | * nTorrent is free software: you can redistribute it and/or modify it under the |
| 8 | * terms of the GNU Lesser General Public License as published by the Free Software |
| 9 | * Foundation, either version 3 of the License, or (at your option) any later version. |
| 10 | * |
| 11 | * nTorrent is distributed in the hope that it will be useful, but WITHOUT ANY |
| 12 | * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A |
| 13 | * PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. |
| 14 | * |
| 15 | * You should have received copies of the GNU General Public License and GNU Lesser |
| 16 | * General Public License along with nTorrent, e.g., in COPYING.md file. If not, see |
| 17 | * <http://www.gnu.org/licenses/>. |
| 18 | * |
| 19 | * See AUTHORS for complete list of nTorrent authors and contributors. |
| 20 | */ |
| 21 | |
| 22 | #ifndef NTORRENT_TESTS_BOOST_TEST_HPP |
| 23 | #define NTORRENT_TESTS_BOOST_TEST_HPP |
| 24 | |
| 25 | // suppress warnings from Boost.Test |
| 26 | #pragma GCC system_header |
| 27 | #pragma clang system_header |
| 28 | |
Mickey Sweatt | 617d2d4 | 2016-04-25 22:02:08 -0700 | [diff] [blame^] | 29 | #include "util/logging.hpp" |
| 30 | |
spirosmastorakis | 15ebb1e | 2016-01-25 21:20:25 -0800 | [diff] [blame] | 31 | #include <boost/concept_check.hpp> |
Mickey Sweatt | 617d2d4 | 2016-04-25 22:02:08 -0700 | [diff] [blame^] | 32 | #include <boost/log/utility/setup/common_attributes.hpp> |
spirosmastorakis | 15ebb1e | 2016-01-25 21:20:25 -0800 | [diff] [blame] | 33 | #include <boost/test/output_test_stream.hpp> |
Mickey Sweatt | 617d2d4 | 2016-04-25 22:02:08 -0700 | [diff] [blame^] | 34 | #include <boost/test/unit_test.hpp> |
| 35 | |
| 36 | |
| 37 | struct NtorrentGlobalConfig { |
| 38 | NtorrentGlobalConfig() { |
| 39 | ndn::ntorrent::LoggingUtil::init(); |
| 40 | boost::log::add_common_attributes(); |
| 41 | } |
| 42 | |
| 43 | ~NtorrentGlobalConfig() { |
| 44 | } |
| 45 | }; |
| 46 | |
| 47 | BOOST_GLOBAL_FIXTURE(NtorrentGlobalConfig); |
spirosmastorakis | 15ebb1e | 2016-01-25 21:20:25 -0800 | [diff] [blame] | 48 | |
| 49 | #endif // NTORRENT_TESTS_BOOST_TEST_HPP |