1 /*
2  *  Copyright (c) 2014 The WebRTC project authors. All Rights Reserved.
3  *
4  *  Use of this source code is governed by a BSD-style license
5  *  that can be found in the LICENSE file in the root of the source
6  *  tree. An additional intellectual property rights grant can be found
7  *  in the file PATENTS.  All contributing project authors may
8  *  be found in the AUTHORS file in the root of the source tree.
9  */
10 
11 #ifndef MODULES_UTILITY_INCLUDE_MOCK_MOCK_PROCESS_THREAD_H_
12 #define MODULES_UTILITY_INCLUDE_MOCK_MOCK_PROCESS_THREAD_H_
13 
14 #include <memory>
15 
16 #include "modules/utility/include/process_thread.h"
17 #include "rtc_base/location.h"
18 #include "test/gmock.h"
19 
20 namespace webrtc {
21 
22 class MockProcessThread : public ProcessThread {
23  public:
24   MOCK_METHOD(void, Start, (), (override));
25   MOCK_METHOD(void, Stop, (), (override));
26   MOCK_METHOD(void, Delete, (), (override));
27   MOCK_METHOD(void, WakeUp, (Module*), (override));
28   MOCK_METHOD(void, PostTask, (std::unique_ptr<QueuedTask>), (override));
29   MOCK_METHOD(void,
30               PostDelayedTask,
31               (std::unique_ptr<QueuedTask>, uint32_t),
32               (override));
33   MOCK_METHOD(void,
34               RegisterModule,
35               (Module*, const rtc::Location&),
36               (override));
37   MOCK_METHOD(void, DeRegisterModule, (Module*), (override));
38 };
39 
40 }  // namespace webrtc
41 #endif  // MODULES_UTILITY_INCLUDE_MOCK_MOCK_PROCESS_THREAD_H_
42