1BRoster() 2none 3 4bool IsRunning(const char *signature) const 5case 1: signature is NULL => 6 Should return false. 7case 2: signature is not NULL, but no app with this signature is running => 8 Should return false. 9case 3: signature is not NULL and an (two) app(s) with this signature is (are) 10 running; quit one; quit the second one => 11 Should return true; true; false. 12 13bool IsRunning(entry_ref *ref) const 14case 1: ref is NULL => 15 Should return false. 16case 2: ref is not NULL, but no app with this ref is running => 17 Should return false. 18case 3: ref is not NULL and an (two) app(s) with this ref is (are) 19 running; quit one; quit the second one => 20 Should return true; true; false. 21 22team_id TeamFor(const char *signature) const 23case 1: signature is NULL => 24 Should return B_BAD_VALUE. 25case 2: signature is not NULL, but no app with this signature is running => 26 Should return B_ERROR. 27case 3: signature is not NULL and an (two) app(s) with this signature is (are) 28 running; quit one; quit the second one => 29 Should return the ID of one of the teams; the ID of the second teams; 30 B_ERROR. 31 32team_id TeamFor(entry_ref *ref) const 33case 1: ref is NULL => 34 Should return B_BAD_VALUE. 35case 2: ref is not NULL, but no app with this ref is running => 36 Should return B_ERROR. 37case 3: ref is not NULL and an (two) app(s) with this ref is (are) 38 running; quit one; quit the second one => 39 Should return the ID of one of the teams; the ID of the second teams; 40 B_ERROR. 41 42status_t GetAppInfo(const char *signature, app_info *info) const 43case 1: signature is NULL or info is NULL => 44 Should return B_BAD_VALUE. 45case 2: signature/info are not NULL, but no app with this signature is 46 running => 47 Should return B_ERROR. 48case 3: signature/info are not NULL and an (two) app(s) with this signature 49 is (are) running; quit one; quit the second one => 50 Should 51 - fill the app info with the data of one of the apps and return B_OK; 52 - fill the app info with the data of the second apps and return B_OK; 53 - return B_ERROR. 54 55status_t GetAppInfo(entry_ref *ref, app_info *info) const 56case 1: ref is NULL or info is NULL => 57 Should return B_BAD_VALUE. 58case 2: ref/info are not NULL, but no app with this ref is running => 59 Should return B_ERROR. 60case 3: ref/info are not NULL and an (two) app(s) with this ref 61 is (are) running; quit one; quit the second one => 62 Should 63 - fill the app info with the data of one of the apps and return B_OK; 64 - fill the app info with the data of the second apps and return B_OK; 65 - return B_ERROR. 66 67status_t GetRunningAppInfo(team_id team, app_info *info) const 68case 1: info is NULL => 69 Should return B_BAD_VALUE. 70case 2: info is not NULL, but no app with the team ID is running => 71 Should return B_BAD_TEAM_ID. 72case 3: info is not NULL, and an app with the team ID is running => 73 Should fill the app info and return B_OK. 74 75void GetAppList(BList *teamIDList) const 76case 1: teamIDList is NULL => 77 Should return B_BAD_VALUE. 78case 2: teamIDList is not NULL and not empty => 79 Should append the team IDs of all running apps to teamIDList. 80 81void GetAppList(const char *signature, BList *teamIDList) const 82case 1: signature or teamIDList are NULL => 83 Should return B_BAD_VALUE. 84case 2: teamIDList is not NULL and not empty, signature is not NULL, but no 85 app with this signature is running => 86 Should not modify teamIDList. 87case 3: teamIDList is not NULL and not empty, signature is not NULL, but no 88 app with this signature is running => 89 Should append the team IDs of all running apps with the supplied 90 signature to teamIDList. 91