/external/chromium/net/disk_cache/ |
cache_util_unittest.cc | 6 #include "base/file_util.h" 22 ASSERT_TRUE(file_util::CreateDirectory(cache_dir_)); 23 FILE *fp = file_util::OpenFile(file1_, "w"); 25 file_util::CloseFile(fp); 26 fp = file_util::OpenFile(file2_, "w"); 28 file_util::CloseFile(fp); 29 ASSERT_TRUE(file_util::CreateDirectory(dir1_)); 50 EXPECT_TRUE(file_util::PathExists(dest_dir_)); 51 EXPECT_TRUE(file_util::PathExists(dest_file1_)); 52 EXPECT_TRUE(file_util::PathExists(dest_file2_)) [all...] |
cache_util_posix.cc | 7 #include "base/file_util.h" 21 if (!file_util::CreateDirectory(to_path)) { 25 file_util::FileEnumerator iter( 28 static_cast<file_util::FileEnumerator::FILE_TYPE>( 29 file_util::FileEnumerator::DIRECTORIES | 30 file_util::FileEnumerator::FILES)); 33 if (!file_util::Move(name, destination)) { 40 return file_util::Move(from_path, to_path); 45 file_util::FileEnumerator iter(path, 47 file_util::FileEnumerator::FILES) [all...] |
/external/chromium/base/ |
file_util_unittest.cc | 20 #include "base/file_util.h" 38 // To test that file_util::Normalize FilePath() deals with NTFS reparse points 115 const file_util::FileEnumerator::FILE_TYPE FILES_AND_DIRECTORIES = 116 static_cast<file_util::FileEnumerator::FILE_TYPE>( 117 file_util::FileEnumerator::FILES | 118 file_util::FileEnumerator::DIRECTORIES); 120 // file_util winds up using autoreleased objects on the Mac, so this needs 136 explicit FindResultCollector(file_util::FileEnumerator& enumerator) { 222 file_util::AppendToPath(&result, value.ending); 227 file_util::AppendToPath(NULL, L"path"); // asserts in debug mod [all...] |
perftimer.cc | 12 #include "base/file_util.h" 24 perf_log_file = file_util::OpenFile(log_file, "w"); 34 file_util::CloseFile(perf_log_file);
|
native_library_win.cc | 9 #include "base/file_util.h" 26 if (file_util::GetCurrentDirectory(¤t_directory)) { 29 file_util::SetCurrentDirectory(plugin_path); 36 file_util::SetCurrentDirectory(current_directory);
|
process_linux.cc | 10 #include "base/file_util.h" 54 file_util::FileSystemType foreground_type; 55 file_util::FileSystemType background_type; 57 file_util::GetFileSystemType(foreground_tasks, &foreground_type) && 58 file_util::GetFileSystemType(background_tasks, &background_type) && 59 foreground_type == file_util::FILE_SYSTEM_CGROUP && 60 background_type == file_util::FILE_SYSTEM_CGROUP; 66 if (file_util::WriteFile(background_tasks, pid.c_str(), pid.size()) > 0) { 81 if (file_util::WriteFile(foreground_tasks, pid.c_str(), pid.size()) > 0) {
|
/external/chromium/chrome/browser/first_run/ |
first_run_unittest.cc | 5 #include "base/file_util.h" 20 EXPECT_TRUE(file_util::PathExists(sentinel_path_)); 23 EXPECT_FALSE(file_util::PathExists(sentinel_path_));
|
/external/chromium/chrome/browser/importer/ |
firefox_importer_utils_linux.cc | 7 #include "base/file_util.h" 13 FilePath home = file_util::GetHomeDir(); 17 if (file_util::PathExists(ini_file))
|
firefox_profile_lock_unittest.cc | 5 #include "base/file_util.h" 38 ASSERT_TRUE(file_util::CreateNewTempDirectory( 46 EXPECT_FALSE(file_util::PathExists(lock_file_path)); 49 EXPECT_TRUE(file_util::PathExists(lock_file_path)); 55 EXPECT_FALSE(file_util::PathExists(lock_file_path)); 59 EXPECT_TRUE(file_util::PathExists(lock_file_path)); 66 EXPECT_FALSE(file_util::PathExists(lock_file_path)); 74 ASSERT_TRUE(file_util::CreateNewTempDirectory( 81 FILE* lock_file = file_util::OpenFile(lock_file_path, "w"); 83 file_util::CloseFile(lock_file) [all...] |
/external/chromium/base/memory/ |
scoped_temp_dir.cc | 7 #include "base/file_util.h" 24 if (!file_util::CreateNewTempDirectory(FILE_PATH_LITERAL("scoped_dir"), 36 if (!file_util::CreateDirectory(base_path)) 40 if (!file_util::CreateTemporaryDirInDir( 53 if (!file_util::DirectoryExists(path) && 54 !file_util::CreateDirectory(path)) 65 bool ret = file_util::Delete(path_, true); 83 return !path_.empty() && file_util::DirectoryExists(path_);
|
scoped_temp_dir_unittest.cc | 5 #include "base/file_util.h" 12 file_util::CreateNewTempDirectory(FILE_PATH_LITERAL("scoped_temp_dir"), 16 EXPECT_TRUE(file_util::DirectoryExists(test_path)); 22 EXPECT_FALSE(file_util::DirectoryExists(test_path)); 28 EXPECT_TRUE(file_util::DirectoryExists(test_path)); 34 EXPECT_TRUE(file_util::DirectoryExists(test_path)); 41 EXPECT_FALSE(file_util::DirectoryExists(test_path)); 52 EXPECT_TRUE(file_util::DirectoryExists(test_path)); 54 EXPECT_TRUE(file_util::GetTempDir(&tmp_dir)); 57 EXPECT_FALSE(file_util::DirectoryExists(test_path)) [all...] |
/external/chromium/chrome/browser/safe_browsing/ |
safe_browsing_store_file_unittest.cc | 24 ASSERT_TRUE(file_util::CreateNewTempDirectory(kFolderPrefix, &temp_dir)); 30 file_util::Delete(filename_, false); 35 file_util::Delete(temp_file, false); 66 EXPECT_FALSE(file_util::PathExists(filename_)); 67 EXPECT_FALSE(file_util::PathExists(temp_file)); 71 EXPECT_TRUE(file_util::PathExists(temp_file)); 77 EXPECT_FALSE(file_util::PathExists(filename_)); 78 EXPECT_TRUE(file_util::PathExists(temp_file)); 82 EXPECT_FALSE(file_util::PathExists(filename_)); 83 EXPECT_FALSE(file_util::PathExists(temp_file)) [all...] |
/external/chromium/net/base/ |
directory_lister_unittest.cc | 6 #include "base/file_util.h" 39 EXPECT_TRUE(file_util::LocaleAwareCompareFilenames( 51 if (file_util::FileEnumerator::IsDirectory(file_list_[previous]) && 52 !file_util::FileEnumerator::IsDirectory(file_list_[current])) { 55 EXPECT_FALSE(file_util::IsDotDot( 56 file_util::FileEnumerator::GetFilename(file_list_[current]))); 57 EXPECT_EQ(file_util::FileEnumerator::IsDirectory(file_list_[previous]), 58 file_util::FileEnumerator::IsDirectory(file_list_[current])); 59 EXPECT_TRUE(file_util::LocaleAwareCompareFilenames( 60 file_util::FileEnumerator::GetFilename(file_list_[previous]) [all...] |
directory_lister.cc | 10 #include "base/file_util.h" 98 if (!file_util::DirectoryExists(dir_)) { 105 int types = file_util::FileEnumerator::FILES | 106 file_util::FileEnumerator::DIRECTORIES; 108 types |= file_util::FileEnumerator::INCLUDE_DOT_DOT; 110 file_util::FileEnumerator file_enum(dir_, recursive_, 111 static_cast<file_util::FileEnumerator::FILE_TYPE>(types)); 167 if (file_util::IsDotDot(file_util::FileEnumerator::GetFilename(a.info))) 169 if (file_util::IsDotDot(file_util::FileEnumerator::GetFilename(b.info)) [all...] |
/external/chromium/base/test/ |
test_file_util_linux.cc | 13 namespace file_util { namespace 27 } // namespace file_util
|
test_file_util_mac.cc | 10 #include "base/file_util.h" 12 namespace file_util { namespace 20 file_util::MemoryMappedFile mapped_file; 36 } // namespace file_util
|
/external/chromium/chrome/browser/google/ |
google_update_settings_posix.cc | 7 #include "base/file_util.h" 25 bool consented = file_util::ReadFileToString(consent_file, &tmp_guid); 35 if (!file_util::DirectoryExists(consent_dir)) 40 if ((!file_util::PathExists(consent_file)) || 41 (file_util::PathExists(consent_file) && 45 return file_util::WriteFile(consent_file, c_str, size) == size; 49 return file_util::Delete(consent_file, false); 58 if (!file_util::DirectoryExists(consent_dir) ||
|
/external/chromium_org/base/test/ |
test_file_util_linux.cc | 14 namespace file_util { namespace 28 } // namespace file_util
|
/external/chromium/chrome/browser/download/ |
base_file_unittest.cc | 5 #include "base/file_util.h" 43 EXPECT_TRUE(file_util::ReadFileToString(full_path, &disk_data)); 51 EXPECT_EQ(expect_file_survives_, file_util::PathExists(full_path)); 93 EXPECT_TRUE(file_util::PathExists(base_file_->full_path())); 95 EXPECT_FALSE(file_util::PathExists(base_file_->full_path())); 129 EXPECT_TRUE(file_util::PathExists(initial_path)); 131 EXPECT_FALSE(file_util::PathExists(new_path)); 136 EXPECT_FALSE(file_util::PathExists(initial_path)); 137 EXPECT_TRUE(file_util::PathExists(new_path)); 196 EXPECT_TRUE(file_util::PathExists(initial_path)) [all...] |
save_page_browsertest.cc | 6 #include "base/file_util.h" 76 EXPECT_TRUE(file_util::PathExists(full_file_name)); 77 EXPECT_FALSE(file_util::PathExists(dir)); 78 EXPECT_TRUE(file_util::ContentsEqual( 105 EXPECT_TRUE(file_util::PathExists(full_file_name)); 106 EXPECT_FALSE(file_util::PathExists(dir)); 107 EXPECT_TRUE(file_util::ContentsEqual( 131 EXPECT_TRUE(file_util::PathExists(full_file_name)); 132 EXPECT_TRUE(file_util::PathExists(dir)); 133 EXPECT_TRUE(file_util::TextContentsEqual [all...] |
save_page_uitest.cc | 5 #include "base/file_util.h" 40 ASSERT_TRUE(file_util::PathExists(expected_result_filepath)); 50 EXPECT_TRUE(file_util::CreateNewTempDirectory(FILE_PATH_LITERAL(""), 58 file_util::DieFileDie(save_dir_, true); 90 EXPECT_TRUE(file_util::DieFileDie(full_file_name, false)); 91 EXPECT_TRUE(file_util::DieFileDie(dir, true));
|
/external/chromium_org/base/ |
native_library_win.cc | 9 #include "base/file_util.h" 26 if (file_util::GetCurrentDirectory(¤t_directory)) { 29 file_util::SetCurrentDirectory(plugin_path); 36 file_util::SetCurrentDirectory(current_directory);
|
/external/chromium/chrome/browser/policy/ |
config_dir_policy_provider.cc | 9 #include "base/file_util.h" 23 file_util::FileEnumerator file_enumerator(config_file_path(), false, 24 file_util::FileEnumerator::FILES); 58 if (!file_util::GetFileInfo(config_file_path(), &file_info) || 64 file_util::FileEnumerator file_enumerator(config_file_path(), 66 file_util::FileEnumerator::FILES); 70 if (file_util::GetFileInfo(config_file, &file_info) &&
|
/external/chromium/chrome/common/ |
auto_start_linux.cc | 9 #include "base/file_util.h" 35 if (!file_util::DirectoryExists(autostart_directory) && 36 !file_util::CreateDirectory(autostart_directory)) { 49 if (file_util::WriteFile(autostart_file, autostart_file_contents.c_str(), 52 file_util::Delete(autostart_file, false); 62 return file_util::Delete(autostart_file, false); 70 return file_util::ReadFileToString(autostart_file, contents);
|
/external/chromium/chrome/browser/extensions/ |
sandboxed_extension_unpacker_unittest.cc | 5 #include "base/file_util.h" 78 ASSERT_TRUE(file_util::PathExists(original_path)) << original_path.value(); 84 ASSERT_TRUE(file_util::CopyFile(original_path, crx_path)) << 93 ASSERT_TRUE(file_util::CreateDirectory(temp_path_)); 127 file_util::FileEnumerator::FILE_TYPE files_and_dirs = 128 static_cast<file_util::FileEnumerator::FILE_TYPE>( 129 file_util::FileEnumerator::DIRECTORIES | 130 file_util::FileEnumerator::FILES); 132 file_util::FileEnumerator temp_iterator( 171 EXPECT_FALSE(file_util::PathExists(install_path)) [all...] |