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

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

Issue 2547583002: Landing Recent QUIC changes until Fri Nov 18 23:21:04 2016 +0000 (Closed)
Patch Set: Remove explicit HTTP/2 enum usage Created 4 years 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/quic_stream_sequencer_buffer_interface.h ('k') | net/quic/core/quic_transmission_info.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/core/quic_tag_test.cc
diff --git a/net/quic/core/quic_tag_test.cc b/net/quic/core/quic_tag_test.cc
index 6b1cdd74d3e18f00baae612167e3fbaa1d510645..92a51d7b1855b932e54381047260d6a8962abaf6 100644
--- a/net/quic/core/quic_tag_test.cc
+++ b/net/quic/core/quic_tag_test.cc
@@ -22,6 +22,16 @@ TEST(QuicTagTest, TagToString) {
EXPECT_EQ("525092931", QuicTagToString(MakeQuicTag('C', 'H', 'L', '\x1f')));
}
+TEST(QuicTagTest, MakeQuicTag) {
+ QuicTag tag = MakeQuicTag('A', 'B', 'C', 'D');
+ char bytes[4];
+ memcpy(bytes, &tag, 4);
+ EXPECT_EQ('A', bytes[0]);
+ EXPECT_EQ('B', bytes[1]);
+ EXPECT_EQ('C', bytes[2]);
+ EXPECT_EQ('D', bytes[3]);
+}
+
} // namespace
} // namespace test
} // namespace net
« no previous file with comments | « net/quic/core/quic_stream_sequencer_buffer_interface.h ('k') | net/quic/core/quic_transmission_info.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698