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

Unified Diff: webrtc/test/direct_transport.h

Issue 1419193002: Call OnSentPacket for all packets sent in the test framework. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: . Created 5 years, 2 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 side-by-side diff with in-line comments
Download patch
Index: webrtc/test/direct_transport.h
diff --git a/webrtc/test/direct_transport.h b/webrtc/test/direct_transport.h
index 1c6f937401dac9012f80b7e8342269541117c018..021bbdf1bd879ea23168c5b6799b12781a4f3c17 100644
--- a/webrtc/test/direct_transport.h
+++ b/webrtc/test/direct_transport.h
@@ -23,6 +23,7 @@
namespace webrtc {
+class Call;
class Clock;
class PacketReceiver;
@@ -30,8 +31,8 @@ namespace test {
class DirectTransport : public Transport {
public:
- DirectTransport();
- explicit DirectTransport(const FakeNetworkPipe::Config& config);
+ explicit DirectTransport(Call* send_call);
+ DirectTransport(const FakeNetworkPipe::Config& config, Call* send_call);
~DirectTransport();
void SetConfig(const FakeNetworkPipe::Config& config);
@@ -49,6 +50,7 @@ class DirectTransport : public Transport {
bool SendPackets();
rtc::CriticalSection lock_;
+ Call* const send_call_;
rtc::scoped_ptr<EventWrapper> packet_event_;
rtc::scoped_ptr<ThreadWrapper> thread_;
Clock* const clock_;

Powered by Google App Engine
This is Rietveld 408576698