Motr  M0
at_ut.h
Go to the documentation of this file.
1 /* -*- C -*- */
2 /*
3  * Copyright (c) 2016-2020 Seagate Technology LLC and/or its Affiliates
4  *
5  * Licensed under the Apache License, Version 2.0 (the "License");
6  * you may not use this file except in compliance with the License.
7  * You may obtain a copy of the License at
8  *
9  * http://www.apache.org/licenses/LICENSE-2.0
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  *
17  * For any questions about this software or licensing,
18  * please email opensource@seagate.com or cortx-questions@seagate.com.
19  *
20  */
21 
22 
23 #pragma once
24 
25 #ifndef __MOTR_RPC_UT_AT_AT_UT_H__
26 #define __MOTR_RPC_UT_AT_AT_UT_H__
27 
28 #include "xcode/xcode_attr.h"
29 #include "lib/types.h"
30 #include "rpc/at.h"
31 #include "rpc/at_xc.h"
32 
33 /* import */
34 struct m0_rpc_machine;
35 
36 enum {
37  DATA_PATTERN = 0x0a,
38  INLINE_LEN = 70,
39 };
40 
41 enum {
42  /* Tests oriented on sending data to server. */
45 
46  /*
47  * Tests oriented on receiving data from server.
48  * Note, AT_TEST_INLINE_RECV should be the first.
49  */
54 };
55 
56 M0_INTERNAL void atut__bufdata_alloc(struct m0_buf *buf, size_t size,
57  struct m0_rpc_machine *rmach);
58 
59 struct atut__req {
60  uint32_t arq_test_id;
62 } M0_XCA_RECORD M0_XCA_DOMAIN(rpc);
63 
64 struct atut__rep {
65  uint32_t arp_rc;
67 } M0_XCA_RECORD M0_XCA_DOMAIN(rpc);
68 
69 #endif /* __MOTR_RPC_UT_AT_AT_UT_H__ */
70 
71 /*
72  * Local variables:
73  * c-indentation-style: "K&R"
74  * c-basic-offset: 8
75  * tab-width: 8
76  * fill-column: 80
77  * scroll-step: 1
78  * End:
79  */
80 /*
81  * vim: tabstop=8 shiftwidth=8 noexpandtab textwidth=80 nowrap
82  */
M0_INTERNAL void atut__bufdata_alloc(struct m0_buf *buf, size_t size, struct m0_rpc_machine *rmach)
Definition: at_ut.c:143
Definition: sock.c:887
uint32_t arq_test_id
Definition: at_ut.h:60
Definition: buf.h:37
uint32_t arp_rc
Definition: at_ut.h:65
struct atut__req M0_XCA_DOMAIN(rpc)
m0_bcount_t size
Definition: di.c:39
struct m0_rpc_at_buf arp_buf
Definition: at_ut.h:66
struct m0_rpc_at_buf arq_buf
Definition: at_ut.h:61