2 * Copyright (c) 2014-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.
17 * @file test_results_collector_summary.h
18 * @author Marcin Niesluchowski (m.niesluchow@samsung.com)
19 * @author Michal Witanowski (m.witanowski@samsung.com)
21 * @brief Header file containing SummaryCollector class declaration.
24 #ifndef DPL_TEST_RESULTS_COLLECTOR_SUMMARY_H
25 #define DPL_TEST_RESULTS_COLLECTOR_SUMMARY_H
30 #include <dpl/test/statistic.h>
31 #include <dpl/test/test_results_collector.h>
36 class SummaryCollector
37 : public TestResultsCollectorBase
40 static TestResultsCollectorBase* Constructor();
45 virtual std::string CollectorSpecificHelp() const;
46 virtual bool ParseCollectorSpecificArg(const std::string& arg);
48 virtual void CollectResult(const std::string& id, const TestResult &result);
49 virtual void Finish();
51 void writeStats(bool segfault);
54 std::string m_filename;
55 std::ofstream m_output;
61 #endif // DPL_TEST_RESULTS_COLLECTOR_SUMMARY_H