From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: To: Subject: Re: [PATCH obexd 3/9] gobex: add unit test for CONNECT followed by GET request MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Date: Thu, 10 Nov 2011 16:02:56 +0100 From: Hendrik Sattler In-Reply-To: <1320936238-28360-3-git-send-email-luiz.dentz@gmail.com> References: <1320936238-28360-1-git-send-email-luiz.dentz@gmail.com> <1320936238-28360-3-git-send-email-luiz.dentz@gmail.com> Message-ID: <147e8a7267ca1e890c4f1e2f9491cc93@mail.hendrik-sattler.de> Sender: linux-bluetooth-owner@vger.kernel.org List-ID: Am 10.11.2011 15:43, schrieb Luiz Augusto von Dentz: > From: Luiz Augusto von Dentz > > --- > unit/test-gobex-transfer.c | 68 > ++++++++++++++++++++++++++++++++++++++++++++ > 1 files changed, 68 insertions(+), 0 deletions(-) > > diff --git a/unit/test-gobex-transfer.c b/unit/test-gobex-transfer.c > index 32dc8bb..9cb1f46 100644 > --- a/unit/test-gobex-transfer.c > +++ b/unit/test-gobex-transfer.c > @@ -71,6 +71,13 @@ static guint8 conn_rsp[] = { G_OBEX_RSP_SUCCESS | > FINAL_BIT, 0x00, 0x0c, > 0x10, 0x00, 0x10, 0x00, 0xcb, 0x00, > 0x00, 0x00, 0x01 }; > > +static guint8 conn_get_req_first[] = { G_OBEX_OP_GET | FINAL_BIT, > 0x00, 0x28, > + G_OBEX_HDR_CONNECTION, 0x00, 0x00, 0x00, 0x01, > + G_OBEX_HDR_TYPE, 0x00, 0x0b, > + 'f', 'o', 'o', '/', 'b', 'a', 'r', '\0', > + G_OBEX_HDR_NAME, 0x00, 0x15, > + 0, 'f', 0, 'i', 0, 'l', 0, 'e', 0, '.', 0, 't', 0, 'x', 0, 't', 0, > 0 }; If you want the test data to be realistic: when targetting default OBEX inbox, you can only use type _or_ name, not both. HS