Skip to content

Commit

Permalink
Remove unused mocks of process thread
Browse files Browse the repository at this point in the history
Bug: None
Change-Id: Ib671c45ce46f45f2ce3ba59b6c041bf2466ca88a
Reviewed-on: https://webrtc-review.googlesource.com/4240
Reviewed-by: Erik Språng <sprang@webrtc.org>
Commit-Queue: Danil Chapovalov <danilchap@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#20010}
  • Loading branch information
DanilChapovalov authored and Commit Bot committed Sep 28, 2017
1 parent e55686e commit a82fcd0
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 14 deletions.
12 changes: 0 additions & 12 deletions modules/video_coding/jitter_buffer_unittest.cc
Original file line number Diff line number Diff line change
Expand Up @@ -195,16 +195,6 @@ TEST_F(Vp9SsMapTest, UpdatePacket) {
EXPECT_EQ(2, packet_.video_header.codecHeader.VP9.pid_diff[1]);
}

class ProcessThreadMock : public ProcessThread {
public:
MOCK_METHOD0(Start, void());
MOCK_METHOD0(Stop, void());
MOCK_METHOD1(WakeUp, void(Module* module));
MOCK_METHOD2(RegisterModule, void(Module* module, const rtc::Location&));
MOCK_METHOD1(DeRegisterModule, void(Module* module));
void PostTask(std::unique_ptr<rtc::QueuedTask> task) /*override*/ {}
};

class TestBasicJitterBuffer : public ::testing::TestWithParam<std::string>,
public NackSender,
public KeyFrameRequestSender {
Expand All @@ -216,7 +206,6 @@ class TestBasicJitterBuffer : public ::testing::TestWithParam<std::string>,

void RequestKeyFrame() override { ++keyframe_requests_; }

::testing::NiceMock<ProcessThreadMock> process_thread_mock_;
std::vector<uint16_t> nack_sent_;
int keyframe_requests_;

Expand Down Expand Up @@ -332,7 +321,6 @@ class TestRunningJitterBuffer : public ::testing::TestWithParam<std::string>,

void RequestKeyFrame() { ++keyframe_requests_; }

::testing::NiceMock<ProcessThreadMock> process_thread_mock_;
std::vector<uint16_t> nack_sent_;
int keyframe_requests_;

Expand Down
1 change: 0 additions & 1 deletion video/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,6 @@ if (rtc_include_tests) {
"../modules/rtp_rtcp",
"../modules/rtp_rtcp:mock_rtp_rtcp",
"../modules/utility",
"../modules/utility:mock_process_thread",
"../modules/video_coding",
"../modules/video_coding:video_coding_utility",
"../modules/video_coding:webrtc_h264",
Expand Down
1 change: 0 additions & 1 deletion video/encoder_rtcp_feedback_unittest.cc
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@

#include <memory>

#include "modules/utility/include/mock/mock_process_thread.h"
#include "test/gmock.h"
#include "test/gtest.h"
#include "video/send_statistics_proxy.h"
Expand Down

0 comments on commit a82fcd0

Please sign in to comment.