| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include <algorithm> | 5 #include <algorithm> |
| 6 #include <vector> | 6 #include <vector> |
| 7 | 7 |
| 8 #include "base/basictypes.h" |
| 8 #include "base/logging.h" | 9 #include "base/logging.h" |
| 9 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
| 10 #include "net/quic/quic_fec_group.h" | 11 #include "net/quic/quic_fec_group.h" |
| 11 #include "testing/gmock/include/gmock/gmock.h" | 12 #include "testing/gmock/include/gmock/gmock.h" |
| 12 | 13 |
| 13 using ::testing::_; | 14 using ::testing::_; |
| 14 using base::StringPiece; | 15 using base::StringPiece; |
| 15 | 16 |
| 16 namespace net { | 17 namespace net { |
| 17 | 18 |
| (...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 210 | 211 |
| 211 EXPECT_FALSE(group.ProtectsPacketsBefore(1)); | 212 EXPECT_FALSE(group.ProtectsPacketsBefore(1)); |
| 212 EXPECT_FALSE(group.ProtectsPacketsBefore(2)); | 213 EXPECT_FALSE(group.ProtectsPacketsBefore(2)); |
| 213 EXPECT_TRUE(group.ProtectsPacketsBefore(3)); | 214 EXPECT_TRUE(group.ProtectsPacketsBefore(3)); |
| 214 EXPECT_TRUE(group.ProtectsPacketsBefore(4)); | 215 EXPECT_TRUE(group.ProtectsPacketsBefore(4)); |
| 215 EXPECT_TRUE(group.ProtectsPacketsBefore(5)); | 216 EXPECT_TRUE(group.ProtectsPacketsBefore(5)); |
| 216 EXPECT_TRUE(group.ProtectsPacketsBefore(50)); | 217 EXPECT_TRUE(group.ProtectsPacketsBefore(50)); |
| 217 } | 218 } |
| 218 | 219 |
| 219 } // namespace net | 220 } // namespace net |
| OLD | NEW |