Return-Path: From: Grzegorz Kolodziejczyk To: linux-bluetooth@vger.kernel.org Subject: [PATCH 05/10] android/ipc-tester: Add case for MAP client service opcode boundries Date: Thu, 9 Oct 2014 14:45:09 +0200 Message-Id: <1412858714-2845-6-git-send-email-grzegorz.kolodziejczyk@tieto.com> In-Reply-To: <1412858714-2845-1-git-send-email-grzegorz.kolodziejczyk@tieto.com> References: <1412858714-2845-1-git-send-email-grzegorz.kolodziejczyk@tieto.com> Sender: linux-bluetooth-owner@vger.kernel.org List-ID: This patch adds test sending out of range opcode for service. --- android/ipc-tester.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/android/ipc-tester.c b/android/ipc-tester.c index 161777d..7dd25e8 100644 --- a/android/ipc-tester.c +++ b/android/ipc-tester.c @@ -940,6 +940,10 @@ int main(int argc, char *argv[]) HAL_SERVICE_ID_BLUETOOTH, HAL_SERVICE_ID_HANDSFREE_CLIENT); + test_opcode_valid("MAP_CLIENT", HAL_SERVICE_ID_MAP_CLIENT, 0x01, 0, + HAL_SERVICE_ID_BLUETOOTH, + HAL_SERVICE_ID_MAP_CLIENT); + /* check for valid data size */ test_datasize_valid("CORE Register+", HAL_SERVICE_ID_CORE, HAL_OP_REGISTER_MODULE, -- 1.9.3