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

Side by Side Diff: media/cast/rtp_receiver/rtp_parser/rtp_parser_unittest.cc

Issue 308043006: [Cast] Clean-up: Merge RtpReceiver+AudioReceiver+VideoReceiver-->FrameReceiver. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Addressed hclam's comments. Created 6 years, 6 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
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/memory/scoped_ptr.h" 5 #include "base/memory/scoped_ptr.h"
6 #include "base/rand_util.h" 6 #include "base/rand_util.h"
7 #include "media/cast/rtp_receiver/rtp_parser/rtp_parser.h" 7 #include "media/cast/rtp_receiver/rtp_parser/rtp_parser.h"
8 #include "media/cast/rtp_receiver/rtp_parser/test/rtp_packet_builder.h" 8 #include "media/cast/rtp_receiver/rtp_parser/test/rtp_packet_builder.h"
9 #include "media/cast/rtp_receiver/rtp_receiver.h"
10 #include "media/cast/rtp_receiver/rtp_receiver_defines.h" 9 #include "media/cast/rtp_receiver/rtp_receiver_defines.h"
11 #include "testing/gtest/include/gtest/gtest.h" 10 #include "testing/gtest/include/gtest/gtest.h"
12 11
13 namespace media { 12 namespace media {
14 namespace cast { 13 namespace cast {
15 14
16 static const size_t kPacketLength = 1500; 15 static const size_t kPacketLength = 1500;
17 static const int kTestPayloadType = 127; 16 static const int kTestPayloadType = 127;
18 static const uint32 kTestSsrc = 1234; 17 static const uint32 kTestSsrc = 1234;
19 static const uint32 kTestTimestamp = 111111; 18 static const uint32 kTestTimestamp = 111111;
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after
189 packet_builder_.SetFrameIds(frame_id, reference_frame_id); 188 packet_builder_.SetFrameIds(frame_id, reference_frame_id);
190 packet_builder_.BuildHeader(packet_, kPacketLength); 189 packet_builder_.BuildHeader(packet_, kPacketLength);
191 cast_header_.frame_id = frame_id; 190 cast_header_.frame_id = frame_id;
192 cast_header_.reference_frame_id = reference_frame_id; 191 cast_header_.reference_frame_id = reference_frame_id;
193 ExpectParsesPacket(); 192 ExpectParsesPacket();
194 } 193 }
195 } 194 }
196 195
197 } // namespace cast 196 } // namespace cast
198 } // namespace media 197 } // namespace media
OLDNEW
« no previous file with comments | « media/cast/rtp_receiver/rtp_parser/rtp_parser.cc ('k') | media/cast/rtp_receiver/rtp_receiver.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698