Upstream version 5.34.104.0
[platform/framework/web/crosswalk.git] / src / third_party / webrtc / test / rtp_rtcp_observer.h
index 3b4ad7b..5ed9a3f 100644 (file)
@@ -13,6 +13,8 @@
 #include <map>
 #include <vector>
 
+#include "testing/gtest/include/gtest/gtest.h"
+
 #include "webrtc/modules/rtp_rtcp/interface/rtp_header_parser.h"
 #include "webrtc/typedefs.h"
 #include "webrtc/video_send_stream.h"
@@ -123,6 +125,7 @@ class RtpRtcpObserver {
 
   private:
     virtual bool SendRtp(const uint8_t* packet, size_t length) OVERRIDE {
+      EXPECT_FALSE(RtpHeaderParser::IsRtcp(packet, static_cast<int>(length)));
       Action action;
       {
         CriticalSectionScoped crit_(lock_);
@@ -139,6 +142,7 @@ class RtpRtcpObserver {
     }
 
     virtual bool SendRtcp(const uint8_t* packet, size_t length) OVERRIDE {
+      EXPECT_TRUE(RtpHeaderParser::IsRtcp(packet, static_cast<int>(length)));
       Action action;
       {
         CriticalSectionScoped crit_(lock_);