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

Unified Diff: net/quic/core/packet_number_indexed_queue_test.cc

Issue 2901773004: Landing Recent QUIC changes until May 20, 2017. (Closed)
Patch Set: Disable quic_restart_flag_quic_big_endian_connection_id_server until tests can be fixed. Created 3 years, 7 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/core/packet_number_indexed_queue.h ('k') | net/quic/core/quic_connection.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/core/packet_number_indexed_queue_test.cc
diff --git a/net/quic/core/packet_number_indexed_queue_test.cc b/net/quic/core/packet_number_indexed_queue_test.cc
index 2fb30b76585c465aacd0f1ce10ddf1bf5dcfffd9..3d8c6cc1ece6ff03a3d395d9ba12a3d4ad101051 100644
--- a/net/quic/core/packet_number_indexed_queue_test.cc
+++ b/net/quic/core/packet_number_indexed_queue_test.cc
@@ -169,5 +169,13 @@ TEST_F(PacketNumberIndexedQueueTest, FailToRemoveElementsTwice) {
ASSERT_FALSE(queue_.Remove(1001));
}
+TEST_F(PacketNumberIndexedQueueTest, ConstGetter) {
+ queue_.Emplace(1001, "one");
+ const auto& const_queue = queue_;
+
+ EXPECT_EQ("one", *const_queue.GetEntry(1001));
+ EXPECT_EQ(nullptr, const_queue.GetEntry(1002));
+}
+
} // namespace
} // namespace net
« no previous file with comments | « net/quic/core/packet_number_indexed_queue.h ('k') | net/quic/core/quic_connection.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698