Lines Matching refs:FilePath

37 #define FP(path) base::FilePath(FILE_PATH_LITERAL(path))
44 std::vector<std::string> GetRelativePaths(const base::FilePath& dir,
48 for (base::FilePath path = files.Next(); !path.empty(); path = files.Next()) {
49 base::FilePath relative;
59 base::FilePath* file_path,
125 base::FilePath test_dir;
126 base::FilePath foo_txt_path = test_dir.AppendASCII("foo.txt");
128 base::FilePath file_path;
134 base::FilePath bar_dir = test_dir.AppendASCII("bar");
135 base::FilePath bar1_txt_path = bar_dir.AppendASCII("bar1.txt");
140 base::FilePath bar2_txt_path = bar_dir.AppendASCII("bar2.txt");
145 file_tree_[base::FilePath()] = {{foo_txt_path}, {bar_dir}};
163 for (const base::FilePath& path : paths) {
176 bool List(const base::FilePath& path,
177 std::vector<base::FilePath>* const files,
178 std::vector<base::FilePath>* const subdirs) override {
187 for (const base::FilePath& file : it->second.files) {
192 for (const base::FilePath& subdir : it->second.subdirs) {
200 bool GetInfo(const base::FilePath& path, Info* const info) override {
215 std::vector<base::FilePath> files, subdirs;
218 std::unordered_map<base::FilePath, DirContents> file_tree_;
219 std::unordered_map<base::FilePath, base::File> files_;
238 base::FilePath zip_path(test_dir_);
257 static base::FilePath GetDataDirectory() {
258 base::FilePath path;
269 void TestUnzipFile(const base::FilePath::StringType& filename,
274 void TestUnzipFile(const base::FilePath& path, bool expect_hidden_files) {
278 base::FilePath original_dir = GetDataDirectory().AppendASCII("test");
285 for (base::FilePath unzipped_entry_path = files.Next();
294 base::FilePath relative_path;
299 base::FilePath original_path = original_dir.Append(relative_path);
308 for (const base::FilePath& path : zip_contents_) {
328 base::FilePath zip_file = temp_dir.GetPath().AppendASCII("out.zip");
329 base::FilePath src_dir = temp_dir.GetPath().AppendASCII("input");
330 base::FilePath out_dir = temp_dir.GetPath().AppendASCII("output");
332 base::FilePath src_file = src_dir.AppendASCII("test.txt");
333 base::FilePath out_file = out_dir.AppendASCII("test.txt");
370 base::FilePath test_dir_;
375 std::unordered_set<base::FilePath> zip_contents_;
378 std::vector<base::FilePath> zip_file_list_;
401 base::FilePath path = GetDataDirectory().AppendASCII("evil.zip");
405 base::FilePath output_dir = test_dir_.AppendASCII("out");
413 base::FilePath path =
416 base::FilePath output_dir = test_dir_.AppendASCII("out");
419 output_dir.Append(base::FilePath::FromUTF8Unsafe(".�.�evil.txt"))));
424 auto filter = base::BindRepeating([](const base::FilePath& path) {
440 auto filter = base::BindRepeating([](const base::FilePath& path) {
460 auto filter = base::BindRepeating([](const base::FilePath& path) {
481 auto filter = base::BindRepeating([](const base::FilePath& path) {
901 base::BindLambdaForTesting([this](const base::FilePath& entry_path) {
905 base::BindLambdaForTesting([this](const base::FilePath& entry_path)
914 base::FilePath dir = test_dir_;
915 base::FilePath dir_foo = dir.AppendASCII("foo");
916 base::FilePath dir_foo_bar = dir_foo.AppendASCII("bar");
928 base::BindLambdaForTesting([this](const base::FilePath& entry_path) {
934 base::BindLambdaForTesting([](const base::FilePath& entry_path) {
942 base::FilePath dir = test_dir_;
943 base::FilePath dir_foo = dir.AppendASCII("foo");
944 base::FilePath dir_foo_bar = dir_foo.AppendASCII("bar");
960 const base::FilePath dir =
961 test_dir_.Append(base::FilePath::FromUTF8Unsafe("新しいフォルダ"));
966 dir.Append(base::FilePath::FromUTF8Unsafe("SJIS_835C_ソ.txt")),
973 ASSERT_TRUE(base::ReadFileToString(dir.Append(base::FilePath::FromUTF8Unsafe(
989 test_dir_.Append(base::FilePath::FromUTF8Unsafe("新しいフォルダ"))));
991 const base::FilePath dir =
992 test_dir_.Append(base::FilePath::FromUTF8Unsafe("�V�����t�H���_"));
997 dir.Append(base::FilePath::FromUTF8Unsafe("SJIS_835C_��.txt")),
1004 ASSERT_TRUE(base::ReadFileToString(dir.Append(base::FilePath::FromUTF8Unsafe(
1011 base::FilePath src_dir = GetDataDirectory().AppendASCII("test");
1015 base::FilePath zip_file = temp_dir.GetPath().AppendASCII("out.zip");
1022 base::FilePath src_dir = GetDataDirectory().AppendASCII("test");
1026 base::FilePath zip_file = temp_dir.GetPath().AppendASCII("out.zip");
1033 base::FilePath src_dir = GetDataDirectory().AppendASCII("test");
1038 base::FilePath src_dir_russian = temp_dir.GetPath().Append(
1039 base::FilePath::FromUTF8Unsafe("\xD0\xA2\xD0\xB5\xD1\x81\xD1\x82"));
1041 base::FilePath zip_file = temp_dir.GetPath().AppendASCII("out_russian.zip");
1071 base::FilePath src_dir = GetDataDirectory().AppendASCII("test");
1075 base::FilePath zip_name = temp_dir.GetPath().AppendASCII("out.zip");
1100 base::FilePath test_zip_file =
1105 const base::FilePath& temp_dir = scoped_temp_dir.GetPath();
1112 base::FilePath file_path =
1121 base::FilePath zip_file;
1130 const base::FilePath& temp_dir = scoped_temp_dir.GetPath();
1132 base::FilePath bar_dir = temp_dir.AppendASCII("bar");
1148 base::FilePath src_dir = GetDataDirectory().AppendASCII("test");
1152 base::FilePath zip_file = temp_dir.GetPath().AppendASCII("out.zip");
1185 base::FilePath src_dir = GetDataDirectory().AppendASCII("test");
1189 base::FilePath zip_file = temp_dir.GetPath().AppendASCII("out.zip");
1224 base::FilePath src_dir = GetDataDirectory().AppendASCII("test");
1228 base::FilePath zip_file = temp_dir.GetPath().AppendASCII("out.zip");
1289 const base::FilePath src_dir = temp_dir.GetPath().AppendASCII("input");
1300 const base::FilePath dest_file = temp_dir.GetPath().AppendASCII("dest.zip");
1319 const base::FilePath src_dir = temp_dir.GetPath().AppendASCII("input");
1333 const base::FilePath dest_file = temp_dir.GetPath().AppendASCII("dest.zip");
1372 const base::FilePath src_dir = temp_dir.GetPath().AppendASCII("input");
1379 const base::FilePath src_file = src_dir.AppendASCII("src.zip");
1387 const base::FilePath dest_file = temp_dir.GetPath().AppendASCII("dest.zip");