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

Side by Side Diff: media/cast/sender/audio_sender_unittest.cc

Issue 661163004: Standardize usage of virtual/override/final specifiers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 1 month 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 <stdint.h> 5 #include <stdint.h>
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/bind_helpers.h" 8 #include "base/bind_helpers.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "base/test/simple_test_tick_clock.h" 10 #include "base/test/simple_test_tick_clock.h"
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 base::Bind(&UpdateCastTransportStatus), 82 base::Bind(&UpdateCastTransportStatus),
83 BulkRawEventsCallback(), 83 BulkRawEventsCallback(),
84 base::TimeDelta(), 84 base::TimeDelta(),
85 task_runner_, 85 task_runner_,
86 &transport_)); 86 &transport_));
87 audio_sender_.reset(new AudioSender( 87 audio_sender_.reset(new AudioSender(
88 cast_environment_, audio_config_, transport_sender_.get())); 88 cast_environment_, audio_config_, transport_sender_.get()));
89 task_runner_->RunTasks(); 89 task_runner_->RunTasks();
90 } 90 }
91 91
92 virtual ~AudioSenderTest() {} 92 ~AudioSenderTest() override {}
93 93
94 static void UpdateCastTransportStatus(CastTransportStatus status) { 94 static void UpdateCastTransportStatus(CastTransportStatus status) {
95 EXPECT_EQ(TRANSPORT_AUDIO_INITIALIZED, status); 95 EXPECT_EQ(TRANSPORT_AUDIO_INITIALIZED, status);
96 } 96 }
97 97
98 base::SimpleTestTickClock* testing_clock_; // Owned by CastEnvironment. 98 base::SimpleTestTickClock* testing_clock_; // Owned by CastEnvironment.
99 TestPacketSender transport_; 99 TestPacketSender transport_;
100 scoped_ptr<CastTransportSenderImpl> transport_sender_; 100 scoped_ptr<CastTransportSenderImpl> transport_sender_;
101 scoped_refptr<test::FakeSingleThreadTaskRunner> task_runner_; 101 scoped_refptr<test::FakeSingleThreadTaskRunner> task_runner_;
102 scoped_ptr<AudioSender> audio_sender_; 102 scoped_ptr<AudioSender> audio_sender_;
(...skipping 30 matching lines...) Expand all
133 base::TimeDelta max_rtcp_timeout = 133 base::TimeDelta max_rtcp_timeout =
134 base::TimeDelta::FromMilliseconds(1 + kDefaultRtcpIntervalMs * 3 / 2); 134 base::TimeDelta::FromMilliseconds(1 + kDefaultRtcpIntervalMs * 3 / 2);
135 testing_clock_->Advance(max_rtcp_timeout); 135 testing_clock_->Advance(max_rtcp_timeout);
136 task_runner_->RunTasks(); 136 task_runner_->RunTasks();
137 EXPECT_LE(1, transport_.number_of_rtp_packets()); 137 EXPECT_LE(1, transport_.number_of_rtp_packets());
138 EXPECT_LE(1, transport_.number_of_rtcp_packets()); 138 EXPECT_LE(1, transport_.number_of_rtcp_packets());
139 } 139 }
140 140
141 } // namespace cast 141 } // namespace cast
142 } // namespace media 142 } // namespace media
OLDNEW
« no previous file with comments | « media/cast/sender/audio_encoder_unittest.cc ('k') | media/cast/sender/external_video_encoder_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698