Lines Matching refs:frame

28 assert_stomp_header(stomp_frame *frame, char *key, char *value)  in assert_stomp_header()  argument
30 char *myvalue = g_hash_table_lookup(frame->headers, key); in assert_stomp_header()
36 assert_stomp_command(stomp_frame *frame, char *command) in assert_stomp_command() argument
38 cr_assert_str_eq(frame->command, command, "Stomp command assertion failed"); in assert_stomp_command()
42 assert_stomp_body(stomp_frame *frame, char *body) in assert_stomp_body() argument
44 cr_assert_str_eq(frame->body, body, "Stomp body assertion failed"); in assert_stomp_body()
49 stomp_frame frame; in Test() local
51 stomp_parse_frame(g_string_new("CONNECTED\n\n"), &frame); in Test()
52 assert_stomp_command(&frame, "CONNECTED"); in Test()
53 stomp_frame_deinit(&frame); in Test()
58 stomp_frame frame; in Test() local
60 stomp_parse_frame(g_string_new("CONNECTED\n\nalmafa"), &frame); in Test()
61 assert_stomp_command(&frame, "CONNECTED"); in Test()
62 assert_stomp_body(&frame, "almafa"); in Test()
63 stomp_frame_deinit(&frame); in Test()
68 stomp_frame frame; in Test() local
70 stomp_parse_frame(g_string_new("CONNECTED\nheader_name:header_value\n\nbelafa"), &frame); in Test()
71 assert_stomp_command(&frame, "CONNECTED"); in Test()
72 assert_stomp_header(&frame, "header_name", "header_value"); in Test()
73 assert_stomp_body(&frame, "belafa"); in Test()
74 stomp_frame_deinit(&frame); in Test()
79 stomp_frame frame; in Test() local
81 stomp_parse_frame(g_string_new("CONNECTED\nsession:ID:tusa-38077-1378214843533-2:1\n"), &frame); in Test()
82 assert_stomp_command(&frame, "CONNECTED"); in Test()
83 assert_stomp_header(&frame, "session", "ID:tusa-38077-1378214843533-2:1"); in Test()
84 stomp_frame_deinit(&frame); in Test()
89 stomp_frame frame; in Test() local
92 stomp_frame_init(&frame, "SEND", sizeof("SEND")); in Test()
93 stomp_frame_add_header(&frame, "header_name", "header_value"); in Test()
94 stomp_frame_set_body(&frame, "body", sizeof("body")); in Test()
95 actual = create_gstring_from_frame(&frame); in Test()
97 stomp_frame_deinit(&frame); in Test()
102 stomp_frame frame; in Test() local
104 cr_assert_not(stomp_parse_frame(g_string_new("CONNECTED\n no-colon\n"), &frame)); in Test()
105 stomp_frame_deinit(&frame); in Test()