Coverity: check return of SafeBrowsingProtocolParser::ParseGetHash.
CID=6428
TEST=none
BUG=none
Review URL: http://codereview.chromium.org/261034
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@28996 0039d316-1c4b-4281-b951-d872f2087c98
diff --git a/chrome/browser/safe_browsing/protocol_parser_unittest.cc b/chrome/browser/safe_browsing/protocol_parser_unittest.cc
index c41ac7e..eac93b75 100644
--- a/chrome/browser/safe_browsing/protocol_parser_unittest.cc
+++ b/chrome/browser/safe_browsing/protocol_parser_unittest.cc
@@ -406,10 +406,10 @@
std::vector<SBFullHashResult> full_hashes;
bool re_key = false;
SafeBrowsingProtocolParser parser;
- parser.ParseGetHash(get_hash.data(),
- static_cast<int>(get_hash.length()), "",
- &re_key,
- &full_hashes);
+ EXPECT_TRUE(parser.ParseGetHash(get_hash.data(),
+ static_cast<int>(get_hash.length()), "",
+ &re_key,
+ &full_hashes));
EXPECT_FALSE(re_key);
EXPECT_EQ(full_hashes.size(), static_cast<size_t>(3));
@@ -432,10 +432,10 @@
"goog-malware-shavar:19:64\n"
"cafebeefcafebeefdeaddeaddeaddead"
"zzzzyyyyxxxxwwwwvvvvuuuuttttssss");
- parser.ParseGetHash(get_hash2.data(),
- static_cast<int>(get_hash2.length()), "",
- &re_key,
- &full_hashes);
+ EXPECT_TRUE(parser.ParseGetHash(get_hash2.data(),
+ static_cast<int>(get_hash2.length()), "",
+ &re_key,
+ &full_hashes));
EXPECT_FALSE(re_key);
EXPECT_EQ(full_hashes.size(), static_cast<size_t>(3));