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

Unified Diff: components/policy/core/common/policy_loader_win_unittest.cc

Issue 614893004: Refactor AppendToFile and WriteFileDescriptor (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address nits Created 6 years, 2 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: components/policy/core/common/policy_loader_win_unittest.cc
diff --git a/components/policy/core/common/policy_loader_win_unittest.cc b/components/policy/core/common/policy_loader_win_unittest.cc
index 88205b4a67a879f42a35179880606d50809d55ab..227997cae7f1a7b3296e80066b78be7a377247e1 100644
--- a/components/policy/core/common/policy_loader_win_unittest.cc
+++ b/components/policy/core/common/policy_loader_win_unittest.cc
@@ -588,11 +588,10 @@ void PRegTestHarness::AppendRecordToPRegFile(const base::string16& path,
buffer.insert(buffer.end(), data, data + size);
AppendChars(&buffer, L"]");
- ASSERT_EQ(buffer.size(),
- base::AppendToFile(
- preg_file_path_,
- reinterpret_cast<const char*>(vector_as_array(&buffer)),
- buffer.size()));
+ ASSERT_TRUE(base::AppendToFile(
+ preg_file_path_,
+ reinterpret_cast<const char*>(vector_as_array(&buffer)),
+ buffer.size()));
}
void PRegTestHarness::AppendDWORDToPRegFile(const base::string16& path,
« no previous file with comments | « components/metrics/serialization/serialization_utils.cc ('k') | content/common/gpu/media/vaapi_h264_decoder_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698