OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2016 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2016 The WebRTC project authors. All Rights Reserved. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license | 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 | 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 | 6 * tree. An additional intellectual property rights grant can be found |
7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
9 */ | 9 */ |
10 | 10 |
11 #ifndef WEBRTC_MODULES_AUDIO_CODING_AUDIO_NETWORK_ADAPTOR_MOCK_MOCK_CONTROLLER_M
ANAGER_H_ | 11 #ifndef WEBRTC_MODULES_AUDIO_CODING_AUDIO_NETWORK_ADAPTOR_MOCK_MOCK_CONTROLLER_M
ANAGER_H_ |
12 #define WEBRTC_MODULES_AUDIO_CODING_AUDIO_NETWORK_ADAPTOR_MOCK_MOCK_CONTROLLER_M
ANAGER_H_ | 12 #define WEBRTC_MODULES_AUDIO_CODING_AUDIO_NETWORK_ADAPTOR_MOCK_MOCK_CONTROLLER_M
ANAGER_H_ |
13 | 13 |
14 #include <memory> | |
15 #include <vector> | 14 #include <vector> |
16 | 15 |
17 #include "webrtc/modules/audio_coding/audio_network_adaptor/controller_manager.h
" | 16 #include "webrtc/modules/audio_coding/audio_network_adaptor/controller_manager.h
" |
18 #include "webrtc/test/gmock.h" | 17 #include "webrtc/test/gmock.h" |
19 | 18 |
20 namespace webrtc { | 19 namespace webrtc { |
21 | 20 |
22 class MockControllerManager : public ControllerManager { | 21 class MockControllerManager : public ControllerManager { |
23 public: | 22 public: |
24 virtual ~MockControllerManager() { Die(); } | 23 virtual ~MockControllerManager() { Die(); } |
25 MOCK_METHOD0(Die, void()); | 24 MOCK_METHOD0(Die, void()); |
26 MOCK_METHOD1( | 25 MOCK_METHOD1( |
27 GetSortedControllers, | 26 GetSortedControllers, |
28 std::vector<Controller*>(const Controller::NetworkMetrics& metrics)); | 27 std::vector<Controller*>(const Controller::NetworkMetrics& metrics)); |
29 MOCK_CONST_METHOD0(GetControllers, std::vector<Controller*>()); | 28 MOCK_CONST_METHOD0(GetControllers, std::vector<Controller*>()); |
30 }; | 29 }; |
31 | 30 |
32 } // namespace webrtc | 31 } // namespace webrtc |
33 | 32 |
34 #endif // WEBRTC_MODULES_AUDIO_CODING_AUDIO_NETWORK_ADAPTOR_MOCK_MOCK_CONTROLLE
R_MANAGER_H_ | 33 #endif // WEBRTC_MODULES_AUDIO_CODING_AUDIO_NETWORK_ADAPTOR_MOCK_MOCK_CONTROLLE
R_MANAGER_H_ |
OLD | NEW |