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

Side by Side Diff: webrtc/base/testclient.h

Issue 2005993002: Remove timing dependent packet checks from socket tests. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: 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
« no previous file with comments | « no previous file | webrtc/base/testclient.cc » ('j') | 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 2004 The WebRTC Project Authors. All rights reserved. 2 * Copyright 2004 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 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 const SocketAddress& remote_addr, 89 const SocketAddress& remote_addr,
90 const PacketTime& packet_time); 90 const PacketTime& packet_time);
91 void OnReadyToSend(AsyncPacketSocket* socket); 91 void OnReadyToSend(AsyncPacketSocket* socket);
92 bool CheckTimestamp(int64_t packet_timestamp); 92 bool CheckTimestamp(int64_t packet_timestamp);
93 93
94 CriticalSection crit_; 94 CriticalSection crit_;
95 AsyncPacketSocket* socket_; 95 AsyncPacketSocket* socket_;
96 std::vector<Packet*>* packets_; 96 std::vector<Packet*>* packets_;
97 bool ready_to_send_; 97 bool ready_to_send_;
98 int64_t prev_packet_timestamp_; 98 int64_t prev_packet_timestamp_;
99 int64_t prev_time_us_;
100 RTC_DISALLOW_COPY_AND_ASSIGN(TestClient); 99 RTC_DISALLOW_COPY_AND_ASSIGN(TestClient);
101 }; 100 };
102 101
103 } // namespace rtc 102 } // namespace rtc
104 103
105 #endif // WEBRTC_BASE_TESTCLIENT_H_ 104 #endif // WEBRTC_BASE_TESTCLIENT_H_
OLDNEW
« no previous file with comments | « no previous file | webrtc/base/testclient.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698