Home
last modified time | relevance | path

Searched refs:temp_path (Results 1 – 25 of 43) sorted by relevance

12

/external/chromium_org/chrome/browser/chromeos/drive/fileapi/
Dfileapi_worker_unittest.cc165 base::FilePath temp_path; in TEST_F() local
166 base::CreateTemporaryFile(&temp_path); in TEST_F()
169 TestFileSystemForOpenFile file_system(temp_path, CREATE_FILE); in TEST_F()
174 base::Bind(&VerifyWrite, kExpectedSize, temp_path, kWriteData), in TEST_F()
185 base::FilePath temp_path; in TEST_F() local
186 base::CreateTemporaryFile(&temp_path); in TEST_F()
187 google_apis::test_util::WriteStringToFile(temp_path, kInitialData); in TEST_F()
191 TestFileSystemForOpenFile file_system(temp_path, OPEN_OR_CREATE_FILE); in TEST_F()
196 base::Bind(&VerifyWrite, kExpectedSize, temp_path, kWriteData), in TEST_F()
207 base::FilePath temp_path; in TEST_F() local
[all …]
/external/chromium_org/content/browser/fileapi/
Dtransient_file_util_unittest.cc82 base::FilePath temp_path; in TEST_F() local
84 CreateAndRegisterTemporaryFile(&temp_url, &temp_path); in TEST_F()
92 ASSERT_TRUE(base::PathExists(temp_path)); in TEST_F()
93 ASSERT_FALSE(base::DirectoryExists(temp_path)); in TEST_F()
104 ASSERT_EQ(temp_path, path); in TEST_F()
108 ASSERT_TRUE(base::PathExists(temp_path)); in TEST_F()
112 ASSERT_EQ(temp_path, path); in TEST_F()
120 ASSERT_FALSE(base::PathExists(temp_path)); in TEST_F()
/external/chromium_org/third_party/webrtc/test/testsupport/
Dfileutils.cc74 std::string temp_path = path; in SetExecutablePath() local
78 temp_path = path.substr(working_dir.length() + 1); in SetExecutablePath()
84 std::replace(temp_path.begin(), temp_path.end(), '/', '\\'); in SetExecutablePath()
88 temp_path = temp_path.substr(0, temp_path.find_last_of(kPathDelimiter)); in SetExecutablePath()
89 strncpy(relative_dir_path, temp_path.c_str(), FILENAME_MAX); in SetExecutablePath()
/external/chromium_org/components/feedback/
Dfeedback_util.cc78 base::FilePath temp_path; in ZipString() local
83 if (!base::CreateNewTempDirectory(base::FilePath::StringType(), &temp_path)) in ZipString()
85 if (base::WriteFile(temp_path.Append(filename), data.c_str(), data.size()) == in ZipString()
90 zip::Zip(temp_path, zip_file, false) && in ZipString()
93 base::DeleteFile(temp_path, true); in ZipString()
/external/chromium_org/content/browser/loader/
Dresource_loader_unittest.cc486 base::FilePath temp_path() const { return temp_path_; } in temp_path() function in content::ResourceLoaderRedirectToFileTest
561 EXPECT_EQ(temp_path(), in TEST_F()
572 ASSERT_TRUE(base::ReadFileToString(temp_path(), &contents)); in TEST_F()
579 EXPECT_FALSE(base::PathExists(temp_path())); in TEST_F()
611 EXPECT_EQ(temp_path(), in TEST_F()
622 EXPECT_FALSE(base::PathExists(temp_path())); in TEST_F()
635 EXPECT_EQ(temp_path(), in TEST_F()
646 EXPECT_FALSE(base::PathExists(temp_path())); in TEST_F()
667 EXPECT_EQ(temp_path(), in TEST_F()
686 EXPECT_FALSE(base::PathExists(temp_path())); in TEST_F()
[all …]
/external/chromium_org/extensions/common/
Dfile_util.cc305 base::FilePath temp_path = extensions_dir.Append(kTempDirectoryName); in GetInstallTempDir() local
306 if (base::PathExists(temp_path)) { in GetInstallTempDir()
307 if (!base::DirectoryExists(temp_path)) { in GetInstallTempDir()
308 DLOG(WARNING) << "Not a directory: " << temp_path.value(); in GetInstallTempDir()
311 if (!base::PathIsWritable(temp_path)) { in GetInstallTempDir()
312 DLOG(WARNING) << "Can't write to path: " << temp_path.value(); in GetInstallTempDir()
316 return temp_path; in GetInstallTempDir()
320 if (!base::CreateDirectory(temp_path)) { in GetInstallTempDir()
321 DLOG(WARNING) << "Couldn't create directory: " << temp_path.value(); in GetInstallTempDir()
324 return temp_path; in GetInstallTempDir()
/external/chromium_org/chrome/installer/setup/
Dinstall_worker.cc128 const base::FilePath& temp_path, in AddInstallerCopyTasks() argument
140 temp_path.value(), WorkItem::ALWAYS); in AddInstallerCopyTasks()
148 setup_path.value(), active_setup_exe.value(), temp_path.value(), in AddInstallerCopyTasks()
165 if (temp_path.IsParent(archive_path)) { in AddInstallerCopyTasks()
168 temp_path.value(), in AddInstallerCopyTasks()
177 temp_path.value(), in AddInstallerCopyTasks()
435 const base::FilePath& temp_path, in AddDeleteUninstallShortcutsForMSIWorkItems() argument
467 uninstall_link, temp_path); in AddDeleteUninstallShortcutsForMSIWorkItems()
481 const base::FilePath& temp_path, in AddChromeWorkItems() argument
497 install_list->AddDeleteTreeWorkItem(old_archive, temp_path)-> in AddChromeWorkItems()
[all …]
Dsetup_main.cc235 installer::SelfCleaningTempDir temp_path; in RenameChromeExecutables() local
236 if (!temp_path.Initialize(target_path.DirName(), in RenameChromeExecutables()
247 temp_path.path().value(), in RenameChromeExecutables()
251 temp_path.path().value(), in RenameChromeExecutables()
253 install_list->AddDeleteTreeWorkItem(chrome_new_exe, temp_path.path()); in RenameChromeExecutables()
255 install_list->AddDeleteTreeWorkItem(chrome_old_exe, temp_path.path())-> in RenameChromeExecutables()
288 VLOG(1) << "Deleting temporary directory " << temp_path.path().value(); in RenameChromeExecutables()
622 installer::SelfCleaningTempDir* temp_path, in CreateTemporaryAndUnpackDirectories() argument
624 DCHECK(temp_path && unpack_path); in CreateTemporaryAndUnpackDirectories()
626 if (!temp_path->Initialize(installer_state.target_path().DirName(), in CreateTemporaryAndUnpackDirectories()
[all …]
Dinstall_worker.h88 const base::FilePath& temp_path,
108 const base::FilePath& temp_path,
/external/chromium_org/win8/delegate_execute/
Dcrash_server_init.cc70 wchar_t temp_path[MAX_PATH + 1] = {0}; in InitializeCrashReporting() local
71 DWORD path_len = ::GetTempPath(MAX_PATH, temp_path); in InitializeCrashReporting()
91 temp_path, NULL, NULL, NULL, in InitializeCrashReporting()
/external/chromium_org/content/browser/indexed_db/
Dindexed_db_internals_ui.cc214 base::FilePath temp_path = temp_dir.Take(); in DownloadOriginDataOnIndexedDBThread() local
218 temp_path.AppendASCII(origin_id).AddExtension(FILE_PATH_LITERAL("zip")); in DownloadOriginDataOnIndexedDBThread()
231 temp_path, in DownloadOriginDataOnIndexedDBThread()
272 const base::FilePath temp_path, in OnDownloadDataReady() argument
294 temp_path, in OnDownloadDataReady()
342 const base::FilePath& temp_path, in OnDownloadStarted() argument
353 item->AddObserver(new FileDeleter(temp_path)); in OnDownloadStarted()
Dindexed_db_internals_ui.h48 const base::FilePath temp_path,
53 const base::FilePath& temp_path,
/external/chromium_org/cloud_print/common/win/
Dinstall_utils.cc198 base::FilePath temp_path; in DeleteProgramDir() local
199 if (!base::CreateTemporaryFile(&temp_path)) in DeleteProgramDir()
201 base::CopyFile(installer_source, temp_path); in DeleteProgramDir()
202 base::DeleteFileAfterReboot(temp_path); in DeleteProgramDir()
203 CommandLine command_line(temp_path); in DeleteProgramDir()
/external/chromium_org/cloud_print/virtual_driver/win/install/
Dsetup.cc192 const base::FilePath* temp_path( in CabinetCallback()
203 temp_path->Append(kDependencyList[i]).value().c_str()); in CabinetCallback()
251 base::ScopedTempDir temp_path; in InstallDriver() local
252 if (!temp_path.CreateUniqueTempDir()) in InstallDriver()
254 ReadyDriverDependencies(temp_path.path()); in InstallDriver()
259 base::FilePath file_path = temp_path.path().Append(kDependencyList[i]); in InstallDriver()
268 base::FilePath xps_path = temp_path.path().Append(kDriverName); in InstallDriver()
269 base::FilePath ui_path = temp_path.path().Append(kUiDriverName); in InstallDriver()
270 base::FilePath ui_help_path = temp_path.path().Append(kHelpName); in InstallDriver()
/external/chromium_org/chrome/utility/media_galleries/
Dpmp_column_reader_unittest.cc28 base::FilePath temp_path; in InitColumnReaderFromBytes() local
29 if (!base::CreateTemporaryFileInDir(temp_dir.path(), &temp_path)) in InitColumnReaderFromBytes()
33 size_t bytes_written = base::WriteFile(temp_path, &data[0], data.size()); in InitColumnReaderFromBytes()
37 base::File file(temp_path, base::File::FLAG_OPEN | base::File::FLAG_READ); in InitColumnReaderFromBytes()
/external/chromium_org/chrome/installer/util/
Dwork_item_list.cc136 const base::FilePath& temp_path, in AddDeleteTreeWorkItem() argument
138 WorkItem* item = WorkItem::CreateDeleteTreeWorkItem(root_path, temp_path, in AddDeleteTreeWorkItem()
145 const base::FilePath& temp_path) { in AddDeleteTreeWorkItem() argument
147 return AddDeleteTreeWorkItem(root_path, temp_path, no_key_files); in AddDeleteTreeWorkItem()
Dwork_item_list.h83 const base::FilePath& temp_path,
88 const base::FilePath& temp_path);
Dwork_item.cc73 const base::FilePath& temp_path, in CreateDeleteTreeWorkItem() argument
75 return new DeleteTreeWorkItem(root_path, temp_path, key_paths); in CreateDeleteTreeWorkItem()
Ddelete_tree_work_item.cc32 const base::FilePath& temp_path, in DeleteTreeWorkItem() argument
35 temp_path_(temp_path), in DeleteTreeWorkItem()
/external/chromium_org/content/shell/browser/
Dshell_browser_main.cc193 base::FilePath temp_path; in ShellBrowserMain() local
194 base::GetTempDir(&temp_path); in ShellBrowserMain()
195 test_controller.SetTempPath(temp_path); in ShellBrowserMain()
/external/chromium_org/third_party/libjingle/source/talk/media/base/
Dfilemediaengine_unittest.cc148 talk_base::Pathname temp_path; in GetTempFilename() local
149 if (!talk_base::Filesystem::GetTemporaryFolder(temp_path, true, NULL)) { in GetTempFilename()
152 temp_path.SetPathname( in GetTempFilename()
153 talk_base::Filesystem::TempFilename(temp_path, "fme-test-")); in GetTempFilename()
156 *filename = temp_path.pathname(); in GetTempFilename()
/external/chromium_org/content/shell/common/
Dshell_test_configuration.h24 base::FilePath temp_path; member
/external/chromium_org/chrome/browser/sync_file_system/local/
Dsyncable_file_operation_runner_unittest.cc355 base::FilePath temp_path; in TEST_F() local
356 ASSERT_TRUE(CreateTempFile(&temp_path)); in TEST_F()
359 temp_path, kTestData.data(), kTestData.size())); in TEST_F()
367 temp_path, URL(kFile), in TEST_F()
/external/chromium_org/ppapi/tests/
Dtest_broker.cc144 wchar_t temp_path[MAX_PATH] = {'\0'}; in VerifyIsUnsandboxed() local
146 if (!::GetTempPath(MAX_PATH, temp_path) || in VerifyIsUnsandboxed()
147 !::GetTempFileName(temp_path, L"test_pepper_broker", 0, file_name) || in VerifyIsUnsandboxed()
/external/chromium_org/third_party/webrtc/base/
Dwin32regkey_unittest.cc557 wchar_t temp_path[MAX_PATH] = {0}; in TEST() local
558 EXPECT_LT(::GetTempPath(ARRAY_SIZE(temp_path), temp_path), in TEST()
559 static_cast<DWORD>(ARRAY_SIZE(temp_path))); in TEST()
561 EXPECT_NE(::GetTempFileName(temp_path, L"rkut_", in TEST()

12