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

Unified Diff: media/cast/rtp_receiver/rtp_parser/test/rtp_packet_builder.h

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 side-by-side diff with in-line comments
Download patch
Index: media/cast/rtp_receiver/rtp_parser/test/rtp_packet_builder.h
diff --git a/media/cast/rtp_receiver/rtp_parser/test/rtp_packet_builder.h b/media/cast/rtp_receiver/rtp_parser/test/rtp_packet_builder.h
deleted file mode 100644
index 7337798e3119c005bb1780d1b341bf72bb0ca9d5..0000000000000000000000000000000000000000
--- a/media/cast/rtp_receiver/rtp_parser/test/rtp_packet_builder.h
+++ /dev/null
@@ -1,52 +0,0 @@
-// Copyright 2013 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-// Test helper class that builds rtp packets.
-
-#ifndef MEDIA_CAST_RTP_RECEIVER_RTP_PARSER_TEST_RTP_PACKET_BUILDER_H_
-#define MEDIA_CAST_RTP_RECEIVER_RTP_PARSER_TEST_RTP_PACKET_BUILDER_H_
-
-#include "media/cast/rtp_receiver/rtp_receiver_defines.h"
-
-namespace media {
-namespace cast {
-
-// TODO(miu): Consolidate with RtpPacketizer as a single Cast packet
-// serialization implementation.
-class RtpPacketBuilder {
- public:
- RtpPacketBuilder();
- void SetKeyFrame(bool is_key);
- void SetFrameIds(uint32 frame_id, uint32 reference_frame_id);
- void SetPacketId(uint16 packet_id);
- void SetMaxPacketId(uint16 max_packet_id);
- void SetTimestamp(uint32 timestamp);
- void SetSequenceNumber(uint16 sequence_number);
- void SetMarkerBit(bool marker);
- void SetPayloadType(int payload_type);
- void SetSsrc(uint32 ssrc);
- void BuildHeader(uint8* data, uint32 data_length);
-
- private:
- bool is_key_;
- uint32 frame_id_;
- uint16 packet_id_;
- uint16 max_packet_id_;
- uint32 reference_frame_id_;
- uint32 timestamp_;
- uint16 sequence_number_;
- bool marker_;
- int payload_type_;
- uint32 ssrc_;
-
- void BuildCastHeader(uint8* data, uint32 data_length);
- void BuildCommonHeader(uint8* data, uint32 data_length);
-
- DISALLOW_COPY_AND_ASSIGN(RtpPacketBuilder);
-};
-
-} // namespace cast
-} // namespace media
-
-#endif // MEDIA_CAST_RTP_RECEIVER_RTP_PARSER_TEST_RTP_PACKET_BUILDER_H_

Powered by Google App Engine
This is Rietveld 408576698