OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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 "net/quic/congestion_control/pacing_sender.h" | 5 #include "net/quic/core/congestion_control/pacing_sender.h" |
6 | 6 |
7 #include <memory> | 7 #include <memory> |
8 | 8 |
9 #include "base/logging.h" | 9 #include "base/logging.h" |
10 #include "net/quic/quic_protocol.h" | 10 #include "net/quic/core/quic_protocol.h" |
11 #include "net/quic/test_tools/mock_clock.h" | 11 #include "net/quic/test_tools/mock_clock.h" |
12 #include "net/quic/test_tools/quic_test_utils.h" | 12 #include "net/quic/test_tools/quic_test_utils.h" |
13 #include "testing/gtest/include/gtest/gtest.h" | 13 #include "testing/gtest/include/gtest/gtest.h" |
14 | 14 |
15 using testing::Return; | 15 using testing::Return; |
16 using testing::StrictMock; | 16 using testing::StrictMock; |
17 using testing::_; | 17 using testing::_; |
18 | 18 |
19 namespace net { | 19 namespace net { |
20 namespace test { | 20 namespace test { |
(...skipping 374 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
395 EXPECT_CALL(*mock_sender_, GetSlowStartThreshold()).WillOnce(Return(kBytes)); | 395 EXPECT_CALL(*mock_sender_, GetSlowStartThreshold()).WillOnce(Return(kBytes)); |
396 EXPECT_EQ(kBytes, pacing_sender_->GetSlowStartThreshold()); | 396 EXPECT_EQ(kBytes, pacing_sender_->GetSlowStartThreshold()); |
397 | 397 |
398 EXPECT_CALL(*mock_sender_, GetCongestionControlType()) | 398 EXPECT_CALL(*mock_sender_, GetCongestionControlType()) |
399 .WillOnce(Return(kReno)); | 399 .WillOnce(Return(kReno)); |
400 EXPECT_EQ(kReno, pacing_sender_->GetCongestionControlType()); | 400 EXPECT_EQ(kReno, pacing_sender_->GetCongestionControlType()); |
401 } | 401 } |
402 | 402 |
403 } // namespace test | 403 } // namespace test |
404 } // namespace net | 404 } // namespace net |
OLD | NEW |