Index: components/rappor/bloom_filter.h |
diff --git a/components/rappor/bloom_filter.h b/components/rappor/bloom_filter.h |
index d9acfa4efce9aead751059d2b87ab544036a70f3..482f1c3668eeadff185ba9ead35aa4b90cf70e2a 100644 |
--- a/components/rappor/bloom_filter.h |
+++ b/components/rappor/bloom_filter.h |
@@ -25,12 +25,15 @@ class BloomFilter { |
uint32_t hash_seed_offset); |
~BloomFilter(); |
- // Add a single string to the Bloom filter. |
- void AddString(const std::string& str); |
+ // Sets the Bloom filter bits to contain a single string. |
+ void SetString(const std::string& str); |
// Returns the current value of the Bloom filter's bit array. |
const ByteVector& bytes() const { return bytes_; }; |
+ // Sets bytes for testing purposes. |
+ void SetBytesForTesting(const ByteVector& bytes); |
+ |
private: |
// Stores the byte array of the Bloom filter. |
ByteVector bytes_; |