| OLD | NEW |
| (Empty) |
| 1 /* | |
| 2 * Copyright (c) 2011 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 WEBRTC_MEDIA_WEBRTC_FAKEWEBRTCCOMMON_H_ | |
| 12 #define WEBRTC_MEDIA_WEBRTC_FAKEWEBRTCCOMMON_H_ | |
| 13 | |
| 14 #include "webrtc/base/common.h" | |
| 15 | |
| 16 namespace cricket { | |
| 17 | |
| 18 #define WEBRTC_STUB(method, args) \ | |
| 19 int method args override { return 0; } | |
| 20 | |
| 21 #define WEBRTC_STUB_CONST(method, args) \ | |
| 22 int method args const override { return 0; } | |
| 23 | |
| 24 #define WEBRTC_BOOL_STUB(method, args) \ | |
| 25 bool method args override { return true; } | |
| 26 | |
| 27 #define WEBRTC_BOOL_STUB_CONST(method, args) \ | |
| 28 bool method args const override { return true; } | |
| 29 | |
| 30 #define WEBRTC_VOID_STUB(method, args) \ | |
| 31 void method args override {} | |
| 32 | |
| 33 #define WEBRTC_FUNC(method, args) int method args override | |
| 34 | |
| 35 #define WEBRTC_FUNC_CONST(method, args) int method args const override | |
| 36 | |
| 37 #define WEBRTC_BOOL_FUNC(method, args) bool method args override | |
| 38 | |
| 39 #define WEBRTC_VOID_FUNC(method, args) void method args override | |
| 40 } // namespace cricket | |
| 41 | |
| 42 #endif // WEBRTC_MEDIA_WEBRTC_FAKEWEBRTCCOMMON_H_ | |
| OLD | NEW |