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

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

Issue 2737353005: n/a (delete unused code from /gfe/quic/core/quic_framer_test.cc) (Closed)
Patch Set: Created 3 years, 9 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/core/quic_framer_test.cc
diff --git a/net/quic/core/quic_framer_test.cc b/net/quic/core/quic_framer_test.cc
index ea6f06c0d41dfec5bac30d66878004a003f4e791..ca912e6f26861607f25826514c63ad22cd5b70db 100644
--- a/net/quic/core/quic_framer_test.cc
+++ b/net/quic/core/quic_framer_test.cc
@@ -57,13 +57,6 @@ size_t GetMinStreamFrameSize() {
return kQuicFrameTypeSize + kQuicMaxStreamIdSize + kQuicMaxStreamOffsetSize;
}
-// Index into the path id offset in the header (if present).
-size_t GetPathIdOffset(QuicConnectionIdLength connection_id_length,
- bool include_version) {
- return kConnectionIdOffset + connection_id_length +
- (include_version ? kQuicVersionSize : 0);
-}
-
// Index into the packet number offset in the header.
size_t GetPacketNumberOffset(QuicConnectionIdLength connection_id_length,
bool include_version) {
@@ -75,23 +68,6 @@ size_t GetPacketNumberOffset(bool include_version) {
return GetPacketNumberOffset(PACKET_8BYTE_CONNECTION_ID, include_version);
}
-// Index into the private flags offset in the data packet header.
-size_t GetPrivateFlagsOffset(QuicConnectionIdLength connection_id_length,
- bool include_version) {
- return GetPacketNumberOffset(connection_id_length, include_version) +
- PACKET_6BYTE_PACKET_NUMBER;
-}
-
-size_t GetPrivateFlagsOffset(bool include_version) {
- return GetPrivateFlagsOffset(PACKET_8BYTE_CONNECTION_ID, include_version);
-}
-
-size_t GetPrivateFlagsOffset(bool include_version,
- QuicPacketNumberLength packet_number_length) {
- return GetPacketNumberOffset(PACKET_8BYTE_CONNECTION_ID, include_version) +
- packet_number_length;
-}
-
// Index into the message tag of the public reset packet.
// Public resets always have full connection_ids.
const size_t kPublicResetPacketMessageTagOffset =
@@ -129,7 +105,6 @@ class TestEncrypter : public QuicEncrypter {
QuicStringPiece GetNoncePrefix() const override { return QuicStringPiece(); }
QuicVersion version_;
- Perspective perspective_;
QuicPacketNumber packet_number_;
string associated_data_;
string plaintext_;
@@ -168,7 +143,6 @@ class TestDecrypter : public QuicDecrypter {
// Use a distinct value starting with 0xFFFFFF, which is never used by TLS.
uint32_t cipher_id() const override { return 0xFFFFFFF2; }
QuicVersion version_;
- Perspective perspective_;
QuicPacketNumber packet_number_;
string associated_data_;
string ciphertext_;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698