2 * Copyright (c) 2016 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 Dongsun Lee (ds73.lee@samsung.com)
20 * @brief CSR API test helper
22 #include <csr-content-screening.h>
24 void ASSERT_DETECTED(csr_cs_malware_h detected, const char *name,
25 csr_cs_severity_level_e severity, const char *detailed_url);
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);
30 void ASSERT_DETECTED_HANDLE(csr_cs_malware_h expected, csr_cs_malware_h actual);
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);
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);