| Index: net/quic/quartc/quartc_alarm_factory_test.cc
|
| diff --git a/net/quic/chromium/quic_chromium_alarm_factory_test.cc b/net/quic/quartc/quartc_alarm_factory_test.cc
|
| similarity index 90%
|
| copy from net/quic/chromium/quic_chromium_alarm_factory_test.cc
|
| copy to net/quic/quartc/quartc_alarm_factory_test.cc
|
| index 1cfe17558e317f561dd61b504eb20fdd02a07670..7cb41a0e14014fd3880b097d22eaa5ea5259e8f0 100644
|
| --- a/net/quic/chromium/quic_chromium_alarm_factory_test.cc
|
| +++ b/net/quic/quartc/quartc_alarm_factory_test.cc
|
| @@ -1,8 +1,8 @@
|
| -// Copyright (c) 2012 The Chromium Authors. All rights reserved.
|
| +// Copyright (c) 2016 The Chromium Authors. All rights reserved.
|
| // Use of this source code is governed by a BSD-style license that can be
|
| // found in the LICENSE file.
|
|
|
| -#include "net/quic/chromium/quic_chromium_alarm_factory.h"
|
| +#include "net/quic/quartc/quartc_alarm_factory.h"
|
|
|
| #include "net/quic/test_tools/mock_clock.h"
|
| #include "net/quic/test_tools/test_task_runner.h"
|
| @@ -25,18 +25,18 @@ class TestDelegate : public QuicAlarm::Delegate {
|
| bool fired_;
|
| };
|
|
|
| -class QuicChromiumAlarmFactoryTest : public ::testing::Test {
|
| +class QuartcAlarmFactoryTest : public ::testing::Test {
|
| protected:
|
| - QuicChromiumAlarmFactoryTest()
|
| + QuartcAlarmFactoryTest()
|
| : runner_(new TestTaskRunner(&clock_)),
|
| alarm_factory_(runner_.get(), &clock_) {}
|
|
|
| scoped_refptr<TestTaskRunner> runner_;
|
| - QuicChromiumAlarmFactory alarm_factory_;
|
| + QuartcAlarmFactory alarm_factory_;
|
| MockClock clock_;
|
| };
|
|
|
| -TEST_F(QuicChromiumAlarmFactoryTest, CreateAlarm) {
|
| +TEST_F(QuartcAlarmFactoryTest, CreateAlarm) {
|
| TestDelegate* delegate = new TestDelegate();
|
| std::unique_ptr<QuicAlarm> alarm(alarm_factory_.CreateAlarm(delegate));
|
|
|
| @@ -53,7 +53,7 @@ TEST_F(QuicChromiumAlarmFactoryTest, CreateAlarm) {
|
| EXPECT_TRUE(delegate->fired());
|
| }
|
|
|
| -TEST_F(QuicChromiumAlarmFactoryTest, CreateAlarmAndCancel) {
|
| +TEST_F(QuartcAlarmFactoryTest, CreateAlarmAndCancel) {
|
| TestDelegate* delegate = new TestDelegate();
|
| std::unique_ptr<QuicAlarm> alarm(alarm_factory_.CreateAlarm(delegate));
|
|
|
| @@ -71,7 +71,7 @@ TEST_F(QuicChromiumAlarmFactoryTest, CreateAlarmAndCancel) {
|
| EXPECT_FALSE(delegate->fired());
|
| }
|
|
|
| -TEST_F(QuicChromiumAlarmFactoryTest, CreateAlarmAndReset) {
|
| +TEST_F(QuartcAlarmFactoryTest, CreateAlarmAndReset) {
|
| TestDelegate* delegate = new TestDelegate();
|
| std::unique_ptr<QuicAlarm> alarm(alarm_factory_.CreateAlarm(delegate));
|
|
|
| @@ -98,7 +98,7 @@ TEST_F(QuicChromiumAlarmFactoryTest, CreateAlarmAndReset) {
|
| EXPECT_TRUE(delegate->fired());
|
| }
|
|
|
| -TEST_F(QuicChromiumAlarmFactoryTest, CreateAlarmAndResetEarlier) {
|
| +TEST_F(QuartcAlarmFactoryTest, CreateAlarmAndResetEarlier) {
|
| TestDelegate* delegate = new TestDelegate();
|
| std::unique_ptr<QuicAlarm> alarm(alarm_factory_.CreateAlarm(delegate));
|
|
|
| @@ -127,7 +127,7 @@ TEST_F(QuicChromiumAlarmFactoryTest, CreateAlarmAndResetEarlier) {
|
| EXPECT_FALSE(delegate->fired());
|
| }
|
|
|
| -TEST_F(QuicChromiumAlarmFactoryTest, CreateAlarmAndUpdate) {
|
| +TEST_F(QuartcAlarmFactoryTest, CreateAlarmAndUpdate) {
|
| TestDelegate* delegate = new TestDelegate();
|
| std::unique_ptr<QuicAlarm> alarm(alarm_factory_.CreateAlarm(delegate));
|
|
|
|
|