From 6d24e9d8c8f3af3cdbd71ebd7ab06c0497e07563 Mon Sep 17 00:00:00 2001 From: Ingo Weinhold Date: Sun, 21 Jul 2002 14:49:04 +0000 Subject: [PATCH] Some cleanup concerning the SendMessage() cases. git-svn-id: file:///srv/svn/repos/haiku/trunk/current@366 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/tests/kits/app/bmessenger/BMessengerCases | 24 +++++++------------ 1 file changed, 8 insertions(+), 16 deletions(-) diff --git a/src/tests/kits/app/bmessenger/BMessengerCases b/src/tests/kits/app/bmessenger/BMessengerCases index 627cbd0f0f..0f883169b6 100644 --- a/src/tests/kits/app/bmessenger/BMessengerCases +++ b/src/tests/kits/app/bmessenger/BMessengerCases @@ -188,21 +188,13 @@ case 1: this is uninitialized, replyTo is NULL => should return B_BAD_PORT_ID. case 2: this is uninitialized, replyTo points to a valid handler => should return B_BAD_PORT_ID. -case 3: this is initialized to a local target with preferred handler, - replyTo is NULL => +case 3: this is initialized to a local/remote target with preferred/specific + handler, replyTo is NULL => should deliver the message and return B_OK. -case 4: this is initialized to a local target with preferred handler, - replyTo points to a valid handler => +case 4: this is initialized to a local/remote target with preferred/specific + handler, replyTo points to a valid handler => should deliver the message and return B_OK, a reply should be posted to the reply handler. -case 5: this is initialized to a local target with specific handler, - replyTo is NULL => - should deliver the message and return B_OK. -case 6: this is initialized to a local target with specific handler, - replyTo points to a valid handler => - should deliver the message and return B_OK, a reply should be posted - to the reply handler. -TODO: remote targets... status_t SendMessage(BMessage *message, BHandler *replyTo, bigtime_t timeout) const @@ -222,11 +214,11 @@ case 1: this is uninitialized, reply is NULL => should return B_BAD_PORT_ID or B_BAD_VALUE. case 2: this is uninitialized, replyTo points to a valid message => should return B_BAD_PORT_ID. -case 3: this is initialized to a local target with preferred handler, - reply is NULL => +case 3: this is initialized to a local/remote target with preferred/specific + handler, reply is NULL => should return B_BAD_VALUE. -case 4: this is initialized to a local target with preferred handler, - reply points to a valid message => +case 4: this is initialized to a local/remote target with preferred/specific + handler, reply points to a valid message => should deliver the message, wait for a reply and return B_OK, reply should contain the reply.