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

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

Issue 112133002: Cast:Moving netwrok sender related code to a designated folder (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years 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
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/bind.h" 5 #include "base/bind.h"
6 #include "base/bind_helpers.h" 6 #include "base/bind_helpers.h"
7 #include "base/memory/scoped_ptr.h" 7 #include "base/memory/scoped_ptr.h"
8 #include "base/test/simple_test_tick_clock.h" 8 #include "base/test/simple_test_tick_clock.h"
9 #include "media/base/media.h" 9 #include "media/base/media.h"
10 #include "media/cast/audio_sender/audio_sender.h" 10 #include "media/cast/audio_sender/audio_sender.h"
11 #include "media/cast/cast_config.h" 11 #include "media/cast/cast_config.h"
12 #include "media/cast/cast_environment.h" 12 #include "media/cast/cast_environment.h"
13 #include "media/cast/pacing/mock_paced_packet_sender.h" 13 #include "media/cast/net/pacing/mock_paced_packet_sender.h"
14 #include "media/cast/test/audio_utility.h" 14 #include "media/cast/test/audio_utility.h"
15 #include "media/cast/test/fake_task_runner.h" 15 #include "media/cast/test/fake_task_runner.h"
16 #include "testing/gtest/include/gtest/gtest.h" 16 #include "testing/gtest/include/gtest/gtest.h"
17 17
18 namespace media { 18 namespace media {
19 namespace cast { 19 namespace cast {
20 20
21 static const int64 kStartMillisecond = GG_INT64_C(12345678900000); 21 static const int64 kStartMillisecond = GG_INT64_C(12345678900000);
22 22
23 using testing::_; 23 using testing::_;
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 93
94 // Make sure that we send at least one RTCP packet. 94 // Make sure that we send at least one RTCP packet.
95 base::TimeDelta max_rtcp_timeout = 95 base::TimeDelta max_rtcp_timeout =
96 base::TimeDelta::FromMilliseconds(1 + kDefaultRtcpIntervalMs * 3 / 2); 96 base::TimeDelta::FromMilliseconds(1 + kDefaultRtcpIntervalMs * 3 / 2);
97 testing_clock_.Advance(max_rtcp_timeout); 97 testing_clock_.Advance(max_rtcp_timeout);
98 task_runner_->RunTasks(); 98 task_runner_->RunTasks();
99 } 99 }
100 100
101 } // namespace cast 101 } // namespace cast
102 } // namespace media 102 } // namespace media
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698