[CAPI Changed] Enum value names and scan cloud
[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 void ASSERT_DETECTED(csr_cs_malware_h detected, const char *name,
25                                          csr_cs_severity_level_e severity, const char *detailed_url);
26
27 void ASSERT_DETECTED_EXT(csr_cs_malware_h detected, time_t time, const char *file_name,
28                                                  bool is_app, const char *pkg_id);
29
30 void ASSERT_DETECTED_HANDLE(csr_cs_malware_h expected, csr_cs_malware_h actual);
31
32 void ASSERT_DETECTED_IN_LIST(const std::vector<csr_cs_malware_h> &detectedList,
33                                                          const char *file_name, const char *name,
34                                                          csr_cs_severity_level_e severity, const char *detailed_url);
35
36 void ASSERT_DETECTED_IN_LIST_EXT(const std::vector<csr_cs_malware_h> &detectedList,
37                                                                  const char *file_name, bool is_app, const char *pkg_id);