Lines Matching full:filepath
47 // To test that file_util::Normalize FilePath() deals with NTFS reparse points
78 bool SetReparsePoint(HANDLE source, const FilePath& target_path) {
125 ReparsePoint(const FilePath& source, const FilePath& target) {
156 void ChangePosixFilePermissions(const FilePath& path,
192 FilePath cur_file;
194 FilePath::StringType path = cur_file.value();
205 bool HasFile(const FilePath& file) const {
214 std::set<FilePath::StringType> files_;
218 void CreateTextFile(const FilePath& filename,
228 std::wstring ReadTextFile(const FilePath& filename) {
250 FilePath file_01 = temp_dir_.path().Append(FPL("The file 01.txt"));
256 FilePath subdir_path = temp_dir_.path().Append(FPL("Level2"));
259 FilePath file_02 = subdir_path.Append(FPL("The file 02.txt"));
265 FilePath subsubdir_path = subdir_path.Append(FPL("Level3"));
268 FilePath file_03 = subsubdir_path.Append(FPL("The file 03.txt"));
278 FilePath file_a_path = temp_dir_.path().Append(FPL("file_a"));
279 FilePath dir_path = temp_dir_.path().Append(FPL("dir"));
280 FilePath file_b_path = dir_path.Append(FPL("file_b"));
283 FilePath normalized_file_a_path, normalized_file_b_path;
320 FilePath base_a = temp_dir_.path().Append(FPL("base_a"));
323 FilePath sub_a = base_a.Append(FPL("sub_a"));
326 FilePath file_txt = sub_a.Append(FPL("file.txt"));
333 FilePath sub_long_rel(FPL("sub_long"));
334 FilePath deep_txt(FPL("deep.txt"));
344 FilePath::StringType long_name_str = FPL("long_name_");
347 FilePath long_name = sub_a.Append(FilePath(long_name_str));
348 FilePath deep_file = long_name.Append(sub_long_rel).Append(deep_txt);
351 FilePath sub_long = deep_file.DirName();
355 FilePath base_b = temp_dir_.path().Append(FPL("base_b"));
358 FilePath to_sub_a = base_b.Append(FPL("to_sub_a"));
360 FilePath normalized_path;
365 FilePath to_base_b = base_b.Append(FPL("to_base_b"));
370 FilePath to_sub_long = base_b.Append(FPL("to_sub_long"));
397 FilePath long_path = base_b;
432 FilePath actual_device_path(device_path);
433 FilePath win32_path;
442 FilePath kRelativePath(FPL("dir1\\dir2\\file.txt"));
446 EXPECT_EQ(FilePath(real_drive_letter + L"\\").Append(kRelativePath).value(),
459 FilePath prefix_of_real_device_path(
474 const FilePath::StringType kExtraChars = FPL("12345");
476 FilePath real_device_path_plus_numbers(
489 FilePath empty_dir = temp_dir_.path().Append(FPL("gpfi_test"));
513 const FilePath::CharType kLongDirName[] = FPL("A long path");
514 const FilePath::CharType kTestSubDirName[] = FPL("test");
515 FilePath long_test_dir = temp_dir_.path().Append(kLongDirName);
525 FilePath short_test_dir(path_buffer);
528 FilePath temp_file;
540 FilePath access_test_dir = long_test_dir.Append(kTestSubDirName);
562 FilePath link_from = temp_dir_.path().Append(FPL("from_file"));
563 FilePath link_to = temp_dir_.path().Append(FPL("to_file"));
574 FilePath result;
588 FilePath missing = temp_dir_.path().Append(FPL("missing"));
599 FilePath link_from = temp_dir_.path().Append(FPL("from_file"));
600 FilePath link_to = temp_dir_.path().Append(FPL("to_file"));
607 FilePath normalized_path;
637 FilePath non_existent = temp_dir_.path().AppendASCII("bogus_file_dne.foobar");
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"));
793 FilePath subdir_path =
799 FilePath file_name = subdir_path.Append(FPL("Test Readable File.txt"));
847 FilePath file_name = temp_dir_.path().Append(FPL("Test DeleteWildCard.txt"));
851 FilePath subdir_path = temp_dir_.path().Append(FPL("DeleteWildCardDir"));
856 FilePath directory_contents = temp_dir_.path();
873 FilePath subdir_path =
879 FilePath directory_contents = subdir_path;
895 FilePath test_subdir = temp_dir_.path().Append(FPL("DeleteDirNonRecursive"));
899 FilePath file_name = test_subdir.Append(FPL("Test DeleteDir.txt"));
903 FilePath subdir_path1 = test_subdir.Append(FPL("TestSubDir1"));
907 FilePath subdir_path2 = test_subdir.Append(FPL("TestSubDir2"));
925 FilePath test_subdir = temp_dir_.path().Append(FPL("DeleteDirRecursive"));
929 FilePath file_name = test_subdir.Append(FPL("Test DeleteDirRecursive.txt"));
933 FilePath subdir_path1 = test_subdir.Append(FPL("TestSubDir1"));
937 FilePath subdir_path2 = test_subdir.Append(FPL("TestSubDir2"));
954 FilePath file_name_from =
960 FilePath file_name_to = temp_dir_.path().Append(
973 FilePath file_name_from =
979 FilePath file_name_to = temp_dir_.path().Append(
994 FilePath file_name_from =
1000 FilePath dir_name_to =
1011 FilePath dir_name_from =
1017 FilePath txt_file_name(FILE_PATH_LITERAL("Move_Test_File.txt"));
1018 FilePath file_name_from = dir_name_from.Append(txt_file_name);
1023 FilePath dir_name_to =
1025 FilePath file_name_to =
1052 FilePath dir_name_from =
1058 FilePath file_name_from =
1064 FilePath dir_name_exists =
1067 FilePath dir_name_to =
1069 FilePath file_name_to =
1087 FilePath dir_name_from =
1093 FilePath file_name_from =
1099 FilePath subdir_name_from =
1105 FilePath file_name2_from =
1111 FilePath dir_name_to =
1113 FilePath file_name_to =
1115 FilePath subdir_name_to =
1117 FilePath file_name2_to =
1137 FilePath dir_name_from =
1143 FilePath file_name_from =
1149 FilePath subdir_name_from =
1155 FilePath file_name2_from =
1161 FilePath dir_name_exists =
1164 FilePath dir_name_to =
1166 FilePath file_name_to =
1168 FilePath subdir_name_to =
1170 FilePath file_name2_to =
1192 FilePath dir_name_from =
1198 FilePath file_name_from =
1204 FilePath subdir_name_from =
1210 FilePath file_name2_from =
1216 FilePath dir_name_to =
1218 FilePath file_name_to =
1220 FilePath subdir_name_to =
1239 FilePath dir_name_from =
1245 FilePath file_name_from =
1251 FilePath subdir_name_from =
1257 FilePath file_name2_from =
1263 FilePath dir_name_to =
1265 FilePath file_name_to =
1267 FilePath subdir_name_to =
1288 FilePath file_name_from =
1294 FilePath file_name_to = temp_dir_.path().Append(
1306 FilePath file_name_from =
1312 FilePath file_name_to = temp_dir_.path().Append(
1326 FilePath file_name_from =
1332 FilePath dir_name_to =
1336 FilePath file_name_to =
1347 FilePath dir_name_from =
1353 FilePath file_name_from =
1359 FilePath dir_name_to =
1361 FilePath file_name_to =
1366 FilePath from_path =
1369 FilePath from_path =
1384 FilePath dir_name_from =
1390 FilePath file_name_from =
1397 FilePath dest_file = dir_name_from.Append(FILE_PATH_LITERAL("DestFile.txt"));
1401 FilePath dest_file2(dir_name_from);
1407 FilePath dest_file2_test(dir_name_from);
1425 FilePath data_dir;
1430 FilePath original_file =
1432 FilePath same_file =
1434 FilePath same_length_file =
1436 FilePath different_file =
1438 FilePath different_first_file =
1440 FilePath different_last_file =
1442 FilePath empty1_file =
1444 FilePath empty2_file =
1446 FilePath shortened_file =
1448 FilePath binary_file =
1450 FilePath binary_file_same =
1452 FilePath binary_file_diff =
1459 EXPECT_FALSE(ContentsEqual(FilePath(FILE_PATH_LITERAL("bogusname")),
1460 FilePath(FILE_PATH_LITERAL("bogusname"))));
1471 FilePath data_dir;
1476 FilePath original_file =
1478 FilePath same_file =
1480 FilePath crlf_file =
1482 FilePath shortened_file =
1484 FilePath different_file =
1486 FilePath different_first_file =
1488 FilePath different_last_file =
1490 FilePath first1_file =
1492 FilePath first2_file =
1494 FilePath empty1_file =
1496 FilePath empty2_file =
1498 FilePath blank_line_file =
1500 FilePath blank_line_crlf_file =
1519 FilePath dir_name_from =
1525 FilePath file_name_from =
1531 FilePath dir_name_to = temp_dir_.path().Append(
1533 FilePath file_name_to =
1560 FilePath path;
1578 FilePath temp_files[3];
1591 FilePath names[3];
1615 FilePath temp_dir;
1616 ASSERT_TRUE(CreateNewTempDirectory(FilePath::StringType(), &temp_dir));
1622 FilePath new_dir;
1633 FilePath dir;
1639 FilePath test_root =
1642 FilePath test_path =
1645 FilePath test_path =
1669 ASSERT_TRUE(DirectoryExists(FilePath(FilePath::kCurrentDirectory)));
1670 FilePath top_level = test_root;
1679 FilePath(FilePath::kCurrentDirectory)));
1683 FilePath invalid_drive(FILE_PATH_LITERAL("o:\\"));
1684 FilePath invalid_path =
1694 FilePath test_root =
1701 FilePath test_path =
1726 FilePath dir1 = temp_dir_.path().Append(FPL("dir1"));
1728 FilePath dir2 = temp_dir_.path().Append(FPL("dir2"));
1730 FilePath dir2inner = dir2.Append(FPL("inner"));
1734 FilePath dir2file = dir2.Append(FPL("dir2file.txt"));
1736 FilePath dir2innerfile = dir2inner.Append(FPL("innerfile.txt"));
1738 FilePath file1 = temp_dir_.path().Append(FPL("file1.txt"));
1740 FilePath file2_rel = dir2.Append(FilePath::kParentDirectory)
1743 FilePath file2_abs = temp_dir_.path().Append(FPL("file2.txt"));
1823 FilePath inner2 = dir1.Append(FPL("inner"));
1861 FilePath data_dir =
1875 FilePath foobar(data_dir.Append(FILE_PATH_LITERAL("foobar.txt")));
1889 FilePath data_dir =
1898 FilePath foobar(data_dir.Append(FILE_PATH_LITERAL("foobar.txt")));
1924 FilePath empty_dir = temp_dir_.path().Append(FILE_PATH_LITERAL("EmptyDir"));
1932 FilePath foo(empty_dir.Append(FILE_PATH_LITERAL("foo.txt")));
1996 FilePath base_dir_;
1997 FilePath sub_dir_;
1998 FilePath text_file_;
2007 FilePath does_not_exist = base_dir_.AppendASCII("does")
2020 FilePath empty;
2035 FilePath file_link = base_dir_.AppendASCII("file_link");
2047 FilePath link_to_sub_dir = base_dir_.AppendASCII("link_to_sub_dir");
2051 FilePath file_path_with_link = link_to_sub_dir.AppendASCII("file.txt");
2310 FilePath data_dir;
2314 FilePath image_file = data_dir.Append(FILE_PATH_LITERAL("red.png"));
2321 FilePath path = file_util::InsertImageIntoMediaStore(image_file);
2339 FilePath path("content://foo.bar");