| Index: media/cast/net/rtcp/rtcp_session.h
|
| diff --git a/media/cast/test/utility/test_util.h b/media/cast/net/rtcp/rtcp_session.h
|
| similarity index 28%
|
| copy from media/cast/test/utility/test_util.h
|
| copy to media/cast/net/rtcp/rtcp_session.h
|
| index 2b487065abe4fcfdd4221e45bf617569206166db..01528338336bd9edbca29a007214b902842f5ad7 100644
|
| --- a/media/cast/test/utility/test_util.h
|
| +++ b/media/cast/net/rtcp/rtcp_session.h
|
| @@ -1,32 +1,25 @@
|
| -// Copyright 2014 The Chromium Authors. All rights reserved.
|
| +// Copyright (c) 2015 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.
|
|
|
| -#ifndef MEDIA_CAST_TEST_UTILITY_TEST_UTIL_H
|
| -#define MEDIA_CAST_TEST_UTILITY_TEST_UTIL_H
|
| -
|
| -#include <stddef.h>
|
| -
|
| -#include <string>
|
| -#include <vector>
|
| +#ifndef MEDIA_CAST_NET_RTCP_RTCP_SESSION_H_
|
| +#define MEDIA_CAST_NET_RTCP_RTCP_SESSION_H_
|
|
|
| namespace media {
|
| namespace cast {
|
| -namespace test {
|
|
|
| -class MeanAndError {
|
| +// Base class for an RTCP session.
|
| +class RtcpSession {
|
| public:
|
| - MeanAndError() {}
|
| - explicit MeanAndError(const std::vector<double>& values);
|
| - std::string AsString() const;
|
| + virtual ~RtcpSession() {}
|
|
|
| - size_t num_values;
|
| - double mean;
|
| - double std_dev;
|
| + // Handle incoming RTCP packet.
|
| + // Returns false if it is not a RTCP packet or it is not directed to
|
| + // this session, e.g. SSRC doesn't match.
|
| + virtual bool IncomingRtcpPacket(const uint8_t* data, size_t length) = 0;
|
| };
|
|
|
| -} // namespace test
|
| } // namespace cast
|
| } // namespace media
|
|
|
| -#endif // MEDIA_CAST_TEST_UTILITY_TEST_UTIL_H
|
| +#endif // MEDIA_CAST_NET_RTCP_RTCP_SESSION_H_
|
|
|