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

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

Issue 100823015: Cast: move net->transport (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Updating transport callback Created 6 years, 12 months 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/transport/pacing/paced_sender.cc ('k') | media/cast/transport/rtcp/rtcp_builder.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/net/pacing/paced_sender.h"
7 #include "media/cast/test/fake_task_runner.h" 6 #include "media/cast/test/fake_task_runner.h"
7 #include "media/cast/transport/pacing/paced_sender.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 {
11 namespace cast { 11 namespace cast {
12 namespace transport {
12 13
13 using testing::_; 14 using testing::_;
14 15
15 static const uint8 kValue = 123; 16 static const uint8 kValue = 123;
16 static const size_t kSize1 = 100; 17 static const size_t kSize1 = 100;
17 static const size_t kSize2 = 101; 18 static const size_t kSize2 = 101;
18 static const size_t kSize3 = 102; 19 static const size_t kSize3 = 102;
19 static const size_t kSize4 = 103; 20 static const size_t kSize4 = 103;
20 static const size_t kNackSize = 104; 21 static const size_t kNackSize = 104;
21 static const int64 kStartMillisecond = GG_INT64_C(12345678900000); 22 static const int64 kStartMillisecond = GG_INT64_C(12345678900000);
(...skipping 224 matching lines...) Expand 10 before | Expand all | Expand 10 after
246 task_runner_->RunTasks(); 247 task_runner_->RunTasks();
247 248
248 mock_transport_.AddExpectedSize(kSize4, 5); 249 mock_transport_.AddExpectedSize(kSize4, 5);
249 testing_clock_.Advance(timeout_10ms); 250 testing_clock_.Advance(timeout_10ms);
250 task_runner_->RunTasks(); 251 task_runner_->RunTasks();
251 252
252 testing_clock_.Advance(timeout_10ms); 253 testing_clock_.Advance(timeout_10ms);
253 task_runner_->RunTasks(); 254 task_runner_->RunTasks();
254 } 255 }
255 256
257 } // namespace transport
256 } // namespace cast 258 } // namespace cast
257 } // namespace media 259 } // namespace media
OLDNEW
« no previous file with comments | « media/cast/transport/pacing/paced_sender.cc ('k') | media/cast/transport/rtcp/rtcp_builder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698