diff options
author | mattm@chromium.org <mattm@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-10-14 19:31:58 +0000 |
---|---|---|
committer | mattm@chromium.org <mattm@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-10-14 19:31:58 +0000 |
commit | 071a3f8cd7baaf36d520a5ae48e04cd31efa34f1 (patch) | |
tree | 6b8e579c0cdbe4bab16940a3fbf4f82dd4ffec3a /chrome/browser/safe_browsing/protocol_parser_unittest.cc | |
parent | 86d7ab8851eab9b35ab8b3210d3b2c163ce8bafd (diff) | |
download | chromium_src-071a3f8cd7baaf36d520a5ae48e04cd31efa34f1.zip chromium_src-071a3f8cd7baaf36d520a5ae48e04cd31efa34f1.tar.gz chromium_src-071a3f8cd7baaf36d520a5ae48e04cd31efa34f1.tar.bz2 |
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
Diffstat (limited to 'chrome/browser/safe_browsing/protocol_parser_unittest.cc')
-rw-r--r-- | chrome/browser/safe_browsing/protocol_parser_unittest.cc | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/chrome/browser/safe_browsing/protocol_parser_unittest.cc b/chrome/browser/safe_browsing/protocol_parser_unittest.cc index c41ac7e..eac93b7 100644 --- a/chrome/browser/safe_browsing/protocol_parser_unittest.cc +++ b/chrome/browser/safe_browsing/protocol_parser_unittest.cc @@ -406,10 +406,10 @@ TEST(SafeBrowsingProtocolParsingTest, TestGetHash) { 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 @@ TEST(SafeBrowsingProtocolParsingTest, TestGetHash) { "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)); |