FD.io VPP  v21.06-3-gbb25fbf28
Vector Packet Processing
vapi_cpp_test.cpp File Reference
+ Include dependency graph for vapi_cpp_test.cpp:

Go to the source code of this file.

Data Structures

struct  Show_version_cb
 
struct  Create_loopback_cb
 
struct  Delete_loopback_cb
 
struct  Sw_interface_dump_cb< num_ifs >
 

Macros

#define WAIT_FOR_RESPONSE(param, ret)
 

Functions

void verify_show_version_reply (const Show_version_reply &r)
 
void setup (void)
 
void teardown (void)
 
 START_TEST (test_show_version_1)
 
 START_TEST (test_show_version_2)
 
 START_TEST (test_loopbacks_1)
 
 START_TEST (test_loopbacks_2)
 
 START_TEST (test_unsupported)
 
Suite * test_suite (void)
 
int main (int argc, char *argv[])
 

Variables

 DEFINE_VAPI_MSG_IDS_VPE_API_JSON
 
 DEFINE_VAPI_MSG_IDS_INTERFACE_API_JSON
 
 DEFINE_VAPI_MSG_IDS_FAKE_API_JSON
 
static char * app_name = nullptr
 
static char * api_prefix = nullptr
 
static const int max_outstanding_requests = 32
 
static const int response_queue_size = 32
 
Connection con
 
 END_TEST
 

Macro Definition Documentation

◆ WAIT_FOR_RESPONSE

#define WAIT_FOR_RESPONSE (   param,
  ret 
)
Value:
do \
{ \
ret = con.wait_for_response (param); \
} \
while (ret == VAPI_EAGAIN)

Definition at line 38 of file vapi_cpp_test.cpp.

Function Documentation

◆ main()

int main ( int  argc,
char *  argv[] 
)

Definition at line 409 of file vapi_cpp_test.cpp.

+ Here is the call graph for this function:

◆ setup()

void setup ( void  )

Definition at line 58 of file vapi_cpp_test.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ START_TEST() [1/5]

START_TEST ( test_loopbacks_1  )

Definition at line 110 of file vapi_cpp_test.cpp.

◆ START_TEST() [2/5]

START_TEST ( test_loopbacks_2  )

Definition at line 270 of file vapi_cpp_test.cpp.

+ Here is the call graph for this function:

◆ START_TEST() [3/5]

START_TEST ( test_show_version_1  )

Definition at line 70 of file vapi_cpp_test.cpp.

+ Here is the call graph for this function:

◆ START_TEST() [4/5]

START_TEST ( test_show_version_2  )

Definition at line 97 of file vapi_cpp_test.cpp.

+ Here is the call graph for this function:

◆ START_TEST() [5/5]

START_TEST ( test_unsupported  )

Definition at line 351 of file vapi_cpp_test.cpp.

◆ teardown()

void teardown ( void  )

Definition at line 65 of file vapi_cpp_test.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ test_suite()

Suite* test_suite ( void  )

Definition at line 392 of file vapi_cpp_test.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ verify_show_version_reply()

void verify_show_version_reply ( const Show_version_reply &  r)

Definition at line 47 of file vapi_cpp_test.cpp.

+ Here is the caller graph for this function:

Variable Documentation

◆ api_prefix

char* api_prefix = nullptr
static

Definition at line 34 of file vapi_cpp_test.cpp.

◆ app_name

char* app_name = nullptr
static

Definition at line 33 of file vapi_cpp_test.cpp.

◆ con

Definition at line 56 of file vapi_cpp_test.cpp.

◆ DEFINE_VAPI_MSG_IDS_FAKE_API_JSON

DEFINE_VAPI_MSG_IDS_FAKE_API_JSON

Definition at line 31 of file vapi_cpp_test.cpp.

◆ DEFINE_VAPI_MSG_IDS_INTERFACE_API_JSON

DEFINE_VAPI_MSG_IDS_INTERFACE_API_JSON

Definition at line 30 of file vapi_cpp_test.cpp.

◆ DEFINE_VAPI_MSG_IDS_VPE_API_JSON

DEFINE_VAPI_MSG_IDS_VPE_API_JSON

Definition at line 29 of file vapi_cpp_test.cpp.

◆ END_TEST

END_TEST

Definition at line 82 of file vapi_cpp_test.cpp.

◆ max_outstanding_requests

const int max_outstanding_requests = 32
static

Definition at line 35 of file vapi_cpp_test.cpp.

◆ response_queue_size

const int response_queue_size = 32
static

Definition at line 36 of file vapi_cpp_test.cpp.

con
Connection con
Definition: vapi_cpp_test.cpp:56
VAPI_EAGAIN
@ VAPI_EAGAIN
operation would block
Definition: vapi_common.h:29
vapi::Connection::wait_for_response
vapi_error_e wait_for_response(const Common_req &req)
wait for response to a specific request
Definition: vapi.hpp:334