Searched refs:file_util (Results 76 - 100 of 336) sorted by relevance

1234567891011>>

/external/chromium/chrome/browser/extensions/
H A Dfile_reader.cc7 #include "base/file_util.h"
29 bool success = file_util::ReadFileToString(resource_.GetFilePath(), &data);
H A Dautoupdate_interceptor.cc7 #include "base/file_util.h"
65 EXPECT_TRUE(file_util::ReadFileToString(i->second, &contents));
80 EXPECT_TRUE(file_util::PathExists(path));
/external/chromium/chrome/browser/history/
H A Dhistory_unittest_base.cc20 ASSERT_TRUE(file_util::ReadFileToString(sql_path, &sql));
/external/chromium/chrome/browser/net/
H A Dnet_log_logger.cc9 #include "base/file_util.h"
18 file_.Set(file_util::OpenFile(log_path, "w"));
H A Durl_fixer_upper_unittest.cc8 #include "base/file_util.h"
188 return file_util::WriteFile(*full_path, "", 0) == 0;
404 EXPECT_TRUE(file_util::Delete(original, false));
412 ASSERT_TRUE(file_util::AbsolutePath(&full_path));
430 EXPECT_TRUE(file_util::Delete(full_path, false));
447 file_util::CreateDirectory(new_dir);
449 ASSERT_TRUE(file_util::AbsolutePath(&full_path));
472 EXPECT_TRUE(file_util::Delete(full_path, false));
473 EXPECT_TRUE(file_util::Delete(new_dir, true));
/external/chromium/chrome/browser/parsers/
H A Dmetadata_parser_manager.cc8 #include "base/file_util.h"
42 amount_read = file_util::ReadFile(path, buffer, sizeof(buffer));
/external/chromium/chrome/common/
H A Dchrome_paths_unittest.cc10 #include "base/file_util.h"
25 FilePath homedir = file_util::GetHomeDir();
/external/chromium/chrome/common/extensions/
H A Dextension_l10n_util_unittest.cc6 #include "base/file_util.h"
30 ASSERT_TRUE(file_util::CreateDirectory(src_path));
46 ASSERT_TRUE(file_util::CreateDirectory(src_path));
47 ASSERT_TRUE(file_util::CreateDirectory(src_path.AppendASCII("sr")));
63 ASSERT_TRUE(file_util::CreateDirectory(src_path));
66 ASSERT_TRUE(file_util::CreateDirectory(locale_1));
68 ASSERT_TRUE(file_util::WriteFile(
72 ASSERT_TRUE(file_util::CreateDirectory(src_path.AppendASCII("xxx_yyy")));
136 ASSERT_TRUE(file_util::CreateDirectory(src_path));
155 ASSERT_TRUE(file_util
[all...]
/external/chromium/net/base/
H A Dcert_test_util.cc8 #include "base/file_util.h"
29 if (!file_util::ReadFileToString(cert_path, &cert_data))
H A Dtest_root_certs.cc10 #include "base/file_util.h"
26 if (!file_util::ReadFileToString(filename, &raw_cert)) {
/external/chromium/net/disk_cache/
H A Ddisk_cache_test_util.cc8 #include "base/file_util.h"
25 if (!file_util::PathExists(path))
26 file_util::CreateDirectory(path);
92 return file_util::CopyDirectory(path, dest, false);
120 file_util::Delete(path(), true);
H A Ddisk_cache_perftest.cc9 #include "base/file_util.h"
188 ASSERT_TRUE(file_util::EvictFileFromSystemCache(
190 ASSERT_TRUE(file_util::EvictFileFromSystemCache(
192 ASSERT_TRUE(file_util::EvictFileFromSystemCache(
194 ASSERT_TRUE(file_util::EvictFileFromSystemCache(
196 ASSERT_TRUE(file_util::EvictFileFromSystemCache(
/external/chromium/webkit/glue/
H A Diframe_redirect_unittest.cc7 #include "base/file_util.h"
32 ASSERT_TRUE(file_util::PathExists(iframes_data_dir_));
/external/chromium/base/
H A Dsync_socket_posix.cc14 #include "base/file_util.h"
93 int len = file_util::WriteFileDescriptor(handle_, charbuffer, length);
100 if (file_util::ReadFromFD(handle_, charbuffer, length)) {
/external/chromium/chrome/browser/first_run/
H A Dupgrade_util_win.cc14 #include "base/file_util.h"
75 return file_util::PathExists(new_chrome_exe);
82 if (!file_util::PathExists(new_chrome_exe))
/external/chromium/chrome/browser/
H A Dspellcheck_host_impl.cc9 #include "base/file_util.h"
155 if (!file_util::PathExists(bdict_file_path_) &&
156 file_util::PathExists(fallback)) {
190 file_util::ReadFileToString(custom_dictionary_file_, &contents);
246 FILE* f = file_util::OpenFile(custom_dictionary_file_, "a+");
249 file_util::CloseFile(f);
298 file_util::WriteFile(bdict_file_path_, data_.data(), data_.length());
304 file_util::WriteFile(GetFallbackFilePath(bdict_file_path_),
313 file_util::Delete(bdict_file_path_, false);
H A Dtransport_security_persister.cc8 #include "base/file_util.h"
41 if (!file_util::ReadFileToString(state_file_, &state))
95 file_util::WriteFile(state_file_, state.data(), state.size());
/external/chromium/chrome/browser/sync/
H A Dprofile_sync_service_unittest.cc5 #include "base/file_util.h"
348 ASSERT_TRUE(file_util::CreateDirectory(temp_directory));
350 file_util::WriteFile(sync_file1, nonsense1, strlen(nonsense1)));
352 file_util::WriteFile(sync_file2, nonsense2, strlen(nonsense2)));
354 file_util::WriteFile(sync_file3, nonsense3, strlen(nonsense3)));
369 ASSERT_FALSE(file_util::PathExists(sync_file3));
370 ASSERT_FALSE(file_util::PathExists(sync_file1));
373 ASSERT_TRUE(file_util::PathExists(sync_file2));
375 ASSERT_TRUE(file_util::ReadFileToString(sync_file2, &file2text));
/external/chromium/chrome/browser/ui/webui/
H A Dscreenshot_source.cc7 #include "base/file_util.h"
40 if (!file_util::GetFileSize(file, &file_size)) {
49 if (!(bytes_read = file_util::ReadFile(file,
/external/chromium/chrome/browser/chromeos/
H A Dboot_times_loader.cc11 #include "base/file_util.h"
114 if (file_util::ReadFileToString(log_file, &contents)) {
139 if (file_util::PathExists(sent))
168 file_util::WriteFile(sent, boot_times_text.data(), boot_times_text.size());
169 DCHECK(file_util::PathExists(sent));
188 if (!file_util::PathExists(log_file)) {
222 // TODO(satorux): Move this to file_util.
226 FILE* file = file_util::OpenFile(file_path, "a");
231 file_util::CloseFile(file);
298 file_util
[all...]
/external/chromium/chrome/browser/safe_browsing/
H A Dprefix_set_unittest.cc9 #include "base/file_util.h"
132 ASSERT_TRUE(file_util::GetFileSize(filename, &size_64));
134 file_util::ScopedFILE file(file_util::OpenFile(filename, "r+b"));
140 ASSERT_TRUE(file_util::GetFileSize(filename, &new_size_64));
326 file_util::ScopedFILE file(file_util::OpenFile(filename, "r+b"));
335 file.reset(file_util::OpenFile(filename, "r+b"));
396 file_util::ScopedFILE file(file_util
[all...]
/external/chromium/chrome/browser/diagnostics/
H A Drecon_diagnostics.cc9 #include "base/file_util.h"
235 if (!file_util::PathExists(dir_or_file)) {
243 dir_or_file_size = file_util::ComputeDirectorySize(dir_or_file);
245 file_util::GetFileSize(dir_or_file, &dir_or_file_size);
268 if (!file_util::PathIsWritable(dir_or_file)) {
324 if (!file_util::PathExists(path_)) {
329 if (!file_util::GetFileSize(path_, &file_size)) {
340 if (!file_util::ReadFileToString(path_, &json_data)) {
/external/chromium/net/tools/dump_cache/
H A Ddump_files.cc13 #include "base/file_util.h"
147 file_util::AppendToPath(&index_name, kIndexName);
269 file_util::AppendToPath(&index_name, kIndexName);
276 file_util::AppendToPath(&data_name, L"data_0");
281 file_util::AppendToPath(&data_name, L"data_1");
291 file_util::AppendToPath(&index_name, kIndexName);
296 file_util::FileEnumerator iter(FilePath(input_path), false,
297 file_util::FileEnumerator::FILES, pattern);
/external/chromium/chrome/browser/web_applications/
H A Dweb_app.cc12 #include "base/file_util.h"
119 return file_util::WriteFile(cheksum_file,
129 if (!file_util::PathExists(icon_file) ||
130 !file_util::PathExists(checksum_file))
134 if (sizeof(persisted_image_checksum) != file_util::ReadFile(checksum_file,
302 if (!file_util::PathExists(web_app_path_) &&
303 !file_util::CreateDirectory(web_app_path_)) {
364 success &= file_util::CreateShortcutLink(chrome_exe.value().c_str(),
380 success &= file_util::TaskbarPinShortcutLink(
526 file_util
[all...]
/external/chromium/base/files/
H A Dfile_path_watcher_win.cc8 #include "base/file_util.h"
141 bool file_exists = file_util::GetFileInfo(target_, &file_info);
191 if (!file_util::DirectoryExists(dir)) {
222 if (file_util::GetFileInfo(target_, &file_info)) {

Completed in 1828 milliseconds

1234567891011>>