• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (c) 2021 Huawei Device Co., Ltd.
3  * Licensed under the Apache License, Version 2.0 (the "License");
4  * you may not use this file except in compliance with the License.
5  * You may obtain a copy of the License at
6  *
7  * http://www.apache.org/licenses/LICENSE-2.0
8  *
9  * Unless required by applicable law or agreed to in writing, software
10  * distributed under the License is distributed on an "AS IS" BASIS,
11  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12  * See the License for the specific language governing permissions and
13  * limitations under the License.
14  */
15 
16 #ifndef IPC_MQUEUE_TEST
17 #define IPC_MQUEUE_TEST
18 
19 #include <stdio.h>
20 #include <errno.h>
21 #include <string.h>
22 #include <stdlib.h>
23 #include <unistd.h>
24 #include <gtest/gtest.h>
25 
26 const int MQ_NAME_LEN = 64; // mqueue name len
27 const int MQ_TX_LEN = 64;   // mqueue send buffer len
28 const int MQ_RX_LEN = 64;   // mqueue receive buffer len
29 const int MQ_MSG_SIZE = 64; // mqueue message size
30 const int MQ_MSG_PRIO = 0;  // mqueue message priority
31 const int MQ_MAX_MSG = 16;  // mqueue message number
32 
33 const char MQ_MSG[] = "MessageToSend"; // mqueue message to send
34 const int MQ_MSG_LEN = sizeof(MQ_MSG); // mqueue message len to send
35 
36 class IpcMqTest : public ::testing::Test {};
37 
38 #endif