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

Unified Diff: net/quic/quic_sent_entropy_manager.h

Issue 479463002: Improve QUIC's SentEntropyManagerTest and removing a test from (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@delete_include_linked_hash_map_h_73256287
Patch Set: Created 6 years, 4 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 | « net/quic/quic_connection_test.cc ('k') | net/quic/quic_sent_entropy_manager_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/quic_sent_entropy_manager.h
diff --git a/net/quic/quic_sent_entropy_manager.h b/net/quic/quic_sent_entropy_manager.h
index c89d97730de047f3797e85b98f4892da21042f50..e7730d569e5b4dfc79500a21a221b620995fe308 100644
--- a/net/quic/quic_sent_entropy_manager.h
+++ b/net/quic/quic_sent_entropy_manager.h
@@ -14,6 +14,10 @@
namespace net {
+namespace test {
+class QuicConnectionPeer;
+} // namespace test
+
// Records all sent packets by a connection to track the cumulative entropy of
// sent packets. It is used by the connection to validate an ack
// frame sent by the peer as a preventive measure against the optimistic ack
@@ -41,6 +45,8 @@ class NET_EXPORT_PRIVATE QuicSentEntropyManager {
void ClearEntropyBefore(QuicPacketSequenceNumber sequence_number);
private:
+ friend class test::QuicConnectionPeer;
+
typedef linked_hash_map<QuicPacketSequenceNumber,
std::pair<QuicPacketEntropyHash,
QuicPacketEntropyHash> > SentEntropyMap;
« no previous file with comments | « net/quic/quic_connection_test.cc ('k') | net/quic/quic_sent_entropy_manager_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698