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.
18 * @file cynara_test_commons.h
19 * @author Lukasz Wojciechowski <l.wojciechow@partner.samsung.com>
21 * @brief Definition of environment wrap for test cases
24 #ifndef CYNARA_TEST_COMMONS_H_
25 #define CYNARA_TEST_COMMONS_H_
31 namespace CynaraTestConsts
34 extern const std::string DB_DIR;
35 extern const std::string USER;
36 extern const std::string LABEL;
37 extern const std::string SERVICE;
38 extern const std::string SERVICE_PLUGINS_DIR;
46 const char *m_privilege;
49 void environmentWrap(const char *testName, const std::function<void(void)> &func);
51 #define RUN_CYNARA_TEST(Proc) \
54 environmentWrap(#Proc, Proc##_func); \
57 typedef std::vector<std::string> DirectoryPaths;
58 void loadServicePlugins(const DirectoryPaths &pluginDirectories);
60 #endif /* CYNARA_TEST_COMMONS_H_ */