Remove unused code
[platform/core/api/inputmethod.git] / tests / src / cynara_mock.cpp
1 #include "cynara_mock.h"
2 #include <string.h>
3 #include <stdio.h>
4
5 static int check_result = CYNARA_API_ACCESS_ALLOWED;
6
7 void cynara_check_set_result(int result)
8 {
9     check_result = result;
10 }
11
12 int __wrap_cynara_initialize(cynara** c, const cynara_configuration* conf)
13 {
14     *c = (void *)0x1;
15     return 0;
16 }
17
18 int __wrap_cynara_finish(cynara* c)
19 {
20     return 0;
21 }
22
23 int __wrap_cynara_check(cynara* c, const char* client, const char* client_session,
24     const char* user,
25     const char* privilege)
26 {
27     return check_result;
28 }
29
30 char *__wrap_cynara_session_from_pid(pid_t pid)
31 {
32     return strdup("session");
33 }