/external/chromium/chrome/common/extensions/ |
extension_file_util_unittest.cc | 7 #include "base/file_util.h" 26 ASSERT_TRUE(file_util::CreateDirectory(src)); 30 ASSERT_TRUE(file_util::CreateDirectory(all_extensions)); 40 ASSERT_TRUE(file_util::DirectoryExists(version_1)); 43 ASSERT_FALSE(file_util::DirectoryExists(src)); 46 ASSERT_TRUE(file_util::CreateDirectory(src)); 54 ASSERT_TRUE(file_util::DirectoryExists(version_2)); 62 ASSERT_FALSE(file_util::DirectoryExists(version_1)); 63 ASSERT_TRUE(file_util::DirectoryExists(version_2)); 67 ASSERT_FALSE(file_util::DirectoryExists(version_2.DirName())) [all...] |
extension_file_util.cc | 10 #include "base/file_util.h" 52 if (!file_util::PathExists(extension_dir)) { 53 if (!file_util::CreateDirectory(extension_dir)) 63 if (!file_util::PathExists(candidate)) { 75 if (!file_util::Move(unpacked_source_dir, version_dir)) 86 file_util::Delete(extensions_dir.AppendASCII(id), true); // recursive. 95 if (!file_util::PathExists(manifest_path)) { 148 if (!file_util::PathExists(path)) { 165 if (!file_util::PathExists(image_path)) { 206 if (!file_util::PathExists(plugin.path)) [all...] |
extension_resource.cc | 7 #include "base/file_util.h" 45 if (!file_util::AbsolutePath(&clean_extension_root)) 57 if (file_util::AbsolutePath(&full_path) && 58 file_util::PathExists(full_path) &&
|
extension_resource_unittest.cc | 7 #include "base/file_util.h" 54 ASSERT_TRUE(file_util::WriteFile(root_resource, data.c_str(), data.length())); 58 ASSERT_TRUE(file_util::CreateDirectory(l10n_path)); 66 ASSERT_TRUE(file_util::CreateDirectory(make_path)); 67 ASSERT_TRUE(file_util::WriteFile(make_path.AppendASCII(filename), 82 ASSERT_TRUE(file_util::AbsolutePath(&expected_path));
|
extension_unpacker.cc | 9 #include "base/file_util.h" 49 if (!file_util::PathExists(path) || 50 !file_util::ReadFileToString(path, &file_contents)) { 97 if (!file_util::PathExists(manifest_path)) { 124 file_util::FileEnumerator locales(locales_path, 126 file_util::FileEnumerator::DIRECTORIES); 153 if (!file_util::CreateDirectory(temp_install_dir_)) { 219 if (!file_util::WriteFile(path, static_cast<const char*>(pickle.data()), 234 if (!file_util::WriteFile(path, static_cast<const char*>(pickle.data()), 248 if (!file_util::ReadFileToString(path, &file_str) [all...] |
/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);
|
important_file_writer.cc | 12 #include "base/file_util.h" 39 FILE* tmp_file = file_util::CreateAndOpenTemporaryFileInDir( 47 if (!file_util::CloseFile(tmp_file)) { 49 file_util::Delete(tmp_file_path, false); 55 file_util::Delete(tmp_file_path, false); 59 if (!file_util::ReplaceFile(tmp_file_path, path_)) { 61 file_util::Delete(tmp_file_path, false);
|
important_file_writer_unittest.cc | 9 #include "base/file_util.h" 21 if (!file_util::ReadFileToString(path, &content)) { 62 EXPECT_FALSE(file_util::PathExists(writer.path())); 66 ASSERT_TRUE(file_util::PathExists(writer.path())); 82 ASSERT_TRUE(file_util::PathExists(writer.path())); 98 ASSERT_TRUE(file_util::PathExists(writer.path())); 113 ASSERT_TRUE(file_util::PathExists(writer.path()));
|
json_pref_store_unittest.cc | 5 #include "base/file_util.h" 31 ASSERT_TRUE(file_util::PathExists(data_dir_)); 46 ASSERT_FALSE(file_util::PathExists(bogus_input_file)); 58 ASSERT_TRUE(file_util::CopyFile(invalid_file_original, invalid_file)); 66 EXPECT_FALSE(file_util::PathExists(invalid_file)); 68 EXPECT_TRUE(file_util::PathExists(moved_aside)); 69 EXPECT_TRUE(file_util::TextContentsEqual(invalid_file_original, 74 ASSERT_TRUE(file_util::CopyFile(data_dir_.AppendASCII("read.json"), 79 ASSERT_TRUE(file_util::PathExists(input_file)); 157 ASSERT_TRUE(file_util::PathExists(golden_output_file)) [all...] |
zip_unittest.cc | 7 #include "base/file_util.h" 52 ASSERT_TRUE(file_util::PathExists(path)) << "no file " << path.value(); 55 file_util::FileEnumerator files(test_dir_, true, 56 static_cast<file_util::FileEnumerator::FILE_TYPE>( 57 file_util::FileEnumerator::FILES | 58 file_util::FileEnumerator::DIRECTORIES)); 106 ASSERT_FALSE(file_util::PathExists(evil_file)); 116 ASSERT_FALSE(file_util::PathExists(evil_file));
|
/external/chromium/chrome/browser/extensions/ |
extension_creator.cc | 10 #include "base/file_util.h" 33 !file_util::DirectoryExists(extension_dir)) { 40 if (!file_util::AbsolutePath(&absolute_extension_dir)) { 48 !file_util::PathExists(private_key_path)) { 58 file_util::PathExists(private_key_output_path)) { 79 if (!file_util::PathExists(private_key_path)) { 86 if (!file_util::ReadFileToString(private_key_path, 140 if (-1 == file_util::WriteFile(output_private_key_path, 170 ScopedStdioHandle zip_handle(file_util::OpenFile(zip_path, "rb")); 192 if (file_util::PathExists(crx_path) [all...] |
convert_user_script_unittest.cc | 9 #include "base/file_util.h" 48 EXPECT_TRUE(file_util::PathExists( 50 EXPECT_TRUE(file_util::PathExists( 54 file_util::Delete(extension->path(), true); 87 EXPECT_TRUE(file_util::PathExists( 89 EXPECT_TRUE(file_util::PathExists( 93 file_util::Delete(extension->path(), true);
|
extension_startup_browsertest.cc | 9 #include "base/file_util.h" 42 file_util::CreateDirectory(profile_dir); 54 file_util::CopyFile(src_dir.AppendASCII("Preferences"), 56 file_util::CopyDirectory(src_dir.AppendASCII("Extensions"), 70 EXPECT_TRUE(file_util::Delete(preferences_file_, false)); 73 file_util::Delete(user_scripts_dir_, true); 74 file_util::Delete(extensions_dir_, true);
|
/external/chromium/base/ |
base_paths.cc | 8 #include "base/file_util.h" 27 if (!file_util::GetTempDir(&cur))
|
sys_info_linux.cc | 7 #include "base/file_util.h" 29 file_util::ReadFileToString(FilePath("/proc/sys/kernel/shmmax"), &contents);
|
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);
|
event_recorder.cc | 10 #include "base/file_util.h" 52 file_ = file_util::OpenFile(filename, "wb+"); 66 file_util::CloseFile(file_); 87 file_util::CloseFile(file_); 103 file_ = file_util::OpenFile(filename, "rb"); 111 file_util::CloseFile(file_); 153 file_util::CloseFile(file_);
|
/external/chromium/base/test/ |
test_file_util.h | 15 namespace file_util { namespace 17 // Wrapper over file_util::Delete. On Windows repeatedly invokes Delete in case 52 } // namespace file_util
|
/external/chromium/chrome/browser/autofill/ |
data_driven_test.cc | 7 #include "base/file_util.h" 18 if (!file_util::ReadFileToString(file, content)) 27 int write_size = file_util::WriteFile(file, content.c_str(), 38 file_util::FileEnumerator input_files(input_directory, 40 file_util::FileEnumerator::FILES,
|
/external/chromium/chrome/browser/first_run/ |
upgrade_util_linux.cc | 10 #include "base/file_util.h" 44 if (!file_util::GetFileInfo(exe_file_path, &exe_file_info)) {
|
/external/chromium/base/i18n/ |
file_util_icu_unittest.cc | 7 #include "base/file_util.h" 12 // file_util winds up using autoreleased objects on the Mac, so this needs 32 file_util::ReplaceIllegalCharactersInPath(&bad_name, '-'); 73 file_util::ReplaceIllegalCharactersInPath(&bad_name, '-'); 77 file_util::ReplaceIllegalCharactersInPath(&bad_name, '-');
|
/external/chromium/chrome/browser/ |
user_style_sheet_watcher.cc | 8 #include "base/file_util.h" 95 if (!file_util::DirectoryExists(style_sheet_dir)) { 96 if (!file_util::CreateDirectory(style_sheet_dir)) 100 if (!file_util::PathExists(style_sheet_file)) 101 file_util::WriteFile(style_sheet_file, "", 0); 104 bool rv = file_util::ReadFileToString(style_sheet_file, &css);
|
shell_integration_unittest.cc | 10 #include "base/file_util.h" 89 ASSERT_TRUE(file_util::WriteFile( 104 ASSERT_TRUE(file_util::CreateDirectory( 106 ASSERT_TRUE(file_util::WriteFile( 123 ASSERT_TRUE(file_util::CreateDirectory( 125 ASSERT_TRUE(file_util::WriteFile( 128 ASSERT_TRUE(file_util::WriteFile(
|
/external/chromium/chrome/browser/safe_browsing/ |
safe_browsing_store_file.cc | 164 if (!file_util::GetFileSize(filename, &size)) 208 if (file_util::PathExists(original_filename)) { 210 if (file_util::GetFileSize(original_filename, &size)) { 215 if (file_util::Delete(original_filename, false)) { 225 file_util::Delete(journal_filename, false); 248 if (!file_util::Delete(filename_, false) && 249 file_util::PathExists(filename_)) { 255 if (!file_util::Delete(new_filename, false) && 256 file_util::PathExists(new_filename)) { 266 if (file_util::PathExists(journal_filename) [all...] |
/external/chromium/chrome/browser/download/ |
base_file.cc | 7 #include "base/file_util.h" 106 file_util::CreateDirectory(new_path.DirName()); 112 if (!file_util::RenameFileAndResetSecurityDescriptor(full_path_, new_path)) 122 if (!file_util::PathExists(new_path)) 123 file_util::WriteFile(new_path, "", 0); 128 if (!file_util::Move(full_path_, new_path)) 159 file_util::Delete(full_path_, false);
|