Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(93)

Unified Diff: chrome/browser/web_applications/web_app_mac_unittest.mm

Issue 18286004: Move PathExists to base namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/web_applications/web_app_mac.mm ('k') | chrome/browser/web_applications/web_app_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/web_applications/web_app_mac_unittest.mm
diff --git a/chrome/browser/web_applications/web_app_mac_unittest.mm b/chrome/browser/web_applications/web_app_mac_unittest.mm
index a96ff4c5b389856e2d9e1d4db0e9a14970855c67..34ca57016c9c4bf6af61773f5f37c9c4ff21433e 100644
--- a/chrome/browser/web_applications/web_app_mac_unittest.mm
+++ b/chrome/browser/web_applications/web_app_mac_unittest.mm
@@ -85,8 +85,8 @@ TEST(WebAppShortcutCreatorTest, CreateShortcuts) {
EXPECT_CALL(shortcut_creator, RevealAppShimInFinder());
EXPECT_TRUE(shortcut_creator.CreateShortcuts());
- EXPECT_TRUE(file_util::PathExists(app_in_app_data_path_path));
- EXPECT_TRUE(file_util::PathExists(dst_path));
+ EXPECT_TRUE(base::PathExists(app_in_app_data_path_path));
+ EXPECT_TRUE(base::PathExists(dst_path));
EXPECT_EQ(dst_path.BaseName(), shortcut_creator.GetShortcutName());
base::FilePath plist_path = dst_path.Append("Contents").Append("Info.plist");
@@ -143,8 +143,8 @@ TEST(WebAppShortcutCreatorTest, UpdateShortcuts) {
other_folder.Append(app_name).Append("Contents"), true));
EXPECT_TRUE(shortcut_creator.UpdateShortcuts());
- EXPECT_FALSE(file_util::PathExists(dst_folder.Append(app_name)));
- EXPECT_TRUE(file_util::PathExists(
+ EXPECT_FALSE(base::PathExists(dst_folder.Append(app_name)));
+ EXPECT_TRUE(base::PathExists(
other_folder.Append(app_name).Append("Contents")));
// Also test case where GetAppBundleById fails.
@@ -157,8 +157,8 @@ TEST(WebAppShortcutCreatorTest, UpdateShortcuts) {
other_folder.Append(app_name).Append("Contents"), true));
EXPECT_FALSE(shortcut_creator.UpdateShortcuts());
- EXPECT_FALSE(file_util::PathExists(dst_folder.Append(app_name)));
- EXPECT_FALSE(file_util::PathExists(
+ EXPECT_FALSE(base::PathExists(dst_folder.Append(app_name)));
+ EXPECT_FALSE(base::PathExists(
other_folder.Append(app_name).Append("Contents")));
}
@@ -200,7 +200,7 @@ TEST(WebAppShortcutCreatorTest, RunShortcut) {
EXPECT_CALL(shortcut_creator, RevealAppShimInFinder());
EXPECT_TRUE(shortcut_creator.CreateShortcuts());
- EXPECT_TRUE(file_util::PathExists(dst_path));
+ EXPECT_TRUE(base::PathExists(dst_path));
ssize_t status = getxattr(
dst_path.value().c_str(), "com.apple.quarantine", NULL, 0, 0, 0);
« no previous file with comments | « chrome/browser/web_applications/web_app_mac.mm ('k') | chrome/browser/web_applications/web_app_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698