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

Side by Side Diff: media/cast/pacing/paced_sender_unittest.cc

Issue 69603002: Incorporating logging into Cast (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Adding scoped_ptr include Created 7 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 | Annotate | Revision Log
« no previous file with comments | « media/cast/logging/logging_stats.cc ('k') | media/cast/rtcp/rtcp.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 "base/test/simple_test_tick_clock.h" 5 #include "base/test/simple_test_tick_clock.h"
6 #include "media/cast/pacing/paced_sender.h" 6 #include "media/cast/pacing/paced_sender.h"
7 #include "media/cast/test/fake_task_runner.h" 7 #include "media/cast/test/fake_task_runner.h"
8 #include "testing/gmock/include/gmock/gmock.h" 8 #include "testing/gmock/include/gmock/gmock.h"
9 9
10 namespace media { 10 namespace media {
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 PacedSenderTest() { 52 PacedSenderTest() {
53 testing_clock_.Advance( 53 testing_clock_.Advance(
54 base::TimeDelta::FromMilliseconds(kStartMillisecond)); 54 base::TimeDelta::FromMilliseconds(kStartMillisecond));
55 } 55 }
56 56
57 virtual ~PacedSenderTest() {} 57 virtual ~PacedSenderTest() {}
58 58
59 virtual void SetUp() { 59 virtual void SetUp() {
60 task_runner_ = new test::FakeTaskRunner(&testing_clock_); 60 task_runner_ = new test::FakeTaskRunner(&testing_clock_);
61 cast_environment_ = new CastEnvironment(&testing_clock_, task_runner_, 61 cast_environment_ = new CastEnvironment(&testing_clock_, task_runner_,
62 task_runner_, task_runner_, task_runner_, task_runner_); 62 task_runner_, task_runner_, task_runner_, task_runner_,
63 GetDefaultCastLoggingConfig());
63 paced_sender_.reset(new PacedSender(cast_environment_, &mock_transport_)); 64 paced_sender_.reset(new PacedSender(cast_environment_, &mock_transport_));
64 } 65 }
65 66
66 PacketList CreatePacketList(size_t packet_size, int num_of_packets_in_frame) { 67 PacketList CreatePacketList(size_t packet_size, int num_of_packets_in_frame) {
67 PacketList packets; 68 PacketList packets;
68 for (int i = 0; i < num_of_packets_in_frame; ++i) { 69 for (int i = 0; i < num_of_packets_in_frame; ++i) {
69 packets.push_back(Packet(packet_size, kValue)); 70 packets.push_back(Packet(packet_size, kValue));
70 } 71 }
71 return packets; 72 return packets;
72 } 73 }
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after
247 mock_transport_.AddExpectedSize(kSize4, 5); 248 mock_transport_.AddExpectedSize(kSize4, 5);
248 testing_clock_.Advance(timeout_10ms); 249 testing_clock_.Advance(timeout_10ms);
249 task_runner_->RunTasks(); 250 task_runner_->RunTasks();
250 251
251 testing_clock_.Advance(timeout_10ms); 252 testing_clock_.Advance(timeout_10ms);
252 task_runner_->RunTasks(); 253 task_runner_->RunTasks();
253 } 254 }
254 255
255 } // namespace cast 256 } // namespace cast
256 } // namespace media 257 } // namespace media
OLDNEW
« no previous file with comments | « media/cast/logging/logging_stats.cc ('k') | media/cast/rtcp/rtcp.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698