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

Unified Diff: net/quic/chromium/quic_chromium_alarm_factory_test.cc

Issue 2627863002: Split Closure part of TestPendingTask out of the struct (Closed)
Patch Set: rebase 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « media/cast/test/skewed_single_thread_task_runner.h ('k') | net/quic/chromium/quic_stream_factory_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/chromium/quic_chromium_alarm_factory_test.cc
diff --git a/net/quic/chromium/quic_chromium_alarm_factory_test.cc b/net/quic/chromium/quic_chromium_alarm_factory_test.cc
index 1cfe17558e317f561dd61b504eb20fdd02a07670..275618013e46d3b60cc558464292e024c853e2ed 100644
--- a/net/quic/chromium/quic_chromium_alarm_factory_test.cc
+++ b/net/quic/chromium/quic_chromium_alarm_factory_test.cc
@@ -46,7 +46,7 @@ TEST_F(QuicChromiumAlarmFactoryTest, CreateAlarm) {
// Verify that the alarm task has been posted.
ASSERT_EQ(1u, runner_->GetPostedTasks().size());
EXPECT_EQ(base::TimeDelta::FromMicroseconds(delta.ToMicroseconds()),
- runner_->GetPostedTasks()[0].delay);
+ runner_->GetPostedTasks()[0].first.delay);
runner_->RunNextTask();
EXPECT_EQ(QuicTime::Zero() + delta, clock_.Now());
@@ -64,7 +64,7 @@ TEST_F(QuicChromiumAlarmFactoryTest, CreateAlarmAndCancel) {
// The alarm task should still be posted.
ASSERT_EQ(1u, runner_->GetPostedTasks().size());
EXPECT_EQ(base::TimeDelta::FromMicroseconds(delta.ToMicroseconds()),
- runner_->GetPostedTasks()[0].delay);
+ runner_->GetPostedTasks()[0].first.delay);
runner_->RunNextTask();
EXPECT_EQ(QuicTime::Zero() + delta, clock_.Now());
@@ -84,7 +84,7 @@ TEST_F(QuicChromiumAlarmFactoryTest, CreateAlarmAndReset) {
// The alarm task should still be posted.
ASSERT_EQ(1u, runner_->GetPostedTasks().size());
EXPECT_EQ(base::TimeDelta::FromMicroseconds(delta.ToMicroseconds()),
- runner_->GetPostedTasks()[0].delay);
+ runner_->GetPostedTasks()[0].first.delay);
runner_->RunNextTask();
EXPECT_EQ(QuicTime::Zero() + delta, clock_.Now());
@@ -140,7 +140,7 @@ TEST_F(QuicChromiumAlarmFactoryTest, CreateAlarmAndUpdate) {
// The alarm task should still be posted.
ASSERT_EQ(1u, runner_->GetPostedTasks().size());
EXPECT_EQ(base::TimeDelta::FromMicroseconds(delta.ToMicroseconds()),
- runner_->GetPostedTasks()[0].delay);
+ runner_->GetPostedTasks()[0].first.delay);
runner_->RunNextTask();
EXPECT_EQ(QuicTime::Zero() + delta, clock_.Now());
@@ -152,7 +152,7 @@ TEST_F(QuicChromiumAlarmFactoryTest, CreateAlarmAndUpdate) {
ASSERT_EQ(1u, runner_->GetPostedTasks().size());
EXPECT_EQ(
base::TimeDelta::FromMicroseconds((new_delta - delta).ToMicroseconds()),
- runner_->GetPostedTasks()[0].delay);
+ runner_->GetPostedTasks()[0].first.delay);
runner_->RunNextTask();
EXPECT_EQ(start + new_delta, clock_.Now());
EXPECT_TRUE(delegate->fired());
« no previous file with comments | « media/cast/test/skewed_single_thread_task_runner.h ('k') | net/quic/chromium/quic_stream_factory_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698