2 * Copyright (c) 2000 - 2015 Samsung Electronics Co., Ltd All Rights Reserved
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License
18 * @author Krzysztof Jackiewicz (k.jackiewicz@samsung.com)
24 #define BOOST_TEST_MODULE KEY_MANAGER_UNIT_TESTS
25 #include <boost/test/unit_test.hpp>
26 #include <boost/test/unit_test_log.hpp>
27 #include <boost/test/results_reporter.hpp>
28 #include <colour_log_formatter.h>
29 #include <dpl/log/log.h>
30 #include <log-setup.h>
32 #include <exception.h>
37 boost::unit_test::unit_test_log.set_threshold_level(
38 boost::unit_test::log_test_units);
39 boost::unit_test::results_reporter::set_level(boost::unit_test::SHORT_REPORT);
40 boost::unit_test::unit_test_log.set_formatter(new CKM::colour_log_formatter);
50 CKM::SetupClientLogSystem();
51 CKM::Singleton<CKM::Log::LogSystem>::Instance().SetTag("CKM_UNIT_TESTS");
56 BOOST_GLOBAL_FIXTURE(TestConfig);
57 BOOST_GLOBAL_FIXTURE(LogSetup);