Lines Matching defs:dir

63 	// absolute existing path (root dir), no leaf, no normalization
87 // absolute existing path (root dir), no leaf, auto normalization
113 // absolute existing path (root dir), no leaf, normalization forced
194 // absolute existing path (root dir), leaf, no normalization
224 // absolute existing path (root dir), leaf, auto normalization
319 // existing dir (root dir), no leaf, no normalization
323 BDirectory dir(pathName);
324 BPath path(&dir, NULL);
328 // existing dir, no leaf, no normalization
332 BDirectory dir(pathName);
333 BPath path(&dir, NULL);
337 // existing dir (root dir), no leaf, normalization forced
341 BDirectory dir(pathName);
342 BPath path(&dir, NULL, true);
346 // existing dir, no leaf, normalization forced
350 BDirectory dir(pathName);
351 BPath path(&dir, NULL, true);
355 // existing dir (root dir), leaf, no normalization
361 BDirectory dir(pathName);
362 BPath path(&dir, leafName);
366 // existing dir, leaf, no normalization
372 BDirectory dir(pathName);
373 BPath path(&dir, leafName);
377 // existing dir, leaf, auto normalization
383 BDirectory dir(pathName);
384 BPath path(&dir, leafName);
393 BDirectory dir(pathName);
394 BPath path(&dir, leafName);
398 // bad args (uninitialized dir)
401 BDirectory dir;
402 BPath path(&dir, "test");
406 // bad args (badly initialized dir)
409 BDirectory dir("/this/dir/doesn't/exists");
410 BPath path(&dir, "test");
414 // bad args (NULL dir)
423 // bad args (NULL dir)
433 // existing entry (root dir)
485 // existing entry (root dir)
536 BDirectory dir;
541 // absolute existing path (root dir), no leaf, no normalization
562 // absolute existing path (root dir), no leaf, auto normalization
585 // absolute existing path (root dir), no leaf, normalization forced
658 // absolute existing path (root dir), leaf, no normalization
685 // absolute existing path (root dir), leaf, auto normalization
781 // existing dir (root dir), no leaf, no normalization
784 CPPUNIT_ASSERT( dir.SetTo(pathName) == B_OK );
785 CPPUNIT_ASSERT( path.SetTo(&dir, NULL) == B_OK );
789 dir.Unset();
790 // existing dir, no leaf, no normalization
793 CPPUNIT_ASSERT( dir.SetTo(pathName) == B_OK );
794 CPPUNIT_ASSERT( path.SetTo(&dir, NULL) == B_OK );
798 dir.Unset();
799 // existing dir (root dir), no leaf, normalization forced
802 CPPUNIT_ASSERT( dir.SetTo(pathName) == B_OK );
803 CPPUNIT_ASSERT( path.SetTo(&dir, NULL, true) == B_OK );
807 dir.Unset();
808 // existing dir, no leaf, normalization forced
811 CPPUNIT_ASSERT( dir.SetTo(pathName) == B_OK );
812 CPPUNIT_ASSERT( path.SetTo(&dir, NULL, true) == B_OK );
816 dir.Unset();
817 // existing dir (root dir), leaf, no normalization
822 CPPUNIT_ASSERT( dir.SetTo(pathName) == B_OK );
823 CPPUNIT_ASSERT( path.SetTo(&dir, leafName) == B_OK );
827 dir.Unset();
828 // existing dir, leaf, no normalization
833 CPPUNIT_ASSERT( dir.SetTo(pathName) == B_OK );
834 CPPUNIT_ASSERT( path.SetTo(&dir, leafName) == B_OK );
838 dir.Unset();
839 // existing dir, leaf, auto normalization
844 CPPUNIT_ASSERT( dir.SetTo(pathName) == B_OK );
845 CPPUNIT_ASSERT( path.SetTo(&dir, leafName) == B_OK );
849 dir.Unset();
854 CPPUNIT_ASSERT( dir.SetTo(pathName) == B_OK );
855 CPPUNIT_ASSERT( path.SetTo(&dir, leafName) == B_BAD_VALUE );
859 dir.Unset();
860 // bad args (uninitialized dir)
862 CPPUNIT_ASSERT( dir.InitCheck() == B_NO_INIT );
863 CPPUNIT_ASSERT( path.SetTo(&dir, "test") == B_BAD_VALUE );
867 dir.Unset();
868 // bad args (badly initialized dir)
870 CPPUNIT_ASSERT( dir.SetTo("/this/dir/doesn't/exists") == B_ENTRY_NOT_FOUND );
871 CPPUNIT_ASSERT( path.SetTo(&dir, "test") == B_BAD_VALUE );
875 dir.Unset();
878 // bad args (NULL dir)
884 dir.Unset();
885 // bad args (NULL dir)
891 dir.Unset();
895 // existing entry (root dir)
948 // existing entry (root dir)
999 // dir hierarchy, from existing to non-existing
1048 // root dir
1066 CPPUNIT_ASSERT( path.SetTo("/non/existing/dir") == B_OK );
1067 CPPUNIT_ASSERT( string("dir") == path.Leaf() );
1086 // root dir
1110 CPPUNIT_ASSERT( path.SetTo("/non/existing/dir") == B_OK );
1117 CPPUNIT_ASSERT( path.SetTo("/non/existing/dir") == B_OK );
1131 CPPUNIT_ASSERT( path.SetTo("/non/existing/dir") == B_OK );