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

Unified Diff: chrome/browser/safe_browsing/prefix_set_unittest.cc

Issue 102873002: Move GetFileSize, NormalizeFilePath to base namespace (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years 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/safe_browsing/prefix_set.cc ('k') | chrome/browser/safe_browsing/safe_browsing_database.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/safe_browsing/prefix_set_unittest.cc
diff --git a/chrome/browser/safe_browsing/prefix_set_unittest.cc b/chrome/browser/safe_browsing/prefix_set_unittest.cc
index c76447af8ef68b68cdc900bd5f9b58eb4e1192ac..10865e9f6fd02b89d4a801b13b7c026b25a8bc45 100644
--- a/chrome/browser/safe_browsing/prefix_set_unittest.cc
+++ b/chrome/browser/safe_browsing/prefix_set_unittest.cc
@@ -149,7 +149,7 @@ class PrefixSetTest : public PlatformTest {
void ModifyAndCleanChecksum(const base::FilePath& filename, long offset,
int inc) {
int64 size_64;
- ASSERT_TRUE(file_util::GetFileSize(filename, &size_64));
+ ASSERT_TRUE(base::GetFileSize(filename, &size_64));
file_util::ScopedFILE file(file_util::OpenFile(filename, "r+b"));
IncrementIntAt(file.get(), offset, inc);
@@ -157,7 +157,7 @@ class PrefixSetTest : public PlatformTest {
file.reset();
int64 new_size_64;
- ASSERT_TRUE(file_util::GetFileSize(filename, &new_size_64));
+ ASSERT_TRUE(base::GetFileSize(filename, &new_size_64));
ASSERT_EQ(new_size_64, size_64);
}
@@ -457,7 +457,7 @@ TEST_F(PrefixSetTest, CorruptionDigest) {
ASSERT_TRUE(GetPrefixSetFile(&filename));
int64 size_64;
- ASSERT_TRUE(file_util::GetFileSize(filename, &size_64));
+ ASSERT_TRUE(base::GetFileSize(filename, &size_64));
file_util::ScopedFILE file(file_util::OpenFile(filename, "r+b"));
long digest_offset = static_cast<long>(size_64 - sizeof(base::MD5Digest));
ASSERT_NO_FATAL_FAILURE(IncrementIntAt(file.get(), digest_offset, 1));
« no previous file with comments | « chrome/browser/safe_browsing/prefix_set.cc ('k') | chrome/browser/safe_browsing/safe_browsing_database.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698