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

Side by Side Diff: webrtc/voice_engine/test/auto_test/fakes/conference_transport.h

Issue 1835053002: Change default timestamp to 64 bits in all webrtc directories. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc@master
Patch Set: Add TODO for timestamp. Created 4 years, 7 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
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 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 bool SendRtp(const uint8_t* data, 101 bool SendRtp(const uint8_t* data,
102 size_t len, 102 size_t len,
103 const webrtc::PacketOptions& options) override; 103 const webrtc::PacketOptions& options) override;
104 bool SendRtcp(const uint8_t *data, size_t len) override; 104 bool SendRtcp(const uint8_t *data, size_t len) override;
105 105
106 private: 106 private:
107 struct Packet { 107 struct Packet {
108 enum Type { Rtp, Rtcp, } type_; 108 enum Type { Rtp, Rtcp, } type_;
109 109
110 Packet() : len_(0) {} 110 Packet() : len_(0) {}
111 Packet(Type type, const void* data, size_t len, uint32_t time_ms) 111 Packet(Type type, const void* data, size_t len, int64_t time_ms)
112 : type_(type), len_(len), send_time_ms_(time_ms) { 112 : type_(type), len_(len), send_time_ms_(time_ms) {
113 EXPECT_LE(len_, kMaxPacketSizeByte); 113 EXPECT_LE(len_, kMaxPacketSizeByte);
114 memcpy(data_, data, len_); 114 memcpy(data_, data, len_);
115 } 115 }
116 116
117 uint8_t data_[kMaxPacketSizeByte]; 117 uint8_t data_[kMaxPacketSizeByte];
118 size_t len_; 118 size_t len_;
119 uint32_t send_time_ms_; 119 int64_t send_time_ms_;
120 }; 120 };
121 121
122 static bool Run(void* transport) { 122 static bool Run(void* transport) {
123 return static_cast<ConferenceTransport*>(transport)->DispatchPackets(); 123 return static_cast<ConferenceTransport*>(transport)->DispatchPackets();
124 } 124 }
125 125
126 int GetReceiverChannelForSsrc(unsigned int sender_ssrc) const; 126 int GetReceiverChannelForSsrc(unsigned int sender_ssrc) const;
127 void StorePacket(Packet::Type type, const void* data, size_t len); 127 void StorePacket(Packet::Type type, const void* data, size_t len);
128 void SendPacket(const Packet& packet); 128 void SendPacket(const Packet& packet);
129 bool DispatchPackets(); 129 bool DispatchPackets();
(...skipping 24 matching lines...) Expand all
154 webrtc::VoENetwork* remote_network_; 154 webrtc::VoENetwork* remote_network_;
155 webrtc::VoEFile* remote_file_; 155 webrtc::VoEFile* remote_file_;
156 156
157 LoudestFilter loudest_filter_; 157 LoudestFilter loudest_filter_;
158 158
159 const std::unique_ptr<webrtc::RtpHeaderParser> rtp_header_parser_; 159 const std::unique_ptr<webrtc::RtpHeaderParser> rtp_header_parser_;
160 }; 160 };
161 } // namespace voetest 161 } // namespace voetest
162 162
163 #endif // WEBRTC_VOICE_ENGINE_TEST_AUTO_TEST_FAKES_CONFERENCE_TRANSPORT_H_ 163 #endif // WEBRTC_VOICE_ENGINE_TEST_AUTO_TEST_FAKES_CONFERENCE_TRANSPORT_H_
OLDNEW
« no previous file with comments | « webrtc/video/send_statistics_proxy.cc ('k') | webrtc/voice_engine/test/auto_test/fakes/conference_transport.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698