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

Unified Diff: chrome/installer/util/logging_installer_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 | « chrome/installer/util/logging_installer.cc ('k') | chrome/installer/util/lzma_util_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/installer/util/logging_installer_unittest.cc
diff --git a/chrome/installer/util/logging_installer_unittest.cc b/chrome/installer/util/logging_installer_unittest.cc
index 722897edf7944db7831a9f321429852f8dffc83e..c605be691e41c1dfb86d0610d8799882089aee12 100644
--- a/chrome/installer/util/logging_installer_unittest.cc
+++ b/chrome/installer/util/logging_installer_unittest.cc
@@ -21,7 +21,7 @@ TEST(LoggingInstallerTest, TestTruncate) {
base::FilePath temp_file = temp_dir.path().Append(L"temp");
EXPECT_EQ(test_data.size(),
file_util::WriteFile(temp_file, &test_data[0], test_data.size()));
- ASSERT_TRUE(file_util::PathExists(temp_file));
+ ASSERT_TRUE(base::PathExists(temp_file));
int64 file_size = 0;
EXPECT_TRUE(file_util::GetFileSize(temp_file, &file_size));
@@ -34,7 +34,7 @@ TEST(LoggingInstallerTest, TestTruncate) {
EXPECT_EQ(installer::kTruncatedInstallerLogFileSize , file_size);
// Check that the temporary file was deleted.
- EXPECT_FALSE(file_util::PathExists(temp_file.Append(L".tmp")));
+ EXPECT_FALSE(base::PathExists(temp_file.Append(L".tmp")));
}
TEST(LoggingInstallerTest, TestTruncationNotNeeded) {
@@ -46,7 +46,7 @@ TEST(LoggingInstallerTest, TestTruncationNotNeeded) {
base::FilePath temp_file = temp_dir.path().Append(L"temp");
EXPECT_EQ(test_data.size(),
file_util::WriteFile(temp_file, &test_data[0], test_data.size()));
- ASSERT_TRUE(file_util::PathExists(temp_file));
+ ASSERT_TRUE(base::PathExists(temp_file));
int64 file_size = 0;
EXPECT_TRUE(file_util::GetFileSize(temp_file, &file_size));
@@ -54,7 +54,7 @@ TEST(LoggingInstallerTest, TestTruncationNotNeeded) {
EXPECT_EQ(installer::LOGFILE_UNTOUCHED,
installer::TruncateLogFileIfNeeded(temp_file));
- EXPECT_TRUE(file_util::PathExists(temp_file));
+ EXPECT_TRUE(base::PathExists(temp_file));
EXPECT_TRUE(file_util::GetFileSize(temp_file, &file_size));
EXPECT_EQ(test_data.size(), file_size);
}
@@ -68,7 +68,7 @@ TEST(LoggingInstallerTest, TestInUseNeedsTruncation) {
base::FilePath temp_file = temp_dir.path().Append(L"temp");
EXPECT_EQ(test_data.size(),
file_util::WriteFile(temp_file, &test_data[0], test_data.size()));
- ASSERT_TRUE(file_util::PathExists(temp_file));
+ ASSERT_TRUE(base::PathExists(temp_file));
int64 file_size = 0;
EXPECT_TRUE(file_util::GetFileSize(temp_file, &file_size));
EXPECT_EQ(test_data.size(), file_size);
@@ -83,7 +83,7 @@ TEST(LoggingInstallerTest, TestInUseNeedsTruncation) {
EXPECT_EQ(installer::LOGFILE_UNTOUCHED,
installer::TruncateLogFileIfNeeded(temp_file));
- EXPECT_TRUE(file_util::PathExists(temp_file));
+ EXPECT_TRUE(base::PathExists(temp_file));
EXPECT_TRUE(file_util::GetFileSize(temp_file, &file_size));
EXPECT_EQ(test_data.size(), file_size);
}
@@ -97,7 +97,7 @@ TEST(LoggingInstallerTest, TestMoveFailsNeedsTruncation) {
base::FilePath temp_file = temp_dir.path().Append(L"temp");
EXPECT_EQ(test_data.size(),
file_util::WriteFile(temp_file, &test_data[0], test_data.size()));
- ASSERT_TRUE(file_util::PathExists(temp_file));
+ ASSERT_TRUE(base::PathExists(temp_file));
int64 file_size = 0;
EXPECT_TRUE(file_util::GetFileSize(temp_file, &file_size));
EXPECT_EQ(test_data.size(), file_size);
@@ -115,5 +115,5 @@ TEST(LoggingInstallerTest, TestMoveFailsNeedsTruncation) {
EXPECT_EQ(installer::LOGFILE_DELETED,
installer::TruncateLogFileIfNeeded(temp_file));
- EXPECT_FALSE(file_util::PathExists(temp_file));
+ EXPECT_FALSE(base::PathExists(temp_file));
}
« no previous file with comments | « chrome/installer/util/logging_installer.cc ('k') | chrome/installer/util/lzma_util_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698