Lines Matching refs:ref

91 	entry_ref ref;
94 CHK(entry.GetRef(&ref) == B_OK);
95 return ref;
222 virtual status_t operator()(const char *type, entry_ref *ref) = 0;
234 entry_ref ref;
235 CHK(caller(uninstalledType, &ref) == B_LAUNCH_FAILED_APP_NOT_FOUND);
248 entry_ref ref;
249 CHK(caller(fileType1, &ref) == B_LAUNCH_FAILED_NO_PREFERRED_APP);
263 entry_ref ref;
264 CHK(caller(fileType1, &ref) == B_LAUNCH_FAILED_APP_NOT_FOUND);
270 @results Should return B_OK and set the ref to refer to the
281 entry_ref ref;
282 CHK(caller(fileType1, &ref) == B_OK);
283 CHK(ref_for_path(appFile1) == ref);
290 @results Should return B_OK and set the ref to refer to the
301 entry_ref ref;
302 CHK(caller(fileType1, &ref) == B_OK);
303 CHK(ref_for_path(appFile1) == ref);
310 @results Should return B_OK and set the ref to refer to the
321 entry_ref ref;
322 CHK(caller(fileType1, &ref) == B_OK);
323 CHK(ref_for_path(appFile1) == ref);
330 @results Should return B_OK and set the ref to refer to the
343 entry_ref ref;
344 CHK(caller(fileType1, &ref) == B_OK);
345 CHK(ref_for_path(appFile2) == ref);
353 @results Should return B_OK and set the ref to refer to the
367 entry_ref ref;
368 CHK(caller(fileType1, &ref) == B_OK);
369 CHK(ref_for_path(appFile1) == ref);
376 @results Should return B_OK and set the ref to refer to the
391 entry_ref ref;
392 CHK(caller(fileType1, &ref) == B_OK);
393 CHK(ref_for_path(appFile1) == ref);
401 @results Should return B_OK and set the ref to refer to the
416 entry_ref ref;
417 CHK(caller(fileType1, &ref) == B_OK);
418 CHK(ref_for_path(appFile1) == ref);
432 @results Should return B_OK and set the ref to refer to the
444 entry_ref ref;
445 CHK(caller(fileType1, &ref) == B_OK);
446 CHK(ref_for_path(appFile1) == ref);
452 @results Should return B_OK and set the ref to refer to the
462 entry_ref ref;
463 CHK(caller(appType1, &ref) == B_OK);
464 CHK(ref_for_path(appFile1) == ref);
471 @results Should return B_OK and set the ref to refer to the
503 entry_ref ref;
504 CHK(caller(textTestType, &ref) == B_OK);
505 CHK(ref_for_path(appFile1) == ref);
521 entry_ref ref;
522 CHK(caller(fileType1, &ref) == B_LAUNCH_FAILED_APP_IN_TRASH);
539 entry_ref ref;
540 CHK(caller(fileType1, &ref) == B_LAUNCH_FAILED_APP_NOT_FOUND);
549 @results R5: Should return B_OK and set the ref to refer to the
562 entry_ref ref;
565 CHK(caller(fileType1, &ref) == B_OK);
566 CHK(ref_for_path(appFile1, false) == ref);
568 CHK(appHint == ref);
570 CHK(caller(fileType1, &ref) == B_LAUNCH_FAILED_APP_NOT_FOUND);
596 // R5: crashes when passing a non-NULL type, but a NULL ref.
600 entry_ref ref;
601 CHK(roster.FindApp((const char*)NULL, &ref) == B_BAD_VALUE);
612 entry_ref ref;
613 CHK(roster.FindApp("invalid/mine/type", &ref) == B_BAD_VALUE);
619 virtual status_t operator()(const char *type, entry_ref *ref)
622 return roster.FindApp(type, ref);
643 status_t FindApp(entry_ref *ref, entry_ref *app) const
644 @case 1 ref or app are NULL
651 // R5: Crashes when passing a NULL (app) ref.
657 entry_ref ref;
658 CHK(roster.FindApp((entry_ref*)NULL, &ref) == B_BAD_VALUE);
662 status_t FindApp(entry_ref *ref, entry_ref *app) const
663 @case 2 ref doesn't refer to an existing entry =>
670 entry_ref ref;
671 CHK(roster.FindApp(&fileRef, &ref) == B_ENTRY_NOT_FOUND);
675 status_t FindApp(entry_ref *ref, entry_ref *app) const
676 @case 3 ref is valid, file has type and preferred app, preferred
685 entry_ref ref;
686 CHK(roster.FindApp(&fileRef, &ref) == B_LAUNCH_FAILED_APP_IN_TRASH);
690 status_t FindApp(entry_ref *ref, entry_ref *app) const
691 @case 4 ref is valid, file has type and preferred app, app type is
693 @results Should return B_OK and set the ref to refer to the file's
704 entry_ref ref;
705 CHK(roster.FindApp(&fileRef, &ref) == B_OK);
706 CHK(ref_for_path(appFile2) == ref);
711 status_t FindApp(entry_ref *ref, entry_ref *app) const
712 @case 5 ref is valid, file has no type, but preferred app,
714 @results Should return B_OK and set the ref to refer to the
723 entry_ref ref;
724 CHK(roster.FindApp(&fileRef, &ref) == B_OK);
725 CHK(ref_for_path(appFile1) == ref);
730 status_t FindApp(entry_ref *ref, entry_ref *app) const
731 @case 6 ref is valid, file has type and app hint, the type's
734 @results Should return B_OK and set the ref to refer to the file
745 entry_ref ref;
746 CHK(roster.FindApp(&fileRef, &ref) == B_OK);
747 CHK(ref_for_path(appFile1) == ref);
752 status_t FindApp(entry_ref *ref, entry_ref *app) const
753 @case 7 ref is valid, file has type, the type's preferred app
756 @results Should return B_OK and set the ref to refer to the file.
766 entry_ref ref;
767 CHK(roster.FindApp(&fileRef, &ref) == B_OK);
768 CHK(ref_for_path(testFile1) == ref);
770 CHK(BMimeType(fileType1).GetAppHint(&ref) == B_ENTRY_NOT_FOUND);
774 status_t FindApp(entry_ref *ref, entry_ref *app) const
775 @case 8 ref is valid and refers to a link to a file, file has type,
778 @results Should return B_OK and set the ref to refer to the file
790 entry_ref ref;
791 CHK(roster.FindApp(&linkRef, &ref) == B_OK);
792 CHK(ref_for_path(appFile1) == ref);
799 virtual status_t operator()(const char *type, entry_ref *ref)
803 return roster.FindApp(&fileRef, ref);
808 status_t FindApp(entry_ref *ref, entry_ref *app) const
809 @case 9 ref is valid, file has no type, sniffing results in a type,
828 virtual status_t operator()(const char *type, entry_ref *ref)
834 return roster.FindApp(&fileRef, ref);
839 status_t FindApp(entry_ref *ref, entry_ref *app) const
840 @case 10 ref is valid, file has no type, sniffing results in a type,
857 status_t FindApp(entry_ref *ref, entry_ref *app) const
858 @case 11 ref is valid and refers to a cyclic link
866 entry_ref ref;
867 CHK(roster.FindApp(&linkRef, &ref) == B_LAUNCH_FAILED_NO_RESOLVE_LINK);
871 status_t FindApp(entry_ref *ref, entry_ref *app) const
872 @case 12 ref is valid and refers to a link to void
880 entry_ref ref;
881 CHK(roster.FindApp(&linkRef, &ref) == B_LAUNCH_FAILED_NO_RESOLVE_LINK);