OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2015 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 #ifndef MEDIA_CAST_TEST_UTILITY_TEST_UTIL_H | 5 #ifndef MEDIA_CAST_NET_RTCP_RTCP_SESSION_H_ |
6 #define MEDIA_CAST_TEST_UTILITY_TEST_UTIL_H | 6 #define MEDIA_CAST_NET_RTCP_RTCP_SESSION_H_ |
7 | |
8 #include <stddef.h> | |
9 | |
10 #include <string> | |
11 #include <vector> | |
12 | 7 |
13 namespace media { | 8 namespace media { |
14 namespace cast { | 9 namespace cast { |
15 namespace test { | |
16 | 10 |
17 class MeanAndError { | 11 // Base class for an RTCP session. |
| 12 class RtcpSession { |
18 public: | 13 public: |
19 MeanAndError() {} | 14 virtual ~RtcpSession() {} |
20 explicit MeanAndError(const std::vector<double>& values); | |
21 std::string AsString() const; | |
22 | 15 |
23 size_t num_values; | 16 // Handle incoming RTCP packet. |
24 double mean; | 17 // Returns false if it is not a RTCP packet or it is not directed to |
25 double std_dev; | 18 // this session, e.g. SSRC doesn't match. |
| 19 virtual bool IncomingRtcpPacket(const uint8_t* data, size_t length) = 0; |
26 }; | 20 }; |
27 | 21 |
28 } // namespace test | |
29 } // namespace cast | 22 } // namespace cast |
30 } // namespace media | 23 } // namespace media |
31 | 24 |
32 #endif // MEDIA_CAST_TEST_UTILITY_TEST_UTIL_H | 25 #endif // MEDIA_CAST_NET_RTCP_RTCP_SESSION_H_ |
OLD | NEW |