Home
last modified time | relevance | path

Searched refs:src_path (Results 1 – 25 of 54) sorted by relevance

123

/external/chromium_org/chrome/browser/chromeos/drive/file_system/
Dmove_operation_unittest.cc29 const base::FilePath src_path( in TEST_F() local
35 ASSERT_EQ(FILE_ERROR_OK, GetLocalResourceEntry(src_path, &src_entry)); in TEST_F()
40 operation_->Move(src_path, in TEST_F()
49 EXPECT_EQ(FILE_ERROR_NOT_FOUND, GetLocalResourceEntry(src_path, &src_entry)); in TEST_F()
52 EXPECT_TRUE(delegate()->get_changed_files().count(src_path)); in TEST_F()
60 base::FilePath src_path(FILE_PATH_LITERAL("drive/root/File 1.txt")); in TEST_F() local
65 ASSERT_EQ(FILE_ERROR_OK, GetLocalResourceEntry(src_path, &src_entry)); in TEST_F()
70 operation_->Move(src_path, in TEST_F()
79 EXPECT_EQ(FILE_ERROR_NOT_FOUND, GetLocalResourceEntry(src_path, &src_entry)); in TEST_F()
82 EXPECT_TRUE(delegate()->get_changed_files().count(src_path)); in TEST_F()
[all …]
Dcopy_operation_unittest.cc226 base::FilePath src_path(FILE_PATH_LITERAL("drive/root/Dummy file.txt")); in TEST_F() local
230 ASSERT_EQ(FILE_ERROR_NOT_FOUND, GetLocalResourceEntry(src_path, &entry)); in TEST_F()
233 operation_->Copy(src_path, in TEST_F()
240 EXPECT_EQ(FILE_ERROR_NOT_FOUND, GetLocalResourceEntry(src_path, &entry)); in TEST_F()
246 base::FilePath src_path(FILE_PATH_LITERAL("drive/root/File 1.txt")); in TEST_F() local
250 ASSERT_EQ(FILE_ERROR_OK, GetLocalResourceEntry(src_path, &entry)); in TEST_F()
255 operation_->Copy(src_path, in TEST_F()
262 EXPECT_EQ(FILE_ERROR_OK, GetLocalResourceEntry(src_path, &entry)); in TEST_F()
270 base::FilePath src_path(FILE_PATH_LITERAL( in TEST_F() local
276 ASSERT_EQ(FILE_ERROR_OK, GetLocalResourceEntry(src_path, &entry)); in TEST_F()
[all …]
Dmove_operation.cc22 const base::FilePath& src_path, in UpdateLocalState() argument
27 FileError error = metadata->GetResourceEntryByPath(src_path, &entry); in UpdateLocalState()
41 changed_files->Update(src_path, entry, FileChange::DELETE); in UpdateLocalState()
/external/chromium_org/tools/telemetry/telemetry/util/
Dbootstrap.py71 def Traverse(self, src_path, dst_path): argument
81 if self.IsFile(src_path):
88 logging.info('Saving %s to %s', self.root_url + src_path, dst_path)
89 urllib.urlretrieve(self.root_url + src_path, dst_path)
92 for subdir in self.GetDirList(src_path):
93 self.Traverse(os.path.join(src_path, subdir),
151 for dst_path, src_path in deps.iteritems():
153 parsed_url = urlparse.urlparse(src_path)
/external/chromium_org/extensions/common/
Dextension_l10n_util_unittest.cc35 base::FilePath src_path = temp.path().Append(kLocaleFolder); in TEST() local
36 base::FilePath locale = src_path.AppendASCII("ms"); in TEST()
57 base::FilePath src_path = temp.path().Append(kLocaleFolder); in TEST() local
58 ASSERT_TRUE(base::CreateDirectory(src_path)); in TEST()
63 extension_l10n_util::GetValidLocales(src_path, &locales, &error)); in TEST()
72 base::FilePath src_path = temp.path().Append(kLocaleFolder); in TEST() local
73 ASSERT_TRUE(base::CreateDirectory(src_path)); in TEST()
74 ASSERT_TRUE(base::CreateDirectory(src_path.AppendASCII("sr"))); in TEST()
79 extension_l10n_util::GetValidLocales(src_path, &locales, &error)); in TEST()
88 base::FilePath src_path = temp.path().Append(kLocaleFolder); in TEST() local
[all …]
Dfile_util_unittest.cc145 base::FilePath src_path = temp.path().AppendASCII("some_dir"); in TEST_F() local
146 ASSERT_TRUE(base::CreateDirectory(src_path)); in TEST_F()
150 src_path.AppendASCII("some_file.txt"), data.c_str(), data.length())); in TEST_F()
163 base::FilePath src_path = temp.path().Append(folders[i]); in TEST_F() local
164 ASSERT_TRUE(base::CreateDirectory(src_path)); in TEST_F()
175 base::FilePath src_path = temp.path().Append(extensions::kLocaleFolder); in TEST_F() local
176 ASSERT_TRUE(base::CreateDirectory(src_path)); in TEST_F()
178 src_path = temp.path().AppendASCII("_some_dir"); in TEST_F()
179 ASSERT_TRUE(base::CreateDirectory(src_path)); in TEST_F()
310 base::FilePath src_path = temp.path().AppendASCII("some_dir"); in TEST_F() local
[all …]
/external/lldb/source/Host/common/
DFileSpec.cpp76 FileSpec::ResolveUsername (const char *src_path, char *dst_path, size_t dst_len) in ResolveUsername() argument
78 if (src_path == NULL || src_path[0] == '\0') in ResolveUsername()
88 if (src_path[0] != '~') in ResolveUsername()
90 size_t len = strlen (src_path); in ResolveUsername()
93 ::bcopy (src_path, dst_path, dst_len - 1); in ResolveUsername()
97 ::bcopy (src_path, dst_path, len + 1); in ResolveUsername()
102 const char *first_slash = ::strchr (src_path, '/'); in ResolveUsername()
108 user_name = src_path + 1; in ResolveUsername()
113 size_t user_name_len = first_slash - src_path - 1; in ResolveUsername()
114 ::memcpy (user_home, src_path + 1, user_name_len); in ResolveUsername()
[all …]
/external/chromium_org/tools/json_schema_compiler/
Dcompiler.py69 src_path = None
83 if src_path is None:
84 src_path = namespace.source_file_dir
86 src_path = os.path.commonprefix((src_path, namespace.source_file_dir))
101 src_path,
137 output_dir = os.path.join(destdir, src_path)
/external/chromium_org/build/
Dhost_prebuilt_jar.gypi26 'src_path': '<(jar_path)',
38 'message': 'Copy <(src_path) to <(dest_path)',
40 '<(src_path)',
46 'python', '<(DEPTH)/build/cp.py', '<(src_path)', '<(dest_path)',
/external/owasp/sanitizer/tools/
Dcut_release.py100 def copy_directory_structure_template(src_path, container_path): argument
103 replace_fields(os.path.basename(src_path)))
104 if os.path.isdir(src_path):
106 for child in os.listdir(src_path):
110 os.path.join(src_path, child), dest_path)
112 shutil.copyfile(src_path, dest_path)
/external/chromium_org/chrome/browser/media_galleries/fileapi/
Dmedia_file_validator_factory.cc48 base::FilePath src_path = src.virtual_path(); in CreateCopyOrMoveFileValidator() local
49 if (SupportedImageTypeValidator::SupportsFileType(src_path)) in CreateCopyOrMoveFileValidator()
51 if (SupportedAudioVideoChecker::SupportsFileType(src_path)) in CreateCopyOrMoveFileValidator()
Dmedia_file_validator_browsertest.cc107 base::FilePath src_path = base.AppendASCII("src_fs"); in SetupOnFileThread() local
108 ASSERT_TRUE(base::CreateDirectory(src_path)); in SetupOnFileThread()
112 base::MessageLoopProxy::current().get(), src_path)); in SetupOnFileThread()
125 base::FilePath test_file = src_path.AppendASCII(filename); in SetupOnFileThread()
/external/chromium_org/chrome/test/chromeos/autotest/files/client/deps/chrome_test/
Dsetup_test_links.sh39 for src_path in $@; do
40 [[ "$src_path" == "/usr/local/autotest/deps/pyauto_dep"/* ]] || return
43 [ -e "$dest_path" ] || ln -f -s $src_path $dest_path
/external/chromium_org/chrome/installer/util/
Dduplicate_tree_detector.cc14 bool IsIdenticalFileHierarchy(const base::FilePath& src_path, in IsIdenticalFileHierarchy() argument
20 if (base::GetFileInfo(src_path, &src_info) && in IsIdenticalFileHierarchy()
38 base::FileEnumerator path_enum(src_path, false /* not recursive */, in IsIdenticalFileHierarchy()
/external/chromium_org/native_client_sdk/src/libraries/nacl_io/memfs/
Dmem_fs.cc169 Error MemFs::Rename(const Path& src_path, const Path& target_path) { in Rename() argument
174 int error = FindNode(src_path, 0, &src_node); in Rename()
179 error = FindNode(src_path.Parent(), S_IFDIR, &src_parent); in Rename()
206 target_name = src_path.Basename(); in Rename()
221 error = src_parent->RemoveChild(src_path.Basename()); in Rename()
/external/chromium_org/chrome/installer/setup/
Dinstall.cc177 const base::FilePath& src_path, in InstallNewVersion() argument
192 src_path, in InstallNewVersion()
292 bool CreateVisualElementsManifest(const base::FilePath& src_path, in CreateVisualElementsManifest() argument
301 if (!base::PathExists(src_path.Append(elements_dir))) { in CreateVisualElementsManifest()
303 << installer::kVisualElementsManifest << " to " << src_path.value(); in CreateVisualElementsManifest()
341 src_path.Append(installer::kVisualElementsManifest), in CreateVisualElementsManifest()
344 << " to " << src_path.value(); in CreateVisualElementsManifest()
348 << " to " << src_path.value(); in CreateVisualElementsManifest()
492 const base::FilePath& src_path, in InstallOrUpdateProduct() argument
510 CreateVisualElementsManifest(src_path, new_version); in InstallOrUpdateProduct()
[all …]
Dinstall.h60 bool CreateVisualElementsManifest(const base::FilePath& src_path,
114 const base::FilePath& src_path,
/external/chromium_org/gpu/gles2_conform_support/
Dgles2_conform_test.cc27 base::FilePath src_path; in RunGLES2ConformTest() local
28 PathService::Get(base::DIR_SOURCE_ROOT, &src_path); in RunGLES2ConformTest()
30 src_path.Append(FILE_PATH_LITERAL("gpu")). in RunGLES2ConformTest()
/external/libcxx/test/
Druntests.py45 self.src_path = re.sub(r'\.pass\.cpp', '', path)
46 self.name = '{0}'.format(self.src_path)
57 self.src_path = re.sub(r'\.pass\.cpp', '', path)
58 self.name = '{0}'.format(self.src_path)
/external/chromium_org/storage/browser/fileapi/
Dnative_file_util.cc244 const base::FilePath& src_path, in CopyOrMoveFile() argument
249 base::File::Error error = NativeFileUtil::GetFileInfo(src_path, &info); in CopyOrMoveFile()
272 if (!base::CopyFile(src_path, dest_path)) in CopyOrMoveFile()
276 if (!CopyFileAndSync(src_path, dest_path)) in CopyOrMoveFile()
280 if (!base::Move(src_path, dest_path)) in CopyOrMoveFile()
/external/chromium_org/tools/telemetry/telemetry/core/platform/power_monitor/
Dpowermetrics_power_monitor.py96 def ConstructMetric(out_path, src_path): argument
99 return RunningAverage(out_path, src_path, [])
121 for k in metric.src_path:
/external/chromium_org/third_party/WebKit/Source/devtools/scripts/compiler-runner/
Dbuild_compiler_runner_jar.py23 src_path = rel_to_abs(src_dir) variable
37 for root, dirs, files in sorted(os.walk(src_path)):
/external/chromium_org/third_party/closure_compiler/runner/
Dbuild_runner_jar.py26 src_path = rel_to_abs(src_dir) variable
41 for root, dirs, files in sorted(os.walk(src_path)):
/external/chromium_org/chrome/browser/chromeos/drive/fileapi/
Dasync_file_util.cc290 base::FilePath src_path = util::ExtractDrivePathFromFileSystemUrl(src_url); in CopyFileLocal() local
292 if (src_path.empty() || dest_path.empty()) { in CopyFileLocal()
307 src_path, in CopyFileLocal()
322 base::FilePath src_path = util::ExtractDrivePathFromFileSystemUrl(src_url); in MoveFileLocal() local
324 if (src_path.empty() || dest_path.empty()) { in MoveFileLocal()
335 src_path, dest_path, in MoveFileLocal()
/external/chromium_org/chrome/browser/chromeos/drive/
Dfile_cache_unittest.cc76 const base::FilePath src_path = in TEST_F() local
83 EXPECT_EQ(FILE_ERROR_OK, cache_->Store("id_foo", "md5", src_path, in TEST_F()
89 ASSERT_TRUE(base::CopyFile(src_path, file_directory.AppendASCII("id_bar"))); in TEST_F()
90 ASSERT_TRUE(base::CopyFile(src_path, file_directory.AppendASCII("id_baz"))); in TEST_F()
108 src_path, in TEST_F()
111 src_path, in TEST_F()
115 src_path, in TEST_F()
118 src_path, in TEST_F()

123