1 // Copyright (c) 2016 Samsung Electronics Co., Ltd All Rights Reserved
2 // Use of this source code is governed by an apache 2.0 license that can be
3 // found in the LICENSE file.
5 #ifndef TEST_SMOKE_TESTS_LIBS_TEST_ASSESSOR_H_
6 #define TEST_SMOKE_TESTS_LIBS_TEST_ASSESSOR_H_
14 #include "common/plugins/plugin.h"
15 #include "common/utils/singleton.h"
17 namespace common_installer {
19 extern const char kTagPluginName[];
20 extern const char kCategoryPluginName[];
21 extern const char kMetadataPluginName[];
22 extern const char kTestPackageId[];
23 extern const char kTestApplicationId[];
25 class TestAssessor : public common_installer::Singleton<TestAssessor> {
26 CRTP_DECLARE_DEFAULT_CONSTRUCTOR_CLASS(TestAssessor)
28 using ResultLine = std::tuple<std::string, Plugin::ActionType,
30 using ResultStore = std::map<ResultLine, std::optional<std::string>>;
33 void AddResult(const ResultLine& result,
34 const std::optional<std::string> &error);
35 const ResultStore& GetResults() const;
41 } // namespace common_installer
43 #endif // TEST_SMOKE_TESTS_LIBS_TEST_ASSESSOR_H_