0x00, 0xe5, 0x00, 0xe4, 0x00, 0xf6,
0x00, 0x00 };
static uint8_t hdr_body[] = { G_OBEX_HDR_ID_BODY, 0x00, 0x07, 1, 2, 3, 4 };
-static uint8_t hdr_actionid[] = { G_OBEX_HDR_ID_ACTION, 0x00 };
+static uint8_t hdr_actionid[] = { G_OBEX_HDR_ID_ACTION, 0xab };
enum {
TEST_ERROR_TIMEOUT,
uint8_t buf[1024];
size_t len;
- header = g_obex_header_new_uint8(G_OBEX_HDR_ID_ACTION, 0x00);
+ header = g_obex_header_new_uint8(G_OBEX_HDR_ID_ACTION, 0xab);
g_assert(header != NULL);
GObexHeader *header;
gboolean ret;
uint8_t buf[] = { G_OBEX_OP_PUT, 0x00, 0x05,
- G_OBEX_HDR_ID_ACTION, 0x00 };
+ G_OBEX_HDR_ID_ACTION, 0xab };
guint8 val;
pkt = g_obex_packet_decode(buf, sizeof(buf), 0, G_OBEX_DATA_REF);
ret = g_obex_header_get_uint8(header, &val);
g_assert(ret == TRUE);
- g_assert(val == 0x00);
+ g_assert(val == 0xab);
g_obex_packet_free(pkt);
}
ret = g_obex_header_get_uint8(header, &val);
g_assert(ret == TRUE);
- g_assert_cmpuint(val, ==, 0x00);
+ g_assert_cmpuint(val, ==, 0xab);
g_obex_header_free(header);
}