diff options
Diffstat (limited to 'unit_tests/mock/aul.h')
-rw-r--r-- | unit_tests/mock/aul.h | 71 |
1 files changed, 71 insertions, 0 deletions
diff --git a/unit_tests/mock/aul.h b/unit_tests/mock/aul.h new file mode 100644 index 0000000..b7189d0 --- /dev/null +++ b/unit_tests/mock/aul.h @@ -0,0 +1,71 @@ +/* + * Copyright (c) 2019 Samsung Electronics Co., Ltd. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef MOCK_AUL_H_ +#define MOCK_AUL_H_ + +#include <tizen.h> + +#include "mock.h" + +#ifdef __cplusplus +extern "C" { +#endif + +typedef enum _aul_return_val { + AUL_R_ENOENT = -15, + AUL_R_EREJECTED = -14, + AUL_R_ENOAPP = -13, + AUL_R_EHIDDENFORGUEST = -11, + AUL_R_ENOLAUNCHPAD = -10, + AUL_R_ETERMINATING = -9, + AUL_R_EILLACC = -8, + AUL_R_LOCAL = -7, + AUL_R_ETIMEOUT = -6, + AUL_R_ECANCELED = -5, + AUL_R_EINVAL = -4, + AUL_R_ECOMM = -3, + AUL_R_ENOINIT = -2, + AUL_R_ERROR = -1, + AUL_R_OK = 0, +} aul_return_val; + +DECLARE_FAKE_VALUE_FUNC(const char*, aul_get_app_data_path); + +DECLARE_FAKE_VALUE_FUNC(const char*, aul_get_app_cache_path); + +DECLARE_FAKE_VALUE_FUNC(const char*, aul_get_app_resource_path); + +DECLARE_FAKE_VALUE_FUNC(int, aul_get_app_shared_data_path, char**); + +DECLARE_FAKE_VALUE_FUNC(const char*, aul_get_app_shared_resource_path); + +DECLARE_FAKE_VALUE_FUNC(const char*, aul_get_app_shared_trusted_path); + +DECLARE_FAKE_VALUE_FUNC(const char*, aul_get_app_external_data_path); + +DECLARE_FAKE_VALUE_FUNC(const char*, aul_get_app_external_cache_path); + +DECLARE_FAKE_VALUE_FUNC(const char*, aul_get_app_external_shared_data_path); + +DECLARE_FAKE_VALUE_FUNC(const char*, aul_get_app_tep_resource_path); + +DECLARE_FAKE_VALUE_FUNC(int, aul_app_get_appid_bypid, int, char*, int); + +#ifdef __cplusplus +} +#endif +#endif /* MOCK_AUL_H_ */ |