Home
last modified time | relevance | path

Searched refs:src_dir (Results 1 – 25 of 56) sorted by relevance

123

/third_party/skia/third_party/externals/zlib/google/
Dzip.cc53 explicit DirectFileAccessor(base::FilePath src_dir) : src_dir_(src_dir) {} in DirectFileAccessor() argument
103 ZipParams::ZipParams(const base::FilePath& src_dir, in ZipParams() argument
105 : src_dir_(src_dir), in ZipParams()
107 file_accessor_(new DirectFileAccessor(src_dir)) {} in ZipParams()
111 ZipParams::ZipParams(const base::FilePath& src_dir, int dest_fd) in ZipParams() argument
112 : src_dir_(src_dir), in ZipParams()
114 file_accessor_(new DirectFileAccessor(src_dir)) {} in ZipParams()
129 params.src_dir(), true /* is directory*/)); in Zip()
143 params.src_dir().AppendRelativePath(entry_path, &relative_path); in Zip()
161 params.dest_fd(), params.src_dir(), params.file_accessor()); in Zip()
[all …]
Dzip_unittest.cc253 base::FilePath src_dir = temp_dir.GetPath().AppendASCII("input"); in TestTimeStamp() local
256 base::FilePath src_file = src_dir.AppendASCII("test.txt"); in TestTimeStamp()
259 EXPECT_TRUE(base::CreateDirectory(src_dir)); in TestTimeStamp()
278 EXPECT_TRUE(zip::Zip(src_dir, zip_file, true)); in TestTimeStamp()
413 base::FilePath src_dir; in TEST_F() local
414 ASSERT_TRUE(GetTestDataDirectory(&src_dir)); in TEST_F()
415 src_dir = src_dir.AppendASCII("test"); in TEST_F()
421 EXPECT_TRUE(zip::Zip(src_dir, zip_file, /*include_hidden_files=*/true)); in TEST_F()
426 base::FilePath src_dir; in TEST_F() local
427 ASSERT_TRUE(GetTestDataDirectory(&src_dir)); in TEST_F()
[all …]
Dzip.h53 ZipParams(const base::FilePath& src_dir, const base::FilePath& dest_file);
56 ZipParams(const base::FilePath& src_dir, int dest_fd);
61 const base::FilePath& src_dir() const { return src_dir_; } in src_dir() function
129 bool ZipWithFilterCallback(const base::FilePath& src_dir,
136 bool Zip(const base::FilePath& src_dir, const base::FilePath& dest_file,
145 bool ZipFiles(const base::FilePath& src_dir,
/third_party/libfuse/test/
Dtest_examples.py130 src_dir = str(short_tmpdir.mkdir('src'))
153 work_dir = mnt_dir + src_dir
156 tst_readdir(src_dir, work_dir)
157 tst_readdir_big(src_dir, work_dir)
158 tst_open_read(src_dir, work_dir)
159 tst_open_write(src_dir, work_dir)
161 tst_passthrough(src_dir, work_dir)
162 tst_append(src_dir, work_dir)
163 tst_seek(src_dir, work_dir)
165 tst_rmdir(work_dir, src_dir)
[all …]
/third_party/node/deps/openssl/config/
Dgenerate_gypi.pl39 our $src_dir = "../openssl";
68 copy("$src_dir/configdata.pm", "$base_dir/") or die "Copy failed: $!";
76 move("$src_dir/include/crypto/bn_conf.h",
78 move("$src_dir/include/crypto/dso_conf.h",
81 copy("$src_dir/$buildinf",
83 move("$src_dir/$progs",
85 copy("$src_dir/apps/progs.c",
88 copy("$src_dir/providers/common/include/prov/der_dsa.h",
90 copy("$src_dir/providers/common/include/prov/der_wrap.h",
92 copy("$src_dir/providers/common/include/prov/der_rsa.h",
[all …]
/third_party/node/deps/zlib/google/
Dzip.cc49 explicit DirectFileAccessor(base::FilePath src_dir) in DirectFileAccessor() argument
50 : src_dir_(std::move(src_dir)) {} in DirectFileAccessor()
125 DirectFileAccessor default_accessor(params.src_dir); in Zip()
156 params->filter_callback.Run(params->src_dir.Append(path))); in Zip()
246 bool ZipWithFilterCallback(const base::FilePath& src_dir, in ZipWithFilterCallback() argument
249 DCHECK(base::DirectoryExists(src_dir)); in ZipWithFilterCallback()
250 return Zip({.src_dir = src_dir, in ZipWithFilterCallback()
255 bool Zip(const base::FilePath& src_dir, in Zip() argument
258 return Zip({.src_dir = src_dir, in Zip()
264 bool ZipFiles(const base::FilePath& src_dir, in ZipFiles() argument
[all …]
Dzip_unittest.cc329 base::FilePath src_dir = temp_dir.GetPath().AppendASCII("input"); in TestTimeStamp() local
332 base::FilePath src_file = src_dir.AppendASCII("test.txt"); in TestTimeStamp()
335 EXPECT_TRUE(base::CreateDirectory(src_dir)); in TestTimeStamp()
354 EXPECT_TRUE(zip::Zip(src_dir, zip_file, true)); in TestTimeStamp()
1011 base::FilePath src_dir = GetDataDirectory().AppendASCII("test"); in TEST_F() local
1017 EXPECT_TRUE(zip::Zip(src_dir, zip_file, /*include_hidden_files=*/true)); in TEST_F()
1022 base::FilePath src_dir = GetDataDirectory().AppendASCII("test"); in TEST_F() local
1028 EXPECT_TRUE(zip::Zip(src_dir, zip_file, /*include_hidden_files=*/false)); in TEST_F()
1033 base::FilePath src_dir = GetDataDirectory().AppendASCII("test"); in TEST_F() local
1040 base::CopyDirectory(src_dir, src_dir_russian, true); in TEST_F()
[all …]
Dzip.h92 base::FilePath src_dir; member
151 bool ZipWithFilterCallback(const base::FilePath& src_dir,
158 bool Zip(const base::FilePath& src_dir,
168 bool ZipFiles(const base::FilePath& src_dir,
/third_party/node/deps/v8/third_party/zlib/google/
Dzip.cc49 explicit DirectFileAccessor(base::FilePath src_dir) in DirectFileAccessor() argument
50 : src_dir_(std::move(src_dir)) {} in DirectFileAccessor()
125 DirectFileAccessor default_accessor(params.src_dir); in Zip()
156 params->filter_callback.Run(params->src_dir.Append(path))); in Zip()
243 bool ZipWithFilterCallback(const base::FilePath& src_dir, in ZipWithFilterCallback() argument
246 DCHECK(base::DirectoryExists(src_dir)); in ZipWithFilterCallback()
247 return Zip({.src_dir = src_dir, in ZipWithFilterCallback()
252 bool Zip(const base::FilePath& src_dir, in Zip() argument
255 return Zip({.src_dir = src_dir, in Zip()
261 bool ZipFiles(const base::FilePath& src_dir, in ZipFiles() argument
[all …]
Dzip_unittest.cc329 base::FilePath src_dir = temp_dir.GetPath().AppendASCII("input"); in TestTimeStamp() local
332 base::FilePath src_file = src_dir.AppendASCII("test.txt"); in TestTimeStamp()
335 EXPECT_TRUE(base::CreateDirectory(src_dir)); in TestTimeStamp()
354 EXPECT_TRUE(zip::Zip(src_dir, zip_file, true)); in TestTimeStamp()
1011 base::FilePath src_dir = GetDataDirectory().AppendASCII("test"); in TEST_F() local
1017 EXPECT_TRUE(zip::Zip(src_dir, zip_file, /*include_hidden_files=*/true)); in TEST_F()
1022 base::FilePath src_dir = GetDataDirectory().AppendASCII("test"); in TEST_F() local
1028 EXPECT_TRUE(zip::Zip(src_dir, zip_file, /*include_hidden_files=*/false)); in TEST_F()
1033 base::FilePath src_dir = GetDataDirectory().AppendASCII("test"); in TEST_F() local
1040 base::CopyDirectory(src_dir, src_dir_russian, true); in TEST_F()
[all …]
Dzip.h92 base::FilePath src_dir; member
151 bool ZipWithFilterCallback(const base::FilePath& src_dir,
158 bool Zip(const base::FilePath& src_dir,
168 bool ZipFiles(const base::FilePath& src_dir,
/third_party/python/Lib/test/
Dtest_shutil.py447 src_dir = self.mkdtemp()
449 self.addCleanup(shutil.rmtree, src_dir)
451 write_file((src_dir, 'test.txt'), '123')
452 os.mkdir(os.path.join(src_dir, 'test_dir'))
453 write_file((src_dir, 'test_dir', 'test.txt'), '456')
455 shutil.copytree(src_dir, dst_dir)
466 src_dir = self.mkdtemp()
468 self.addCleanup(shutil.rmtree, src_dir)
471 write_file((src_dir, 'nonexisting.txt'), '123')
472 os.mkdir(os.path.join(src_dir, 'existing_dir'))
[all …]
/third_party/gn/infra/recipes/
Dgn.py107 src_dir = api.path['start_dir'].join('gn')
112 api.step('init', ['git', 'init', src_dir])
114 with api.context(cwd=src_dir):
248 env=env, cwd=src_dir):
255 api.python('generate', src_dir.join('build', 'gen.py'), args=args)
260 src_dir.join('out')])
263 api.step('test', [src_dir.join('out', 'gn_unittests')])
273 api.cas.archive('upload binary to CAS', src_dir.join('out'),
274 src_dir.join('out', gn))
281 package_root=src_dir.join('out'),
[all …]
/third_party/musl/scripts/
Dsearch_source_files.py41 for src_dir in SRC_DIRS:
42 src_path = path + "/" + src_dir
46 if os.path.isdir(cur_path) and src_dir == "src":
56 for src_dir in SRC_DIRS:
57 if src_dir == "src":
58 src_list = os.listdir(path + "/" + src_dir)
60 cur_path = os.path.join(path + "/" + src_dir, src)
62 elif os.path.isdir(path + "/" + src_dir + "/" + arch):
63 src_path = path + "/" + src_dir + "/" + arch
/third_party/icu/icu4c/source/python/icutools/databuilder/
D__main__.py244 def __init__(self, src_dir): argument
245 self.src_dir = src_dir
248 absolute_paths = pyglob.glob(os.path.join(self.src_dir, pattern))
250 relative_paths = [v[len(self.src_dir)+1:] for v in sorted(absolute_paths)]
260 with pyio.open(os.path.join(self.src_dir, filename), "r", encoding="utf-8-sig") as f:
284 "SRC_DIR": args.src_dir,
285 "IN_DIR": args.src_dir,
296 sys.path.append(args.src_dir)
303 io = IO(args.src_dir)
/third_party/skia/third_party/externals/icu/source/python/icutools/databuilder/
D__main__.py244 def __init__(self, src_dir): argument
245 self.src_dir = src_dir
248 absolute_paths = pyglob.glob(os.path.join(self.src_dir, pattern))
250 relative_paths = [v[len(self.src_dir)+1:] for v in sorted(absolute_paths)]
260 with pyio.open(os.path.join(self.src_dir, filename), "r", encoding="utf-8-sig") as f:
284 "SRC_DIR": args.src_dir,
285 "IN_DIR": args.src_dir,
296 sys.path.append(args.src_dir)
303 io = IO(args.src_dir)
/third_party/ninja/misc/
Dwrite_fake_manifests.py53 def __init__(self, src_dir): argument
56 self.src_dir = src_dir
80 return [(os.path.join(self.src_dir, path, s + '.cc'),
108 def write_target_ninja(ninja, target, src_dir): argument
117 ninja.variable('includes', '-I' + src_dir)
226 def random_targets(num_targets, src_dir): argument
227 gen = GenRandom(src_dir)
256 src_dir = args.sources if do_write_sources else "src"
258 targets = random_targets(args.targets, src_dir)
261 write_target_ninja(n, target, src_dir)
/third_party/python/Lib/distutils/command/
Dbuild_py.py104 src_dir = self.get_package_dir(package)
111 if src_dir:
112 plen = len(src_dir)+1
116 file[plen:] for file in self.find_data_files(package, src_dir)
118 data.append((package, src_dir, build_dir, filenames))
121 def find_data_files(self, package, src_dir): argument
128 filelist = glob.glob(os.path.join(glob.escape(src_dir), convert_path(pattern)))
137 for package, src_dir, build_dir, filenames in self.data_files:
141 self.copy_file(os.path.join(src_dir, filename), target,
324 for package, src_dir, build_dir, filenames in self.data_files
/third_party/openh264/
Dcopy_to_wels_head.py20 def copy_file(src_dir, dst_dir): argument
30 src_file = os.path.join(src_dir, header)
43 print('copy from %s to %s', args.src_dir, args.dst_dir)
44 copy_file(args.src_dir, args.dst_dir)
/third_party/node/deps/v8/third_party/inspector_protocol/
Droll.py150 src_dir = upstream
152 print('Rolling %s into %s ...' % (src_dir, dest_dir))
153 src_files = set(FindFilesToSyncIn(src_dir))
159 os.path.join(src_dir, f), os.path.join(dest_dir, f)))]
171 contents = open(os.path.join(src_dir, f)).read()
180 shutil.copymode(os.path.join(src_dir, f), os.path.join(dest_dir, f))
/third_party/node/tools/inspector_protocol/
Droll.py118 src_dir = upstream
120 print('Rolling %s into %s ...' % (src_dir, dest_dir))
121 src_files = set(FindFilesToSyncIn(src_dir))
127 os.path.join(src_dir, f), os.path.join(dest_dir, f)))]
139 contents = open(os.path.join(src_dir, f)).read()
147 shutil.copymode(os.path.join(src_dir, f), os.path.join(dest_dir, f))
/third_party/skia/infra/bots/recipe_modules/docker/
Dapi.py32 …def run(self, name, docker_image, src_dir, out_dir, script, args=None, docker_args=None, copies=No… argument
56 self._chmod(src_dir, '755')
81 (src_dir, src_dir if match_directory_structure else MOUNT_SRC),
/third_party/skia/tools/skqp/
Dmake_skqp_model.cpp71 const char* src_dir = argv[1]; in main() local
74 SkOSFile::Iter iter(src_dir); in main()
77 name.prependf("%s/", src_dir); in main()
90 SkDebugf("Failure: '%s' '%s'\n", src_dir, dst_dir); in main()
/third_party/typescript/tests/ts_extra_tests/
Drun_ts_case.py106 def copy_directory(src_dir, target_dir): argument
109 shutil.copytree(src_dir, target_dir)
113 src_dir = os.path.join(work_dir, dir_name)
115 copy_directory(src_dir, target_dir)
/third_party/python/Tools/ssl/
Dmultissltests.py170 self.src_dir = os.path.join(args.base_directory, 'src')
172 self.src_dir, self.src_template.format(version))
175 self.src_dir, self.build_template.format(version))
247 src_dir = os.path.dirname(self.src_file)
248 if not os.path.isdir(src_dir):
249 os.makedirs(src_dir)

123