diff options
author | wuchengli@chromium.org <wuchengli@chromium.org@4adac7df-926f-26a2-2b94-8c16560cd09d> | 2014-05-27 14:12:58 +0000 |
---|---|---|
committer | wuchengli@chromium.org <wuchengli@chromium.org@4adac7df-926f-26a2-2b94-8c16560cd09d> | 2014-05-27 14:12:58 +0000 |
commit | 5424828677e7e04c9eb433a76788e3b0f7378286 (patch) | |
tree | e0f4484c2a4db7d36575d030d50657857452de93 /video_engine/encoder_state_feedback_unittest.cc | |
parent | a3b8c852fe775a455c29d436c73163db662b7a6d (diff) | |
download | webrtc-5424828677e7e04c9eb433a76788e3b0f7378286.tar.gz |
Revert "Add support of texture frames for video capturer."
This reverts commit 83c89cd003be75d7d06ef9a2b139588f08d280ca.
Reason: The Buildbot has detected a new failure on builder
Android Chromium-APK Tests.
BUG=chromium:362437
TBR=fischman@webrtc.org, perkj@webrtc.org, stefan@webrtc.org, wu@webrtc.org
Review URL: https://webrtc-codereview.appspot.com/12599004
git-svn-id: http://webrtc.googlecode.com/svn/trunk/webrtc@6253 4adac7df-926f-26a2-2b94-8c16560cd09d
Diffstat (limited to 'video_engine/encoder_state_feedback_unittest.cc')
-rw-r--r-- | video_engine/encoder_state_feedback_unittest.cc | 21 |
1 files changed, 15 insertions, 6 deletions
diff --git a/video_engine/encoder_state_feedback_unittest.cc b/video_engine/encoder_state_feedback_unittest.cc index 4e15752f..f85d9897 100644 --- a/video_engine/encoder_state_feedback_unittest.cc +++ b/video_engine/encoder_state_feedback_unittest.cc @@ -17,17 +17,26 @@ #include "webrtc/common.h" #include "webrtc/modules/rtp_rtcp/interface/rtp_rtcp_defines.h" -#include "webrtc/modules/utility/interface/mock/mock_process_thread.h" +#include "webrtc/modules/utility/interface/process_thread.h" #include "webrtc/system_wrappers/interface/scoped_ptr.h" #include "webrtc/video_engine/vie_encoder.h" -using ::testing::NiceMock; - namespace webrtc { +// TODO(mflodman) Create a common mock in module utility. +class TestProcessThread : public ProcessThread { + public: + TestProcessThread() {} + ~TestProcessThread() {} + virtual int32_t Start() { return 0; } + virtual int32_t Stop() { return 0; } + virtual int32_t RegisterModule(Module* module) { return 0; } + virtual int32_t DeRegisterModule(const Module* module) { return 0; } +}; + class MockVieEncoder : public ViEEncoder { public: - explicit MockVieEncoder(ProcessThread* process_thread) + explicit MockVieEncoder(TestProcessThread* process_thread) : ViEEncoder(1, 1, 1, config_, *process_thread, NULL) {} ~MockVieEncoder() {} @@ -46,10 +55,10 @@ class MockVieEncoder : public ViEEncoder { class VieKeyRequestTest : public ::testing::Test { protected: virtual void SetUp() { - process_thread_.reset(new NiceMock<MockProcessThread>); + process_thread_.reset(new TestProcessThread()); encoder_state_feedback_.reset(new EncoderStateFeedback()); } - scoped_ptr<MockProcessThread> process_thread_; + scoped_ptr<TestProcessThread> process_thread_; scoped_ptr<EncoderStateFeedback> encoder_state_feedback_; }; |