Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(55)

Side by Side Diff: net/quic/core/quic_alarm_test.cc

Issue 2611613003: Add quic_logging (Closed)
Patch Set: fix failed test? Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « net/quic/core/quic_alarm.cc ('k') | net/quic/core/quic_arena_scoped_ptr.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « net/quic/core/quic_alarm.cc ('k') | net/quic/core/quic_arena_scoped_ptr.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698