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

Side by Side Diff: webrtc/modules/remote_bitrate_estimator/test/packet.h

Issue 1237303002: Modified Simulation Framework Jitter Model (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Updated Jitter expected value to suit the truncated gaussian Created 5 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
« no previous file with comments | « webrtc/modules/remote_bitrate_estimator/test/bwe_test_framework_unittest.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2015 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2015 The WebRTC project authors. All Rights Reserved.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license 4 * Use of this source code is governed by a BSD-style license
5 * that can be found in the LICENSE file in the root of the source 5 * that can be found in the LICENSE file in the root of the source
6 * tree. An additional intellectual property rights grant can be found 6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may 7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree. 8 * be found in the AUTHORS file in the root of the source tree.
9 */ 9 */
10 10
(...skipping 18 matching lines...) Expand all
29 29
30 Packet(); 30 Packet();
31 Packet(int flow_id, int64_t send_time_us, size_t payload_size); 31 Packet(int flow_id, int64_t send_time_us, size_t payload_size);
32 virtual ~Packet(); 32 virtual ~Packet();
33 33
34 virtual bool operator<(const Packet& rhs) const; 34 virtual bool operator<(const Packet& rhs) const;
35 35
36 virtual int flow_id() const { return flow_id_; } 36 virtual int flow_id() const { return flow_id_; }
37 virtual void set_send_time_us(int64_t send_time_us); 37 virtual void set_send_time_us(int64_t send_time_us);
38 virtual int64_t send_time_us() const { return send_time_us_; } 38 virtual int64_t send_time_us() const { return send_time_us_; }
39 virtual int64_t sender_timestamp_us() const { return sender_timestamp_us_; }
39 virtual size_t payload_size() const { return payload_size_; } 40 virtual size_t payload_size() const { return payload_size_; }
40 virtual Packet::Type GetPacketType() const = 0; 41 virtual Packet::Type GetPacketType() const = 0;
41 virtual void set_sender_timestamp_us(int64_t sender_timestamp_us) { 42 virtual void set_sender_timestamp_us(int64_t sender_timestamp_us) {
42 sender_timestamp_us_ = sender_timestamp_us; 43 sender_timestamp_us_ = sender_timestamp_us;
43 } 44 }
44 virtual int64_t creation_time_ms() const { 45 virtual int64_t creation_time_ms() const {
45 return (creation_time_us_ + 500) / 1000; 46 return (creation_time_us_ + 500) / 1000;
46 } 47 }
47 virtual int64_t sender_timestamp_ms() const { 48 virtual int64_t sender_timestamp_ms() const {
48 return (sender_timestamp_us_ + 500) / 1000; 49 return (sender_timestamp_us_ + 500) / 1000;
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after
192 }; 193 };
193 194
194 typedef std::list<Packet*> Packets; 195 typedef std::list<Packet*> Packets;
195 typedef std::list<Packet*>::iterator PacketsIt; 196 typedef std::list<Packet*>::iterator PacketsIt;
196 typedef std::list<Packet*>::const_iterator PacketsConstIt; 197 typedef std::list<Packet*>::const_iterator PacketsConstIt;
197 198
198 } // namespace bwe 199 } // namespace bwe
199 } // namespace testing 200 } // namespace testing
200 } // namespace webrtc 201 } // namespace webrtc
201 #endif // WEBRTC_MODULES_REMOTE_BITRATE_ESTIMATOR_TEST_PACKET_H_ 202 #endif // WEBRTC_MODULES_REMOTE_BITRATE_ESTIMATOR_TEST_PACKET_H_
OLDNEW
« no previous file with comments | « webrtc/modules/remote_bitrate_estimator/test/bwe_test_framework_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698