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

Unified Diff: ui/gfx/icon_util_unittest.cc

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 | « ui/gfx/gfx_paths.cc ('k') | webkit/browser/appcache/appcache_database.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/icon_util_unittest.cc
diff --git a/ui/gfx/icon_util_unittest.cc b/ui/gfx/icon_util_unittest.cc
index a63da08ed59d47dff5c87a363caaaf362425dd29..b1548cee4477dc528ab2529acb94b53de67121b5 100644
--- a/ui/gfx/icon_util_unittest.cc
+++ b/ui/gfx/icon_util_unittest.cc
@@ -73,7 +73,7 @@ class IconUtilTest : public testing::Test {
void IconUtilTest::CheckAllIconSizes(const base::FilePath& icon_filename,
int max_icon_size) {
- ASSERT_TRUE(file_util::PathExists(icon_filename));
+ ASSERT_TRUE(base::PathExists(icon_filename));
// Determine how many icons to expect, based on |max_icon_size|.
int expected_num_icons = 0;
@@ -214,7 +214,7 @@ TEST_F(IconUtilTest, TestCreateIconFileInvalidParameters) {
image_family.Add(gfx::Image::CreateFrom1xBitmap(*bitmap));
EXPECT_FALSE(IconUtil::CreateIconFileFromImageFamily(image_family,
valid_icon_filename));
- EXPECT_FALSE(file_util::PathExists(valid_icon_filename));
+ EXPECT_FALSE(base::PathExists(valid_icon_filename));
// Invalid bitmap size.
image_family.clear();
@@ -225,7 +225,7 @@ TEST_F(IconUtilTest, TestCreateIconFileInvalidParameters) {
image_family.Add(gfx::Image::CreateFrom1xBitmap(*bitmap));
EXPECT_FALSE(IconUtil::CreateIconFileFromImageFamily(image_family,
valid_icon_filename));
- EXPECT_FALSE(file_util::PathExists(valid_icon_filename));
+ EXPECT_FALSE(base::PathExists(valid_icon_filename));
// Bitmap with no allocated pixels.
image_family.clear();
@@ -237,7 +237,7 @@ TEST_F(IconUtilTest, TestCreateIconFileInvalidParameters) {
image_family.Add(gfx::Image::CreateFrom1xBitmap(*bitmap));
EXPECT_FALSE(IconUtil::CreateIconFileFromImageFamily(image_family,
valid_icon_filename));
- EXPECT_FALSE(file_util::PathExists(valid_icon_filename));
+ EXPECT_FALSE(base::PathExists(valid_icon_filename));
// Invalid file name.
image_family.clear();
@@ -247,7 +247,7 @@ TEST_F(IconUtilTest, TestCreateIconFileInvalidParameters) {
image_family.Add(gfx::Image::CreateFrom1xBitmap(*bitmap));
EXPECT_FALSE(IconUtil::CreateIconFileFromImageFamily(image_family,
invalid_icon_filename));
- EXPECT_FALSE(file_util::PathExists(invalid_icon_filename));
+ EXPECT_FALSE(base::PathExists(invalid_icon_filename));
}
// This test case makes sure IconUtil::CreateIconFileFromImageFamily fails if
@@ -259,14 +259,14 @@ TEST_F(IconUtilTest, TestCreateIconFileEmptyImageFamily) {
// Empty image family.
EXPECT_FALSE(IconUtil::CreateIconFileFromImageFamily(gfx::ImageFamily(),
icon_filename));
- EXPECT_FALSE(file_util::PathExists(icon_filename));
+ EXPECT_FALSE(base::PathExists(icon_filename));
// Image family with only an empty image.
gfx::ImageFamily image_family;
image_family.Add(gfx::Image());
EXPECT_FALSE(IconUtil::CreateIconFileFromImageFamily(image_family,
icon_filename));
- EXPECT_FALSE(file_util::PathExists(icon_filename));
+ EXPECT_FALSE(base::PathExists(icon_filename));
}
// This test case makes sure that when we load an icon from disk and convert
« no previous file with comments | « ui/gfx/gfx_paths.cc ('k') | webkit/browser/appcache/appcache_database.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698