Home
last modified time | relevance | path

Searched refs:PathExists (Results 1 – 25 of 122) sorted by relevance

12345

/external/chromium/net/disk_cache/
Dcache_util_unittest.cc50 EXPECT_TRUE(file_util::PathExists(dest_dir_)); in TEST_F()
51 EXPECT_TRUE(file_util::PathExists(dest_file1_)); in TEST_F()
52 EXPECT_TRUE(file_util::PathExists(dest_file2_)); in TEST_F()
53 EXPECT_TRUE(file_util::PathExists(dest_dir1_)); in TEST_F()
55 EXPECT_TRUE(file_util::PathExists(cache_dir_)); // old cache dir stays in TEST_F()
57 EXPECT_FALSE(file_util::PathExists(cache_dir_)); // old cache is gone in TEST_F()
59 EXPECT_FALSE(file_util::PathExists(file1_)); in TEST_F()
60 EXPECT_FALSE(file_util::PathExists(file2_)); in TEST_F()
61 EXPECT_FALSE(file_util::PathExists(dir1_)); in TEST_F()
69 EXPECT_TRUE(file_util::PathExists(cache_dir_)); // cache dir stays in TEST_F()
[all …]
/external/chromium/base/
Dfile_util_unittest.cc398 ASSERT_FALSE(file_util::PathExists(file_a_path)); in TEST_F()
404 ASSERT_TRUE(file_util::PathExists(file_a_path)); in TEST_F()
409 ASSERT_TRUE(file_util::PathExists(file_b_path)); in TEST_F()
647 ASSERT_FALSE(file_util::PathExists(non_existent)); in TEST_F()
650 ASSERT_FALSE(file_util::PathExists(non_existent)); in TEST_F()
652 ASSERT_FALSE(file_util::PathExists(non_existent)); in TEST_F()
659 ASSERT_TRUE(file_util::PathExists(file_name)); in TEST_F()
663 EXPECT_FALSE(file_util::PathExists(file_name)); in TEST_F()
668 ASSERT_TRUE(file_util::PathExists(file_name)); in TEST_F()
672 EXPECT_FALSE(file_util::PathExists(file_name)); in TEST_F()
[all …]
Dbase_paths_linux.cc70 if (file_util::PathExists(path.Append(kThisSourceFile))) { in PathProviderPosix()
82 if (file_util::PathExists(path.Append(kThisSourceFile))) { in PathProviderPosix()
92 if (file_util::PathExists(path.Append(kThisSourceFile))) { in PathProviderPosix()
100 file_util::PathExists(path.Append(kThisSourceFile))) { in PathProviderPosix()
/external/chromium/chrome/browser/download/
Dbase_file_unittest.cc51 EXPECT_EQ(expect_file_survives_, file_util::PathExists(full_path)); in TearDown()
93 EXPECT_TRUE(file_util::PathExists(base_file_->full_path())); in TEST_F()
95 EXPECT_FALSE(file_util::PathExists(base_file_->full_path())); in TEST_F()
129 EXPECT_TRUE(file_util::PathExists(initial_path)); in TEST_F()
131 EXPECT_FALSE(file_util::PathExists(new_path)); in TEST_F()
136 EXPECT_FALSE(file_util::PathExists(initial_path)); in TEST_F()
137 EXPECT_TRUE(file_util::PathExists(new_path)); in TEST_F()
196 EXPECT_TRUE(file_util::PathExists(initial_path)); in TEST_F()
198 EXPECT_FALSE(file_util::PathExists(new_path)); in TEST_F()
203 EXPECT_FALSE(file_util::PathExists(initial_path)); in TEST_F()
[all …]
Ddownload_file_unittest.cc133 EXPECT_TRUE(file_util::PathExists(initial_path)); in TEST_F()
145 EXPECT_FALSE(file_util::PathExists(initial_path)); in TEST_F()
146 EXPECT_TRUE(file_util::PathExists(path_1)); in TEST_F()
158 EXPECT_FALSE(file_util::PathExists(path_1)); in TEST_F()
159 EXPECT_TRUE(file_util::PathExists(path_2)); in TEST_F()
169 EXPECT_FALSE(file_util::PathExists(path_2)); in TEST_F()
170 EXPECT_TRUE(file_util::PathExists(path_3)); in TEST_F()
184 EXPECT_FALSE(file_util::PathExists(path_3)); in TEST_F()
185 EXPECT_TRUE(file_util::PathExists(path_4)); in TEST_F()
Dsave_page_browsertest.cc76 EXPECT_TRUE(file_util::PathExists(full_file_name)); in IN_PROC_BROWSER_TEST_F()
77 EXPECT_FALSE(file_util::PathExists(dir)); in IN_PROC_BROWSER_TEST_F()
105 EXPECT_TRUE(file_util::PathExists(full_file_name)); in IN_PROC_BROWSER_TEST_F()
106 EXPECT_FALSE(file_util::PathExists(dir)); in IN_PROC_BROWSER_TEST_F()
131 EXPECT_TRUE(file_util::PathExists(full_file_name)); in IN_PROC_BROWSER_TEST_F()
132 EXPECT_TRUE(file_util::PathExists(dir)); in IN_PROC_BROWSER_TEST_F()
173 EXPECT_TRUE(file_util::PathExists(full_file_name)); in IN_PROC_BROWSER_TEST_F()
174 EXPECT_TRUE(file_util::PathExists(dir)); in IN_PROC_BROWSER_TEST_F()
Ddownload_manager_unittest.cc515 EXPECT_FALSE(file_util::PathExists(new_path)); in TEST_F()
516 EXPECT_FALSE(file_util::PathExists(cr_path)); in TEST_F()
532 EXPECT_FALSE(file_util::PathExists(new_path)); in TEST_F()
538 EXPECT_TRUE(file_util::PathExists(new_path)); in TEST_F()
597 EXPECT_TRUE(file_util::PathExists(new_path)); in TEST_F()
598 EXPECT_FALSE(file_util::PathExists(cr_path)); in TEST_F()
599 EXPECT_FALSE(file_util::PathExists(unique_new_path)); in TEST_F()
/external/chromium/chrome/browser/safe_browsing/
Dsafe_browsing_store_file_unittest.cc66 EXPECT_FALSE(file_util::PathExists(filename_)); in TEST_F()
67 EXPECT_FALSE(file_util::PathExists(temp_file)); in TEST_F()
71 EXPECT_TRUE(file_util::PathExists(temp_file)); in TEST_F()
77 EXPECT_FALSE(file_util::PathExists(filename_)); in TEST_F()
78 EXPECT_TRUE(file_util::PathExists(temp_file)); in TEST_F()
82 EXPECT_FALSE(file_util::PathExists(filename_)); in TEST_F()
83 EXPECT_FALSE(file_util::PathExists(temp_file)); in TEST_F()
Dsafe_browsing_store_file.cc208 if (file_util::PathExists(original_filename)) { in CheckForOriginalAndDelete()
249 file_util::PathExists(filename_)) { in Delete()
256 file_util::PathExists(new_filename)) { in Delete()
266 if (file_util::PathExists(journal_filename)) in Delete()
406 if (file_util::PathExists(filename_)) in BeginUpdate()
653 file_util::PathExists(filename_)) in DoUpdate()
/external/chromium/chrome/common/extensions/
Dextension_file_util.cc52 if (!file_util::PathExists(extension_dir)) { in InstallExtension()
63 if (!file_util::PathExists(candidate)) { in InstallExtension()
95 if (!file_util::PathExists(manifest_path)) { in LoadExtension()
148 if (!file_util::PathExists(path)) { in ValidateExtension()
165 if (!file_util::PathExists(image_path)) { in ValidateExtension()
206 if (!file_util::PathExists(plugin.path)) { in ValidateExtension()
223 if (!file_util::PathExists(extension->GetResource(*iter).GetFilePath())) { in ValidateExtension()
239 !file_util::PathExists(extension->GetResource(path).GetFilePath())) { in ValidateExtension()
255 if (path.empty() || !file_util::PathExists(path)) { in ValidateExtension()
270 if (path.empty() || !file_util::PathExists(path)) { in ValidateExtension()
[all …]
/external/chromium/chrome/browser/importer/
Dfirefox_profile_lock_unittest.cc46 EXPECT_FALSE(file_util::PathExists(lock_file_path)); in TEST_F()
49 EXPECT_TRUE(file_util::PathExists(lock_file_path)); in TEST_F()
55 EXPECT_FALSE(file_util::PathExists(lock_file_path)); in TEST_F()
59 EXPECT_TRUE(file_util::PathExists(lock_file_path)); in TEST_F()
66 EXPECT_FALSE(file_util::PathExists(lock_file_path)); in TEST_F()
84 EXPECT_TRUE(file_util::PathExists(lock_file_path)); in TEST_F()
Dfirefox_importer_utils_linux.cc17 if (file_util::PathExists(ini_file)) in GetProfilesINI()
/external/chromium/chrome/common/
Dimportant_file_writer_unittest.cc62 EXPECT_FALSE(file_util::PathExists(writer.path())); in TEST_F()
66 ASSERT_TRUE(file_util::PathExists(writer.path())); in TEST_F()
82 ASSERT_TRUE(file_util::PathExists(writer.path())); in TEST_F()
98 ASSERT_TRUE(file_util::PathExists(writer.path())); in TEST_F()
113 ASSERT_TRUE(file_util::PathExists(writer.path())); in TEST_F()
Djson_pref_store_unittest.cc31 ASSERT_TRUE(file_util::PathExists(data_dir_)); in SetUp()
46 ASSERT_FALSE(file_util::PathExists(bogus_input_file)); in TEST_F()
66 EXPECT_FALSE(file_util::PathExists(invalid_file)); in TEST_F()
68 EXPECT_TRUE(file_util::PathExists(moved_aside)); in TEST_F()
79 ASSERT_TRUE(file_util::PathExists(input_file)); in TEST_F()
157 ASSERT_TRUE(file_util::PathExists(golden_output_file)); in TEST_F()
Dchrome_paths.cc220 if (!file_util::PathExists(cur)) in PathProvider()
265 if (!file_util::PathExists(cur)) // we don't want to create this in PathProvider()
274 if (!file_util::PathExists(cur)) // we don't want to create this in PathProvider()
284 if (!file_util::PathExists(cur)) // we don't want to create this in PathProvider()
298 if (!file_util::PathExists(cur)) // we don't want to create this in PathProvider()
315 if (create_dir && !file_util::PathExists(cur) && in PathProvider()
Djson_value_serializer_unittest.cc256 ASSERT_TRUE(file_util::PathExists(original_file_path)); in TEST_F()
288 ASSERT_FALSE(file_util::PathExists(written_file_path)); in TEST_F()
291 ASSERT_TRUE(file_util::PathExists(written_file_path)); in TEST_F()
306 ASSERT_TRUE(file_util::PathExists(original_file_path)); in TEST_F()
317 ASSERT_FALSE(file_util::PathExists(written_file_path)); in TEST_F()
320 ASSERT_TRUE(file_util::PathExists(written_file_path)); in TEST_F()
333 ASSERT_TRUE(file_util::PathExists(source_file_path)); in TEST_F()
Dzip_unittest.cc52 ASSERT_TRUE(file_util::PathExists(path)) << "no file " << path.value(); in TestUnzipFile()
106 ASSERT_FALSE(file_util::PathExists(evil_file)); in TEST_F()
116 ASSERT_FALSE(file_util::PathExists(evil_file)); in TEST_F()
/external/chromium/chrome/browser/extensions/
Dconvert_user_script_unittest.cc48 EXPECT_TRUE(file_util::PathExists( in TEST()
50 EXPECT_TRUE(file_util::PathExists( in TEST()
87 EXPECT_TRUE(file_util::PathExists( in TEST()
89 EXPECT_TRUE(file_util::PathExists( in TEST()
Dextension_creator.cc48 !file_util::PathExists(private_key_path)) { in InitializeInput()
58 file_util::PathExists(private_key_output_path)) { in InitializeInput()
79 if (!file_util::PathExists(private_key_path)) { in ReadInputKey()
192 if (file_util::PathExists(crx_path)) in WriteCRX()
Dsandboxed_extension_unpacker_unittest.cc78 ASSERT_TRUE(file_util::PathExists(original_path)) << original_path.value(); in SetupUnpacker()
171 EXPECT_FALSE(file_util::PathExists(install_path)); in TEST_F()
176 EXPECT_FALSE(file_util::PathExists(install_path)); in TEST_F()
Dextension_service_unittest.cc553 ASSERT_TRUE(file_util::PathExists(pem_path)); in PackAndInstallCrx()
564 ASSERT_TRUE(file_util::PathExists(crx_path)); in PackAndInstallCrx()
579 ASSERT_TRUE(file_util::PathExists(crx_path)) in StartCrxInstall()
596 ASSERT_TRUE(file_util::PathExists(crx_path)) in InstallCrxWithLocation()
649 ASSERT_TRUE(file_util::PathExists(in_path)); in UpdateExtension()
693 EXPECT_FALSE(file_util::PathExists(path)); in UpdateExtension()
904 ASSERT_TRUE(file_util::PathExists(private_key_path)); in OnPackSuccess()
1082 ASSERT_FALSE(file_util::PathExists(extension_dir)); in TEST_F()
1253 ASSERT_TRUE(file_util::PathExists(path)); in TEST_F()
1284 ASSERT_TRUE(file_util::PathExists(pem_path)); in TEST_F()
[all …]
/external/chromium/chrome/browser/first_run/
Dfirst_run_unittest.cc20 EXPECT_TRUE(file_util::PathExists(sentinel_path_)); in TEST_F()
23 EXPECT_FALSE(file_util::PathExists(sentinel_path_)); in TEST_F()
Dupgrade_util_win.cc75 return file_util::PathExists(new_chrome_exe); in IsUpdatePendingRestart()
82 if (!file_util::PathExists(new_chrome_exe)) in SwapNewChromeExeIfPresent()
/external/chromium/chrome/browser/prefs/
Dpref_service_uitest.cc48 ASSERT_TRUE(file_util::PathExists(reference_pref_file)); in SetUp()
64 if (!file_util::PathExists(tmp_pref_file_)) in LaunchAppWithProfile()
94 ASSERT_TRUE(file_util::PathExists(tmp_pref_file_)); in TEST_F()
152 ASSERT_TRUE(file_util::PathExists(tmp_pref_file_)); in TEST_F()
/external/chromium/chrome/browser/google/
Dgoogle_update_settings_posix.cc40 if ((!file_util::PathExists(consent_file)) || in SetCollectStatsConsent()
41 (file_util::PathExists(consent_file) && in SetCollectStatsConsent()

12345