Lines Matching full:filepath
55 // To test that file_util::Normalize FilePath() deals with NTFS reparse points
86 bool SetReparsePoint(HANDLE source, const FilePath& target_path) {
133 ReparsePoint(const FilePath& source, const FilePath& target) {
164 void ChangePosixFilePermissions(const FilePath& path,
200 FilePath cur_file;
202 FilePath::StringType path = cur_file.value();
213 bool HasFile(const FilePath& file) const {
222 std::set<FilePath::StringType> files_;
226 void CreateTextFile(const FilePath& filename,
236 std::wstring ReadTextFile(const FilePath& filename) {
258 FilePath file_01 = temp_dir_.path().Append(FPL("The file 01.txt"));
264 FilePath subdir_path = temp_dir_.path().Append(FPL("Level2"));
267 FilePath file_02 = subdir_path.Append(FPL("The file 02.txt"));
273 FilePath subsubdir_path = subdir_path.Append(FPL("Level3"));
276 FilePath file_03 = subsubdir_path.Append(FPL("The file 03.txt"));
286 FilePath file_a_path = temp_dir_.path().Append(FPL("file_a"));
287 FilePath dir_path = temp_dir_.path().Append(FPL("dir"));
288 FilePath file_b_path = dir_path.Append(FPL("file_b"));
291 FilePath normalized_file_a_path, normalized_file_b_path;
328 FilePath base_a = temp_dir_.path().Append(FPL("base_a"));
331 FilePath sub_a = base_a.Append(FPL("sub_a"));
334 FilePath file_txt = sub_a.Append(FPL("file.txt"));
341 FilePath sub_long_rel(FPL("sub_long"));
342 FilePath deep_txt(FPL("deep.txt"));
352 FilePath::StringType long_name_str = FPL("long_name_");
355 FilePath long_name = sub_a.Append(FilePath(long_name_str));
356 FilePath deep_file = long_name.Append(sub_long_rel).Append(deep_txt);
359 FilePath sub_long = deep_file.DirName();
363 FilePath base_b = temp_dir_.path().Append(FPL("base_b"));
366 FilePath to_sub_a = base_b.Append(FPL("to_sub_a"));
368 FilePath normalized_path;
373 FilePath to_base_b = base_b.Append(FPL("to_base_b"));
378 FilePath to_sub_long = base_b.Append(FPL("to_sub_long"));
405 FilePath long_path = base_b;
440 FilePath actual_device_path(device_path);
441 FilePath win32_path;
450 FilePath kRelativePath(FPL("dir1\\dir2\\file.txt"));
454 EXPECT_EQ(FilePath(real_drive_letter + L"\\").Append(kRelativePath).value(),
467 FilePath prefix_of_real_device_path(
482 const FilePath::StringType kExtraChars = FPL("12345");
484 FilePath real_device_path_plus_numbers(
502 const FilePath::CharType kLongDirName[] = FPL("A long path");
503 const FilePath::CharType kTestSubDirName[] = FPL("test");
504 FilePath long_test_dir = temp_dir_.path().Append(kLongDirName);
514 FilePath short_test_dir(path_buffer);
517 FilePath temp_file;
529 FilePath access_test_dir = long_test_dir.Append(kTestSubDirName);
551 FilePath link_from = temp_dir_.path().Append(FPL("from_file"));
552 FilePath link_to = temp_dir_.path().Append(FPL("to_file"));
563 FilePath result;
577 FilePath missing = temp_dir_.path().Append(FPL("missing"));
588 FilePath link_from = temp_dir_.path().Append(FPL("from_file"));
589 FilePath link_to = temp_dir_.path().Append(FPL("to_file"));
596 FilePath normalized_path;
626 FilePath non_existent = temp_dir_.path().AppendASCII("bogus_file_dne.foobar");
636 FilePath non_existent = temp_dir_.path().AppendASCII("bogus_topdir");
648 FilePath file_name = temp_dir_.path().Append(FPL("Test DeleteFile 1.txt"));
669 FilePath file_name = temp_dir_.path().Append(FPL("Test DeleteFile 2.txt"));
674 FilePath file_link = temp_dir_.path().Append("file_link_2");
688 FilePath non_existent = temp_dir_.path().Append(FPL("Test DeleteFile 3.txt"));
692 FilePath file_link = temp_dir_.path().Append("file_link_3");
709 FilePath file_name = temp_dir_.path().Append(FPL("Test Readable File.txt"));
751 FilePath file_name = temp_dir_.path().Append(FPL("Test Readable File.txt"));
792 FilePath subdir_path =
798 FilePath file_name = subdir_path.Append(FPL("Test Readable File.txt"));
846 FilePath file_name = temp_dir_.path().Append(FPL("Test DeleteWildCard.txt"));
850 FilePath subdir_path = temp_dir_.path().Append(FPL("DeleteWildCardDir"));
855 FilePath directory_contents = temp_dir_.path();
872 FilePath subdir_path =
878 FilePath directory_contents = subdir_path;
894 FilePath
898 FilePath file_name = test_subdir.Append(FPL("Test DeleteDir.txt"));
902 FilePath subdir_path1 = test_subdir.Append(FPL("TestSubDir1"));
906 FilePath subdir_path2 = test_subdir.Append(FPL("TestSubDir2"));
924 FilePath test_subdir = temp_dir_.path().Append(FPL("DeleteDirRecursive"));
928 FilePath file_name = test_subdir.Append(FPL("Test DeleteDirRecursive.txt"));
932 FilePath subdir_path1 = test_subdir.Append(FPL("TestSubDir1"));
936 FilePath subdir_path2 = test_subdir.Append(FPL("TestSubDir2"));
953 FilePath file_name_from =
959 FilePath file_name_to = temp_dir_.path().Append(
972 FilePath file_name_from =
978 FilePath file_name_to = temp_dir_.path().Append(
993 FilePath file_name_from =
999 FilePath dir_name_to =
1010 FilePath dir_name_from =
1016 FilePath txt_file_name(FILE_PATH_LITERAL("Move_Test_File.txt"));
1017 FilePath file_name_from = dir_name_from.Append(txt_file_name);
1022 FilePath dir_name_to =
1024 FilePath file_name_to =
1051 FilePath dir_name_from =
1057 FilePath file_name_from =
1063 FilePath dir_name_exists =
1066 FilePath dir_name_to =
1068 FilePath file_name_to =
1086 FilePath dir_name_from =
1092 FilePath file_name_from =
1098 FilePath subdir_name_from =
1104 FilePath file_name2_from =
1110 FilePath dir_name_to =
1112 FilePath file_name_to =
1114 FilePath subdir_name_to =
1116 FilePath file_name2_to =
1136 FilePath dir_name_from =
1142 FilePath file_name_from =
1148 FilePath subdir_name_from =
1154 FilePath file_name2_from =
1160 FilePath dir_name_exists =
1163 FilePath dir_name_to =
1165 FilePath file_name_to =
1167 FilePath subdir_name_to =
1169 FilePath file_name2_to =
1191 FilePath dir_name_from =
1197 FilePath file_name_from =
1203 FilePath subdir_name_from =
1209 FilePath file_name2_from =
1215 FilePath dir_name_to =
1217 FilePath file_name_to =
1219 FilePath subdir_name_to =
1238 FilePath dir_name_from =
1244 FilePath file_name_from =
1250 FilePath subdir_name_from =
1256 FilePath file_name2_from =
1262 FilePath dir_name_to =
1264 FilePath file_name_to =
1266 FilePath subdir_name_to =
1287 FilePath file_name_from =
1293 FilePath file_name_to = temp_dir_.path().Append(
1305 FilePath file_name_from =
1311 FilePath file_name_to = temp_dir_.path().Append(
1325 FilePath file_name_from =
1331 FilePath dir_name_to =
1335 FilePath file_name_to =
1346 FilePath dir_name_from =
1352 FilePath file_name_from =
1358 FilePath dir_name_to =
1360 FilePath file_name_to =
1365 FilePath from_path =
1368 FilePath from_path =
1382 void SetReadOnly(const FilePath& path) {
1403 bool IsReadOnly(const FilePath& path) {
1417 FilePath src = temp_dir_.path().Append(FILE_PATH_LITERAL("src"));
1422 FilePath src_file = src.Append(FILE_PATH_LITERAL("src.txt"));
1428 FilePath dst = temp_dir_.path().Append(FILE_PATH_LITERAL("dst"));
1429 FilePath dst_file = dst.Append(FILE_PATH_LITERAL("src.txt"));
1437 FilePath dir_name_from =
1443 FilePath file_name_from =
1450 FilePath dest_file = dir_name_from.Append(FILE_PATH_LITERAL("DestFile.txt"));
1454 FilePath dest_file2(dir_name_from);
1460 FilePath dest_file2_test(dir_name_from);
1477 FilePath src = temp_dir_.path().Append(FILE_PATH_LITERAL("src.txt"));
1487 FilePath dst = temp_dir_.path().Append(FILE_PATH_LITERAL("dst.txt"));
1499 FilePath data_dir;
1504 FilePath original_file =
1506 FilePath same_file =
1508 FilePath same_length_file =
1510 FilePath different_file =
1512 FilePath different_first_file =
1514 FilePath different_last_file =
1516 FilePath empty1_file =
1518 FilePath empty2_file =
1520 FilePath shortened_file =
1522 FilePath binary_file =
1524 FilePath binary_file_same =
1526 FilePath binary_file_diff =
1533 EXPECT_FALSE(ContentsEqual(FilePath(FILE_PATH_LITERAL("bogusname")),
1534 FilePath(FILE_PATH_LITERAL("bogusname"))));
1545 FilePath data_dir;
1550 FilePath original_file =
1552 FilePath same_file =
1554 FilePath crlf_file =
1556 FilePath shortened_file =
1558 FilePath different_file =
1560 FilePath different_first_file =
1562 FilePath different_last_file =
1564 FilePath first1_file =
1566 FilePath first2_file =
1568 FilePath empty1_file =
1570 FilePath empty2_file =
1572 FilePath blank_line_file =
1574 FilePath blank_line_crlf_file =
1593 FilePath dir_name_from =
1599 FilePath file_name_from =
1605 FilePath dir_name_to = temp_dir_.path().Append(
1607 FilePath file_name_to =
1634 FilePath path;
1652 FilePath temp_files[3];
1665 FilePath names[3];
1693 FilePath file_name = temp_dir_.path().Append(FPL("The file.txt"));
1704 FilePath temp_dir;
1705 ASSERT_TRUE(CreateNewTempDirectory(FilePath::StringType(), &temp_dir));
1711 FilePath new_dir;
1723 FilePath dir;
1734 FilePath home = GetHomeDir();
1741 FilePath test_root =
1744 FilePath test_path =
1747 FilePath test_path =
1771 ASSERT_TRUE(DirectoryExists(FilePath(FilePath::kCurrentDirectory)));
1772 FilePath top_level = test_root;
1781 FilePath(FilePath::kCurrentDirectory)));
1785 FilePath invalid_drive(FILE_PATH_LITERAL("o:\\"));
1786 FilePath invalid_path =
1796 FilePath test_root =
1803 FilePath test_path =
1828 FilePath dir1 = temp_dir_.path().Append(FPL("dir1"));
1830 FilePath dir2 = temp_dir_.path().Append(FPL("dir2"));
1832 FilePath dir2inner = dir2.Append(FPL("inner"));
1836 FilePath dir2file = dir2.Append(FPL("dir2file.txt"));
1838 FilePath dir2innerfile = dir2inner.Append(FPL("innerfile.txt"));
1840 FilePath file1 = temp_dir_.path().Append(FPL("file1.txt"));
1842 FilePath file2_rel = dir2.Append(FilePath::kParentDirectory)
1845 FilePath file2_abs = temp_dir_.path().Append(FPL("file2.txt"));
1925 FilePath inner2 = dir1.Append(FPL("inner"));
1963 FilePath data_dir =
1977 FilePath foobar(data_dir.Append(FILE_PATH_LITERAL("foobar.txt")));
1993 FilePath file_path =
2026 FilePath file_path_not_exist =
2038 FilePath file_path =
2040 FilePath file_path_dangerous =
2092 FilePath data_dir =
2101 FilePath foobar(data_dir.Append(FILE_PATH_LITERAL("foobar.txt")));
2127 FilePath empty_dir = temp_dir_.path().Append(FILE_PATH_LITERAL("EmptyDir"));
2135 FilePath foo(empty_dir.Append(FILE_PATH_LITERAL("foo.txt")));
2199 FilePath base_dir_;
2200 FilePath sub_dir_;
2201 FilePath text_file_;
2210 FilePath does_not_exist = base_dir_.AppendASCII("does")
2223 FilePath empty;
2238 FilePath file_link = base_dir_.AppendASCII("file_link");
2250 FilePath link_to_sub_dir = base_dir_.AppendASCII("link_to_sub_dir");
2254 FilePath file_path_with_link = link_to_sub_dir.AppendASCII("file.txt");
2513 FilePath data_dir;
2517 FilePath image_file = data_dir.Append(FILE_PATH_LITERAL("red.png"));
2524 FilePath path = file_util::InsertImageIntoMediaStore(image_file);
2542 FilePath path("content://foo.bar");