Index: webrtc/p2p/base/faketransportcontroller.h |
diff --git a/webrtc/p2p/base/faketransportcontroller.h b/webrtc/p2p/base/faketransportcontroller.h |
index 7d8e3d77e86b9d8fc41d63a4249b525304013e82..3e656fa4a3ff10583726269487e7d3f77fdb7184 100644 |
--- a/webrtc/p2p/base/faketransportcontroller.h |
+++ b/webrtc/p2p/base/faketransportcontroller.h |
@@ -31,10 +31,12 @@ namespace cricket { |
class FakeTransport; |
+namespace { |
struct PacketMessageData : public rtc::MessageData { |
PacketMessageData(const char* data, size_t len) : packet(data, len) {} |
rtc::Buffer packet; |
}; |
+} // namespace |
// Fake transport channel class, which can be passed to anything that needs a |
// transport channel. Can be informed of another FakeTransportChannel via |
@@ -208,6 +210,8 @@ class FakeTransportChannel : public TransportChannelImpl, |
} else { |
rtc::Thread::Current()->Send(this, 0, packet); |
} |
+ rtc::SentPacket sent_packet(options.packet_id, rtc::Time()); |
+ SignalSentPacket(this, sent_packet); |
return static_cast<int>(len); |
} |
int SetOption(rtc::Socket::Option opt, int value) override { return true; } |