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

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

Issue 878333002: fix operator precedence in test. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 11 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/safe_browsing/protocol_parser_unittest.cc
diff --git a/chrome/browser/safe_browsing/protocol_parser_unittest.cc b/chrome/browser/safe_browsing/protocol_parser_unittest.cc
index f3679e22cc3fa0cbbfb722cd9b541ee85b25a157..198f76a6edc22cb33db2a9b24ddf792b97dfadb9 100644
--- a/chrome/browser/safe_browsing/protocol_parser_unittest.cc
+++ b/chrome/browser/safe_browsing/protocol_parser_unittest.cc
@@ -78,8 +78,8 @@ TEST(SafeBrowsingProtocolParsingTest, TestAddFullChunk) {
SBFullHash full_hash1, full_hash2;
for (int i = 0; i < 32; ++i) {
- full_hash1.full_hash[i] = i % 2 ? '1' : '0';
- full_hash2.full_hash[i] = i % 2 ? '3' : '2';
+ full_hash1.full_hash[i] = (i % 2) ? '1' : '0';
+ full_hash2.full_hash[i] = (i % 2) ? '3' : '2';
}
ScopedVector<SBChunkData> chunks;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698