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

Side by Side Diff: media/cast/net/pacing/paced_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/big_endian.h" 7 #include "base/big_endian.h"
8 #include "base/test/simple_test_tick_clock.h" 8 #include "base/test/simple_test_tick_clock.h"
9 #include "media/cast/logging/logging_impl.h" 9 #include "media/cast/logging/logging_impl.h"
10 #include "media/cast/logging/simple_event_subscriber.h" 10 #include "media/cast/logging/simple_event_subscriber.h"
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 paced_sender_.reset(new PacedSender(kTargetBurstSize, 66 paced_sender_.reset(new PacedSender(kTargetBurstSize,
67 kMaxBurstSize, 67 kMaxBurstSize,
68 &testing_clock_, 68 &testing_clock_,
69 &logging_, 69 &logging_,
70 &mock_transport_, 70 &mock_transport_,
71 task_runner_)); 71 task_runner_));
72 paced_sender_->RegisterAudioSsrc(kAudioSsrc); 72 paced_sender_->RegisterAudioSsrc(kAudioSsrc);
73 paced_sender_->RegisterVideoSsrc(kVideoSsrc); 73 paced_sender_->RegisterVideoSsrc(kVideoSsrc);
74 } 74 }
75 75
76 virtual ~PacedSenderTest() { 76 ~PacedSenderTest() override {
77 logging_.RemoveRawEventSubscriber(&subscriber_); 77 logging_.RemoveRawEventSubscriber(&subscriber_);
78 } 78 }
79 79
80 static void UpdateCastTransportStatus(CastTransportStatus status) { 80 static void UpdateCastTransportStatus(CastTransportStatus status) {
81 NOTREACHED(); 81 NOTREACHED();
82 } 82 }
83 83
84 SendPacketVector CreateSendPacketVector(size_t packet_size, 84 SendPacketVector CreateSendPacketVector(size_t packet_size,
85 int num_of_packets_in_frame, 85 int num_of_packets_in_frame,
86 bool audio) { 86 bool audio) {
(...skipping 372 matching lines...) Expand 10 before | Expand all | Expand 10 after
459 EXPECT_TRUE(paced_sender_->ResendPackets(packets, dedup_info)); 459 EXPECT_TRUE(paced_sender_->ResendPackets(packets, dedup_info));
460 EXPECT_EQ(static_cast<int64>(kSize1), mock_transport_.GetBytesSent()); 460 EXPECT_EQ(static_cast<int64>(kSize1), mock_transport_.GetBytesSent());
461 461
462 dedup_info.resend_interval = base::TimeDelta::FromMilliseconds(5); 462 dedup_info.resend_interval = base::TimeDelta::FromMilliseconds(5);
463 EXPECT_TRUE(paced_sender_->ResendPackets(packets, dedup_info)); 463 EXPECT_TRUE(paced_sender_->ResendPackets(packets, dedup_info));
464 EXPECT_EQ(static_cast<int64>(2 * kSize1), mock_transport_.GetBytesSent()); 464 EXPECT_EQ(static_cast<int64>(2 * kSize1), mock_transport_.GetBytesSent());
465 } 465 }
466 466
467 } // namespace cast 467 } // namespace cast
468 } // namespace media 468 } // namespace media
OLDNEW
« no previous file with comments | « media/cast/net/frame_id_wrap_helper_test.cc ('k') | media/cast/net/rtcp/receiver_rtcp_event_subscriber_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698