diff options
author | Johan Hedberg <johan.hedberg@intel.com> | 2011-06-28 15:38:17 +0300 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2012-12-04 22:21:57 +0100 |
commit | d3558f1c0b9099d32db30c8ba2ea642991c7512e (patch) | |
tree | 87e5f10b17db821e145d24377dd4e53757d571d1 /unit | |
parent | 0302f8623031f6d07336985a7801a0ec48a612a2 (diff) | |
download | bluez-d3558f1c0b9099d32db30c8ba2ea642991c7512e.tar.gz |
gobex: Make Action ID test data less predictable
Diffstat (limited to 'unit')
-rw-r--r-- | unit/test-gobex.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/unit/test-gobex.c b/unit/test-gobex.c index 00ec32341..3d99c56bb 100644 --- a/unit/test-gobex.c +++ b/unit/test-gobex.c @@ -45,7 +45,7 @@ static uint8_t hdr_name_umlaut[] = { G_OBEX_HDR_ID_NAME, 0x00, 0x0b, 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, @@ -433,7 +433,7 @@ static void test_header_uint8(void) 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); @@ -477,7 +477,7 @@ static void test_decode_pkt_header(void) 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); @@ -488,7 +488,7 @@ static void test_decode_pkt_header(void) 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); } @@ -587,7 +587,7 @@ static void test_header_encode_actionid(void) 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); } |