Chromium Code Reviews| Index: webrtc/modules/bitrate_controller/include/mock/mock_bitrate_controller.h |
| diff --git a/webrtc/modules/bitrate_controller/include/mock/mock_bitrate_controller.h b/webrtc/modules/bitrate_controller/include/mock/mock_bitrate_controller.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..65133840055823c7f969efdda75ded32b79a2506 |
| --- /dev/null |
| +++ b/webrtc/modules/bitrate_controller/include/mock/mock_bitrate_controller.h |
| @@ -0,0 +1,28 @@ |
| +/* |
| + * Copyright (c) 2015 The WebRTC project authors. All Rights Reserved. |
| + * |
| + * Use of this source code is governed by a BSD-style license |
| + * that can be found in the LICENSE file in the root of the source |
| + * tree. An additional intellectual property rights grant can be found |
| + * in the file PATENTS. All contributing project authors may |
| + * be found in the AUTHORS file in the root of the source tree. |
| + */ |
| + |
| +#ifndef WEBRTC_MODULES_BITRATE_CONTROLLER_INCLUDE_MOCK_MOCK_BITRATE_CONTROLLER_H_ |
| +#define WEBRTC_MODULES_BITRATE_CONTROLLER_INCLUDE_MOCK_MOCK_BITRATE_CONTROLLER_H_ |
| + |
| +#include "testing/gmock/include/gmock/gmock.h" |
| +#include "webrtc/modules/bitrate_controller/include/bitrate_controller.h" |
| + |
| +namespace webrtc { |
|
the sun
2015/12/20 23:16:15
I add test code under
namespace webrtc {
namespac
stefan-webrtc
2015/12/21 08:01:29
Done.
|
| + |
| +class MockBitrateObserver : public BitrateObserver { |
| + public: |
| + MOCK_METHOD3(OnNetworkChanged, |
| + void(uint32_t bitrate_bps, |
| + uint8_t fraction_loss, |
| + int64_t rtt_ms)); |
| +}; |
| +} // namespace webrtc |
| + |
| +#endif // WEBRTC_MODULES_BITRATE_CONTROLLER_INCLUDE_MOCK_MOCK_BITRATE_CONTROLLER_H_ |