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

Unified Diff: crypto/sha2_unittest.cc

Issue 7605019: Reduce number of unnamed-type-template-args violations. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 4 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: crypto/sha2_unittest.cc
===================================================================
--- crypto/sha2_unittest.cc (revision 98480)
+++ crypto/sha2_unittest.cc (working copy)
@@ -45,7 +45,7 @@
0xf2, 0x00, 0x15, 0xad };
std::string output1 = crypto::SHA256HashString(input1);
- ASSERT_EQ(crypto::SHA256_LENGTH, output1.size());
+ ASSERT_EQ(static_cast<size_t>(crypto::SHA256_LENGTH), output1.size());
wtc 2011/08/26 21:20:53 Is this static_cast to size_t still necessary? It
Peter Kasting 2011/08/26 21:32:51 Yes.
wtc 2011/08/26 22:30:50 If we are not re-enabling the warning, then we sho
wtc 2011/08/29 20:44:32 I still want these two files (and the associated .
for (size_t i = 0; i < crypto::SHA256_LENGTH; i++)
EXPECT_EQ(expected1[i], static_cast<uint8>(output1[i]));
}

Powered by Google App Engine
This is Rietveld 408576698