19 #ifndef PAGESPEED_KERNEL_BASE_MOCK_HASHER_H_
20 #define PAGESPEED_KERNEL_BASE_MOCK_HASHER_H_
27 namespace net_instaweb {
36 :
Hasher(hash_value.size()),
37 hash_value_(hash_value.data(), hash_value.size()) {
46 void set_hash_value(
const GoogleString& new_hash_value) {
47 hash_value_ = new_hash_value;
virtual GoogleString RawHash(const StringPiece &content) const
Definition: mock_hasher.h:42
std::string GoogleString
PAGESPEED_KERNEL_BASE_STRING_H_.
Definition: string.h:24
virtual int RawHashSizeInBytes() const
The number of bytes RawHash will produce.
Definition: mock_hasher.h:50
Definition: mock_hasher.h:29
MockHasher()
Definition: mock_hasher.h:31