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