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

Side by Side Diff: media/cast/net/rtp/rtp_parser_unittest.cc

Issue 388663003: Cast: Reshuffle files under media/cast (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: missing includes Created 6 years, 5 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/net/rtp/rtp_parser.cc ('k') | media/cast/net/rtp/rtp_receiver_defines.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/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/net/rtp/rtp_packet_builder.h"
8 #include "media/cast/rtp_receiver/rtp_parser/test/rtp_packet_builder.h" 8 #include "media/cast/net/rtp/rtp_parser.h"
9 #include "media/cast/rtp_receiver/rtp_receiver_defines.h" 9 #include "media/cast/net/rtp/rtp_receiver_defines.h"
10 #include "testing/gtest/include/gtest/gtest.h" 10 #include "testing/gtest/include/gtest/gtest.h"
11 11
12 namespace media { 12 namespace media {
13 namespace cast { 13 namespace cast {
14 14
15 static const size_t kPacketLength = 1500; 15 static const size_t kPacketLength = 1500;
16 static const int kTestPayloadType = 127; 16 static const int kTestPayloadType = 127;
17 static const uint32 kTestSsrc = 1234; 17 static const uint32 kTestSsrc = 1234;
18 static const uint32 kTestTimestamp = 111111; 18 static const uint32 kTestTimestamp = 111111;
19 static const uint16 kTestSeqNum = 4321; 19 static const uint16 kTestSeqNum = 4321;
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after
188 packet_builder_.SetFrameIds(frame_id, reference_frame_id); 188 packet_builder_.SetFrameIds(frame_id, reference_frame_id);
189 packet_builder_.BuildHeader(packet_, kPacketLength); 189 packet_builder_.BuildHeader(packet_, kPacketLength);
190 cast_header_.frame_id = frame_id; 190 cast_header_.frame_id = frame_id;
191 cast_header_.reference_frame_id = reference_frame_id; 191 cast_header_.reference_frame_id = reference_frame_id;
192 ExpectParsesPacket(); 192 ExpectParsesPacket();
193 } 193 }
194 } 194 }
195 195
196 } // namespace cast 196 } // namespace cast
197 } // namespace media 197 } // namespace media
OLDNEW
« no previous file with comments | « media/cast/net/rtp/rtp_parser.cc ('k') | media/cast/net/rtp/rtp_receiver_defines.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698