Index: talk/media/base/fakemediaprocessor.h |
diff --git a/talk/media/base/fakemediaprocessor.h b/talk/media/base/fakemediaprocessor.h |
index a1f5ac9a670f1319c1f196f41792ad9e766f7f96..0100b7b6d2ab5d4213e77cc3a6807920ad090407 100644 |
--- a/talk/media/base/fakemediaprocessor.h |
+++ b/talk/media/base/fakemediaprocessor.h |
@@ -28,20 +28,16 @@ |
#ifndef TALK_MEDIA_BASE_FAKEMEDIAPROCESSOR_H_ |
#define TALK_MEDIA_BASE_FAKEMEDIAPROCESSOR_H_ |
-#include "talk/media/base/videoprocessor.h" |
#include "talk/media/base/voiceprocessor.h" |
namespace cricket { |
class AudioFrame; |
-class FakeMediaProcessor : public VoiceProcessor, public VideoProcessor { |
+class FakeMediaProcessor : public VoiceProcessor { |
public: |
FakeMediaProcessor() |
- : voice_frame_count_(0), |
- video_frame_count_(0), |
- drop_frames_(false), |
- dropped_frame_count_(0) { |
+ : voice_frame_count_(0) { |
} |
virtual ~FakeMediaProcessor() {} |
@@ -50,28 +46,14 @@ class FakeMediaProcessor : public VoiceProcessor, public VideoProcessor { |
AudioFrame* frame) { |
++voice_frame_count_; |
} |
- virtual void OnFrame(uint32 ssrc, VideoFrame* frame_ptr, bool* drop_frame) { |
- ++video_frame_count_; |
- if (drop_frames_) { |
- *drop_frame = true; |
- ++dropped_frame_count_; |
- } |
- } |
virtual void OnVoiceMute(uint32 ssrc, bool muted) {} |
virtual void OnVideoMute(uint32 ssrc, bool muted) {} |
int voice_frame_count() const { return voice_frame_count_; } |
- int video_frame_count() const { return video_frame_count_; } |
- |
- void set_drop_frames(bool b) { drop_frames_ = b; } |
- int dropped_frame_count() const { return dropped_frame_count_; } |
private: |
// TODO(janahan): make is a map so that we can multiple ssrcs |
int voice_frame_count_; |
- int video_frame_count_; |
- bool drop_frames_; |
- int dropped_frame_count_; |
}; |
} // namespace cricket |