Index: content/browser/renderer_host/p2p/socket_host.h |
diff --git a/content/browser/renderer_host/p2p/socket_host.h b/content/browser/renderer_host/p2p/socket_host.h |
index 24e49bdccd098c9d4ecc9f1448f80738bf15eb4f..2be075f402565dc3a7eeae365c7c71db64d35413 100644 |
--- a/content/browser/renderer_host/p2p/socket_host.h |
+++ b/content/browser/renderer_host/p2p/socket_host.h |
@@ -18,9 +18,23 @@ namespace net { |
class URLRequestContextGetter; |
} |
+namespace talk_base { |
+struct PacketOptions; |
+} |
+ |
namespace content { |
class P2PMessageThrottler; |
+namespace packet_processing_helpers { |
+void MaybeUpdatePacketAbsSendTimeExtn(char* data, int length, |
Solis
2014/03/03 10:22:29
Why aren't there any tests for this function?
Mallinath (Gone from Chromium)
2014/03/04 00:15:46
I am not sure how can I test this method in partic
Solis
2014/03/04 09:53:24
1. There's logic in the function which isn't that
Mallinath (Gone from Chromium)
2014/03/06 07:39:43
I added test cases for MaybeUpdatePacketAbsSendTim
|
+ const talk_base::PacketOptions& options); |
+bool GetRtpPacketStartPositionAndLength(char* data, int length, |
+ int* rtp_start_pos, |
+ int* rtp_packet_length); |
+bool MaybeUpdateRtpAbsSendTimeExtn(char* rtp, int length, |
+ int extension_id); |
+} // packet_processing_helpers |
+ |
// Base class for P2P sockets. |
class CONTENT_EXPORT P2PSocketHost { |
public: |
@@ -49,7 +63,6 @@ class CONTENT_EXPORT P2PSocketHost { |
virtual bool SetOption(P2PSocketOption option, int value) = 0; |
protected: |
- friend class P2PSocketHostTcpTestBase; |
// TODO(mallinath) - Remove this below enum and use one defined in |
// libjingle/souce/talk/p2p/base/stun.h |