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