OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 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/quic_alarm.h" | 5 #include "net/quic/core/quic_alarm.h" |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
8 #include "testing/gmock/include/gmock/gmock.h" | 8 #include "testing/gmock/include/gmock/gmock.h" |
9 #include "testing/gtest/include/gtest/gtest.h" | 9 #include "testing/gtest/include/gtest/gtest.h" |
10 | 10 |
11 using testing::Return; | 11 using testing::Return; |
12 using testing::Invoke; | 12 using testing::Invoke; |
13 | 13 |
14 namespace net { | 14 namespace net { |
15 namespace test { | 15 namespace test { |
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
159 delegate->set_alarm(alarm); | 159 delegate->set_alarm(alarm); |
160 QuicTime deadline = QuicTime::Zero() + QuicTime::Delta::FromSeconds(7); | 160 QuicTime deadline = QuicTime::Zero() + QuicTime::Delta::FromSeconds(7); |
161 alarm->Set(deadline); | 161 alarm->Set(deadline); |
162 // This should not crash, even though it will destroy alarm. | 162 // This should not crash, even though it will destroy alarm. |
163 alarm->FireAlarm(); | 163 alarm->FireAlarm(); |
164 } | 164 } |
165 | 165 |
166 } // namespace | 166 } // namespace |
167 } // namespace test | 167 } // namespace test |
168 } // namespace net | 168 } // namespace net |
OLD | NEW |