Revert of Change ProcessThread's task type to be the one from TaskQueue. (patchset #3 id:80001 of https://codereview.webrtc.org/2016043003/ )
Reason for revert: Downstream issues Original issue's description: > Change ProcessThread's task type to be the one from TaskQueue. > ProcessThread will eventually be replaced by TaskQueue, so this is the first little step. > > BUG= > R=magjed@webrtc.org > > Committed: https://crrev.com/400a276c8a0b299190ff17a81edd8780a26d63d3 > Cr-Commit-Position: refs/heads/master@{#12952} TBR=magjed@webrtc.org # Not skipping CQ checks because original CL landed more than 1 days ago. BUG= Review-Url: https://codereview.webrtc.org/2020783003 Cr-Commit-Position: refs/heads/master@{#12953}
This commit is contained in:
@ -28,14 +28,14 @@ class MockProcessThread : public ProcessThread {
|
||||
MOCK_METHOD0(Start, void());
|
||||
MOCK_METHOD0(Stop, void());
|
||||
MOCK_METHOD1(WakeUp, void(Module* module));
|
||||
MOCK_METHOD1(PostTask, void(rtc::QueuedTask* task));
|
||||
MOCK_METHOD1(PostTask, void(ProcessTask* task));
|
||||
MOCK_METHOD1(RegisterModule, void(Module* module));
|
||||
MOCK_METHOD1(DeRegisterModule, void(Module* module));
|
||||
|
||||
// MOCK_METHOD1 gets confused with mocking this method, so we work around it
|
||||
// by overriding the method from the interface and forwarding the call to a
|
||||
// mocked, simpler method.
|
||||
void PostTask(std::unique_ptr<rtc::QueuedTask> task) /*override*/ {
|
||||
void PostTask(std::unique_ptr<ProcessTask> task) /* override */ {
|
||||
PostTask(task.get());
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user