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

Unified Diff: components/rappor/bloom_filter_unittest.cc

Issue 1090683003: Alternative Multi-dimensional Rappor (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 8 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: components/rappor/bloom_filter_unittest.cc
diff --git a/components/rappor/bloom_filter_unittest.cc b/components/rappor/bloom_filter_unittest.cc
index 25f965f8402835ea354ea5f5f391a839baa9d456..679ffdc50639d398ab16be145faf0e07f87d66cd 100644
--- a/components/rappor/bloom_filter_unittest.cc
+++ b/components/rappor/bloom_filter_unittest.cc
@@ -51,4 +51,9 @@ TEST(BloomFilterTest, HugeFilter) {
EXPECT_EQ(1, CountBits(filter.bytes()));
}
+TEST(BloomFilterTest, GetFunction) {
+ uint64_t bytes_from_get = internal::GetBloomBits(1u, 4u, 0u, "Bar");
+ EXPECT_EQ(uint64_t(0xa8), bytes_from_get);
+}
+
} // namespace rappor

Powered by Google App Engine
This is Rietveld 408576698