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

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

Issue 4247: Port some things in browser/{download,history}, minor things in common.... (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: '' Created 12 years, 3 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 | « chrome/browser/profile_manager.h ('k') | chrome/browser/template_url.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/safe_browsing/bloom_filter_unittest.cc
===================================================================
--- chrome/browser/safe_browsing/bloom_filter_unittest.cc (revision 2786)
+++ chrome/browser/safe_browsing/bloom_filter_unittest.cc (working copy)
@@ -12,7 +12,6 @@
#include "base/logging.h"
#include "base/rand_util.h"
#include "base/string_util.h"
-#include "base/win_util.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace {
@@ -24,19 +23,15 @@
}
TEST(SafeBrowsing, BloomFilter) {
- // rand_util isn't random enough on Win2K, see bug 1076619.
- if (win_util::GetWinVersion() == win_util::WINVERSION_2000)
- return;
-
// Use a small number for unit test so it's not slow.
- int count = 1000;//100000;
+ uint32 count = 1000; // 100000;
// Build up the bloom filter.
BloomFilter filter(count * 10);
typedef std::set<int> Values;
Values values;
- for (int i = 0; i < count; ++i) {
+ for (uint32 i = 0; i < count; ++i) {
uint32 value = GenHash();
values.insert(value);
filter.Insert(value);
« no previous file with comments | « chrome/browser/profile_manager.h ('k') | chrome/browser/template_url.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698