Index: net/quic/test_tools/quic_test_utils.h |
diff --git a/net/quic/test_tools/quic_test_utils.h b/net/quic/test_tools/quic_test_utils.h |
index 0209669c5a9818d64c917926369362f931721d14..d93bc3c98da17539e347fbf0ef8e43d224fd3ab9 100644 |
--- a/net/quic/test_tools/quic_test_utils.h |
+++ b/net/quic/test_tools/quic_test_utils.h |
@@ -216,6 +216,9 @@ class QuicFlagSaver { |
~QuicFlagSaver(); |
}; |
+// Compute SHA-1 hash of the supplied std::string. |
+std::string Sha1Hash(base::StringPiece data); |
+ |
// Simple random number generator used to compute random numbers suitable |
// for pseudo-randomly dropping packets in tests. It works by computing |
// the sha1 hash of the current seed, and using the first 64 bits as |