1 BHandler(const char* name)
2 case 1: name is non-NULL; BHandler::Name() should return that name
3 case 2: name is NULL; BHandler::Name() should return NULL
5 BHandler(BMessage* archive)
6 case 1: if archive has field "_name", BHandler::Name() should return that name
7 case 2: if archive has no field "_name", BHandler::Name() should return NULL
8 case 3: archive is NULL
10 Archive(BMessage *data, bool deep = true)
11 case 1: data is NULL, deep is false
12 case 2: data is NULL, deep is true
13 case 3: data is valid, deep is false
14 case 4: data is valid, deep is true
16 Instantiate(BMessage *data)
18 case 2: data is valid, has field "_name"; BHandler::Name() should return that name
19 case 3: data is valid, has no field "_name"; BHandler::Name() should return NULL
21 SetName(const char *name)
23 case 1: name is NULL; BHandler::Name() should return NULL
24 case 2: name is valid; BHandler::Name should return that name
26 Perform(perform_code d, void *arg)
27 case 1: feed meaningless data, should return B_ERROR
30 case 1: No added watchers; should return false
31 case 2: Add watcher, should return true; remove watcher, should return false
34 case 1: Not added to a BLooper, should return NULL
35 case 2: Added to a BLooper, should return that BLooper;
36 remove from BLooper, should return NULL
38 SetNextHandler(BHandler *handler)
40 This BHandler and handler must be part of the same chain (i.e., belong to the
41 same BLooper) and the BLooper they belong to must be locked.
42 case 1: Handler1 and Handler2 do not belong to a BLooper
43 case 2: Handler1 belongs to a BLooper (which is unlocked), Handler2 does not
44 case 3: Handler1 belongs to a BLooper (which is locked), Handler2 does not
45 case 4: Handler1 does not belong to a BLooper, Handler2 does (which is unlocked)
46 case 5: Handler1 does not belong to a BLooper, Handler2 does (which is locked)
47 case 6: Handler1 and Handler2 belong to different BLoopers, which are unlocked
48 case 7: Handler1 and Handler2 belong to different BLoopers, and Handler1's
49 BLooper is locked; Handler2's is not
50 case 8: Handler1 and Handler2 belong to different BLoopers, and Handler1's
51 BLooper is unlocked; Handler2's is locked
52 case 9: Handler1 and Handler2 belong to different BLoopers, which are both locked
53 case 10: Handler1 and Handler2 belong to the same BLooper, which is unlocked
54 case 11: Handler1 and Handler2 belong to the same BLooper, which is locked
55 case 12: Default constructed handler
56 case 13: Handler belongs to BLooper
58 AddFilter(BMessageFilter *filter)
59 case 1: filter is NULL
60 case 2: filter is valid, handler has no looper
61 case 3: filter is valid, handler has looper, looper isn't locked
62 case 4: filter is valid, handler has looper, looper is locked
64 RemoveFilter(BMessageFilter *filter)
65 case 1: filter is NULL
66 case 2: filter is valid, handler has no looper
67 case 3: filter is valid, handler has looper, looper isn't locked
68 case 4: filter is valid, handler has looper, looper is locked
69 case 5: filter is valid, but not owned by handler, handler has no looper
70 case 6: filter is valid, but not owned by handler, handler has looper, looper isn't locked
71 case 7: filter is valid, but not owned by handler, handler has looper, looper is locked
73 SetFilterList(BList *filters)
74 case 1: filters is NULL
75 case 2: filters is valid, handler has no looper
76 case 3: filters is valid, handler has looper, looper isn't locked
77 case 4: filters is valid, handler has looper, looper is locked
78 case 5: filters and handler are valid; then NULL filters is passed
81 case 1: default constructed BHandler
82 Other cases are handled in SetFilterList() tests
85 case 1: handler has no looper
86 case 2: handler has a looper which is initially unlocked
87 case 3: handler has a looper which is initially locked
88 case 4: handler has a looper which is locked in another thread
90 LockLooperWithTimeout(bigtime_t timeout)
91 case 1: handler has no looper
92 case 2: handler has a looper which is initially unlocked
93 case 3: handler has a looper which is initially locked
94 case 4: handler has a looper which is locked in another thread
97 case 1: handler has no looper
98 case 2: handler has a looper which is initially unlocked
99 case 3: handler has a looper which is initially locked
100 case 4: handler has a looper which is locked in another thread
102 MessageReceived(BMessage *message)
103 ResolveSpecifier(BMessage *msg, int32 index, BMessage *specifier,
104 int32 form, const char *property)
105 GetSupportedSuites(BMessage *data)
106 StartWatching(BMessenger, uint32 what)
107 StartWatchingAll(BMessenger)
108 StopWatching(BMessenger, uint32 what)
109 StopWatchingAll(BMessenger)
110 StartWatching(BHandler *, uint32 what)
111 StartWatchingAll(BHandler *)
112 StopWatching(BHandler *, uint32 what)
113 StopWatchingAll(BHandler *)
115 SendNotices(uint32 what, const BMessage * = 0)