| OLD | NEW |
| 1 /* | 1 /* |
| 2 * libjingle | 2 * libjingle |
| 3 * Copyright 2010 Google Inc. | 3 * Copyright 2010 Google Inc. |
| 4 * | 4 * |
| 5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
| 6 * modification, are permitted provided that the following conditions are met: | 6 * modification, are permitted provided that the following conditions are met: |
| 7 * | 7 * |
| 8 * 1. Redistributions of source code must retain the above copyright notice, | 8 * 1. Redistributions of source code must retain the above copyright notice, |
| 9 * this list of conditions and the following disclaimer. | 9 * this list of conditions and the following disclaimer. |
| 10 * 2. Redistributions in binary form must reproduce the above copyright notice, | 10 * 2. Redistributions in binary form must reproduce the above copyright notice, |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 77 return WEBRTC_VIDEO_CODEC_OK; | 77 return WEBRTC_VIDEO_CODEC_OK; |
| 78 } | 78 } |
| 79 | 79 |
| 80 virtual int32_t RegisterDecodeCompleteCallback( | 80 virtual int32_t RegisterDecodeCompleteCallback( |
| 81 webrtc::DecodedImageCallback*) { | 81 webrtc::DecodedImageCallback*) { |
| 82 return WEBRTC_VIDEO_CODEC_OK; | 82 return WEBRTC_VIDEO_CODEC_OK; |
| 83 } | 83 } |
| 84 | 84 |
| 85 virtual int32_t Release() { return WEBRTC_VIDEO_CODEC_OK; } | 85 virtual int32_t Release() { return WEBRTC_VIDEO_CODEC_OK; } |
| 86 | 86 |
| 87 virtual int32_t Reset() { return WEBRTC_VIDEO_CODEC_OK; } | |
| 88 | |
| 89 int GetNumFramesReceived() const { | 87 int GetNumFramesReceived() const { |
| 90 return num_frames_received_; | 88 return num_frames_received_; |
| 91 } | 89 } |
| 92 | 90 |
| 93 private: | 91 private: |
| 94 int num_frames_received_; | 92 int num_frames_received_; |
| 95 }; | 93 }; |
| 96 | 94 |
| 97 // Fake class for mocking out WebRtcVideoDecoderFactory. | 95 // Fake class for mocking out WebRtcVideoDecoderFactory. |
| 98 class FakeWebRtcVideoDecoderFactory : public WebRtcVideoDecoderFactory { | 96 class FakeWebRtcVideoDecoderFactory : public WebRtcVideoDecoderFactory { |
| (...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 246 std::set<webrtc::VideoCodecType> supported_codec_types_; | 244 std::set<webrtc::VideoCodecType> supported_codec_types_; |
| 247 std::vector<WebRtcVideoEncoderFactory::VideoCodec> codecs_; | 245 std::vector<WebRtcVideoEncoderFactory::VideoCodec> codecs_; |
| 248 std::vector<FakeWebRtcVideoEncoder*> encoders_; | 246 std::vector<FakeWebRtcVideoEncoder*> encoders_; |
| 249 int num_created_encoders_; | 247 int num_created_encoders_; |
| 250 bool encoders_have_internal_sources_; | 248 bool encoders_have_internal_sources_; |
| 251 }; | 249 }; |
| 252 | 250 |
| 253 } // namespace cricket | 251 } // namespace cricket |
| 254 | 252 |
| 255 #endif // TALK_MEDIA_WEBRTC_FAKEWEBRTCVIDEOENGINE_H_ | 253 #endif // TALK_MEDIA_WEBRTC_FAKEWEBRTCVIDEOENGINE_H_ |
| OLD | NEW |