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

Unified Diff: chrome/browser/chromeos/settings/owner_key_util_unittest.cc

Issue 184563006: Move WriteFile and WriteFileDescriptor from file_util to base namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 10 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
Index: chrome/browser/chromeos/settings/owner_key_util_unittest.cc
diff --git a/chrome/browser/chromeos/settings/owner_key_util_unittest.cc b/chrome/browser/chromeos/settings/owner_key_util_unittest.cc
index b009c335d695b8b929ac1b115c060f72a024d895..c5ec00cd85a4be785b4ae6deae842a1c115554a3 100644
--- a/chrome/browser/chromeos/settings/owner_key_util_unittest.cc
+++ b/chrome/browser/chromeos/settings/owner_key_util_unittest.cc
@@ -71,7 +71,7 @@ TEST_F(OwnerKeyUtilTest, ImportPublicKey) {
std::vector<uint8> public_key(kTestKeyData,
kTestKeyData + sizeof(kTestKeyData));
ASSERT_EQ(static_cast<int>(public_key.size()),
- file_util::WriteFile(
+ base::WriteFile(
key_file_,
reinterpret_cast<const char*>(vector_as_array(&public_key)),
public_key.size()));
@@ -91,7 +91,7 @@ TEST_F(OwnerKeyUtilTest, ImportPublicKeyFailed) {
// Next try empty file. This should fail and the array should be empty.
from_disk.resize(10);
- ASSERT_EQ(0, file_util::WriteFile(key_file_, "", 0));
+ ASSERT_EQ(0, base::WriteFile(key_file_, "", 0));
EXPECT_TRUE(util_->IsPublicKeyPresent());
EXPECT_FALSE(util_->ImportPublicKey(&from_disk));
EXPECT_FALSE(from_disk.size());

Powered by Google App Engine
This is Rietveld 408576698