Fix Svace issue of SEC_DO_NOT_ASSIGN_SIZE_OF_INT
[platform/core/multimedia/mmsvc-core.git] / unittest / unittest.h
1 /*
2  * Copyright (c) 2018 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 #ifndef __GTEST_MUSE_SERVER_UNITTEST_H__
18 #define __GTEST_MUSE_SERVER_UNITTEST_H__
19
20 #include <glib.h>
21 #include <stdio.h>
22 #include <stdlib.h>
23 #include <string.h>
24 #include <unistd.h>
25 #include <iostream>
26 #include <dlog.h>
27 #include <mm_error.h>
28
29 #include <gmock/gmock.h>
30 #include <gtest/gtest.h>
31
32 #include <sys/types.h>
33 #include <sys/un.h>
34 #include <sys/socket.h>
35
36 #include "muse_server.h"
37 #include "muse_client.h"
38
39 #undef LOG_TAG
40 #define LOG_TAG         "GTEST_MUSED"
41
42 #define NTHREADS                2
43 #define SAMPLE_JSON_FILE_NAME           "gtest.input"
44 #define FILE_PATH_LEN           128
45 #define MUSE_MSG_LEN_MAX        128
46
47 #define GTEST_MUSE_SOCK_FILE0   MUSE_RUN_PATH"/gtest_muse_server_msg.socket"
48 #define GTEST_MUSE_SOCK_FILE1   MUSE_RUN_PATH"/gtest_muse_server_data.socket"
49
50 #endif  /*__GTEST_MUSE_SERVER_UNITTEST_H__*/