blob: a4eebca74d29262db1357abce069c728c92ffeba [file] [log] [blame]
spirosmastorakis15ebb1e2016-01-25 21:20:25 -08001/* -*- 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 Sweatt617d2d42016-04-25 22:02:08 -070029#include "util/logging.hpp"
30
spirosmastorakis15ebb1e2016-01-25 21:20:25 -080031#include <boost/concept_check.hpp>
Mickey Sweatt617d2d42016-04-25 22:02:08 -070032#include <boost/log/utility/setup/common_attributes.hpp>
spirosmastorakis15ebb1e2016-01-25 21:20:25 -080033#include <boost/test/output_test_stream.hpp>
Mickey Sweatt617d2d42016-04-25 22:02:08 -070034#include <boost/test/unit_test.hpp>
35
36
37struct NtorrentGlobalConfig {
38 NtorrentGlobalConfig() {
39 ndn::ntorrent::LoggingUtil::init();
40 boost::log::add_common_attributes();
41 }
42
43 ~NtorrentGlobalConfig() {
44 }
45};
46
47BOOST_GLOBAL_FIXTURE(NtorrentGlobalConfig);
spirosmastorakis15ebb1e2016-01-25 21:20:25 -080048
49#endif // NTORRENT_TESTS_BOOST_TEST_HPP