summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpaulg@google.com <paulg@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-10-10 00:53:21 +0000
committerpaulg@google.com <paulg@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-10-10 00:53:21 +0000
commit6a3da2147c51fe8df50f19e9e9054e49ff97168f (patch)
tree7a67ca2e0bc34d55b04c53e85aab333287a85183
parent599c07abb917aa5710c40f66c0a97d165300a808 (diff)
downloadchromium_src-6a3da2147c51fe8df50f19e9e9054e49ff97168f.zip
chromium_src-6a3da2147c51fe8df50f19e9e9054e49ff97168f.tar.gz
chromium_src-6a3da2147c51fe8df50f19e9e9054e49ff97168f.tar.bz2
Fix a couple of UMRs in the unit tests.
Review URL: http://codereview.chromium.org/7047 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@3165 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r--chrome/browser/safe_browsing/safe_browsing_database_impl_unittest.cc2
-rw-r--r--chrome/browser/safe_browsing/safe_browsing_database_unittest.cc1
2 files changed, 3 insertions, 0 deletions
diff --git a/chrome/browser/safe_browsing/safe_browsing_database_impl_unittest.cc b/chrome/browser/safe_browsing/safe_browsing_database_impl_unittest.cc
index 6469c33..5e67054 100644
--- a/chrome/browser/safe_browsing/safe_browsing_database_impl_unittest.cc
+++ b/chrome/browser/safe_browsing/safe_browsing_database_impl_unittest.cc
@@ -59,6 +59,7 @@ void PopulateDatabaseForCacheTest(SafeBrowsingDatabase* database) {
SBChunk chunk;
chunk.chunk_number = 1;
+ chunk.is_add = true;
chunk.hosts.push_back(host);
std::deque<SBChunk>* chunks = new std::deque<SBChunk>;
@@ -138,6 +139,7 @@ TEST(SafeBrowsingDatabaseImpl, HashCaching) {
SBChunk chunk;
chunk.chunk_number = 2;
+ chunk.is_add = false;
chunk.hosts.clear();
chunk.hosts.push_back(host);
std::deque<SBChunk>* chunks = new std::deque<SBChunk>;
diff --git a/chrome/browser/safe_browsing/safe_browsing_database_unittest.cc b/chrome/browser/safe_browsing/safe_browsing_database_unittest.cc
index fb14fc8..9074e0b 100644
--- a/chrome/browser/safe_browsing/safe_browsing_database_unittest.cc
+++ b/chrome/browser/safe_browsing/safe_browsing_database_unittest.cc
@@ -93,6 +93,7 @@ TEST(SafeBrowsingDatabase, Database) {
SBChunk chunk;
chunk.chunk_number = 1;
+ chunk.is_add = true;
chunk.hosts.push_back(host);
std::deque<SBChunk>* chunks = new std::deque<SBChunk>;