Restore data_version usage from db schema
[platform/upstream/csr-framework.git] / test / test-helper.h
1 /*
2  *  Copyright (c) 2016 Samsung Electronics Co., Ltd All Rights Reserved
3  *
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
7  *
8  *      http://www.apache.org/licenses/LICENSE-2.0
9  *
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
15  */
16 /*
17  * @file        test-helper.h
18  * @author      Dongsun Lee (ds73.lee@samsung.com)
19  * @version     1.0
20  * @brief       CSR API test helper
21  */
22 #include <csr-content-screening.h>
23
24 #include <string>
25
26 void ASSERT_DETECTED(csr_cs_malware_h detected, const std::string &name,
27                                          csr_cs_severity_level_e severity, const std::string &detailed_url);
28
29 void ASSERT_DETECTED_EXT(csr_cs_malware_h detected, time_t time, const std::string &file_name,
30                                                  bool is_app, const std::string &pkg_id);
31
32 void ASSERT_DETECTED_HANDLE(csr_cs_malware_h expected, csr_cs_malware_h actual);
33
34 void ASSERT_DETECTED_IN_LIST(const std::vector<csr_cs_malware_h> &detectedList,
35                                                          const std::string &file_name, const std::string &name,
36                                                          csr_cs_severity_level_e severity, const std::string &detailed_url);
37
38 void ASSERT_DETECTED_IN_LIST_EXT(const std::vector<csr_cs_malware_h> &detectedList,
39                                                                  const std::string &file_name, bool is_app,
40                                                                  const std::string &pkg_id);