LEFT | RIGHT |
1 /* -*- Mode: C++; c-file-style: "gnu"; indent-tabs-mode:nil; -*- */ | 1 /* -*- Mode: C++; c-file-style: "gnu"; indent-tabs-mode:nil; -*- */ |
2 /* | 2 /* |
3 * Copyright (c) 2016 Natale Patriciello <natale.patriciello@gmail.com> | 3 * Copyright (c) 2016 Natale Patriciello <natale.patriciello@gmail.com> |
4 * | 4 * |
5 * This program is free software; you can redistribute it and/or modify | 5 * This program is free software; you can redistribute it and/or modify |
6 * it under the terms of the GNU General Public License version 2 as | 6 * it under the terms of the GNU General Public License version 2 as |
7 * published by the Free Software Foundation; | 7 * published by the Free Software Foundation; |
8 * | 8 * |
9 * This program is distributed in the hope that it will be useful, | 9 * This program is distributed in the hope that it will be useful, |
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
139 if (who == RECEIVER) | 139 if (who == RECEIVER) |
140 { | 140 { |
141 NS_LOG_DEBUG ("R Rx: seq=" << h.GetSequenceNumber () << " ack=" << h.GetAc
kNumber ()); | 141 NS_LOG_DEBUG ("R Rx: seq=" << h.GetSequenceNumber () << " ack=" << h.GetAc
kNumber ()); |
142 } | 142 } |
143 } | 143 } |
144 | 144 |
145 void | 145 void |
146 TcpRttEstimationTest::UpdatedRttHistory (const SequenceNumber32 & seq, uint32_t
sz, | 146 TcpRttEstimationTest::UpdatedRttHistory (const SequenceNumber32 & seq, uint32_t
sz, |
147 bool isRetransmission, SocketWho who) | 147 bool isRetransmission, SocketWho who) |
148 { | 148 { |
149 NS_UNUSED(who); | 149 NS_UNUSED (who); |
150 if (sz == 0) | 150 if (sz == 0) |
151 { | 151 { |
152 return; | 152 return; |
153 } | 153 } |
154 | 154 |
155 if (seq < m_highestTxSeq) | 155 if (seq < m_highestTxSeq) |
156 { | 156 { |
157 NS_TEST_ASSERT_MSG_EQ (isRetransmission, true, | 157 NS_TEST_ASSERT_MSG_EQ (isRetransmission, true, |
158 "A retransmission is not flagged as such"); | 158 "A retransmission is not flagged as such"); |
159 } | 159 } |
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
294 " a lot of data, with retr", | 294 " a lot of data, with retr", |
295 true, 1000, toDrop), | 295 true, 1000, toDrop), |
296 TestCase::QUICK); | 296 TestCase::QUICK); |
297 } | 297 } |
298 | 298 |
299 }; | 299 }; |
300 | 300 |
301 static TcpRttEstimationTestSuite g_tcpRttEstimationTestSuite; //!< Static variab
le for test initialization | 301 static TcpRttEstimationTestSuite g_tcpRttEstimationTestSuite; //!< Static variab
le for test initialization |
302 | 302 |
303 | 303 |
LEFT | RIGHT |