Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(226)

Side by Side Diff: media/engine/webrtccommon.h

Issue 3018523002: Clean out unused methods from VoiceEngine and VoEBase. (Closed)
Patch Set: rebase Created 3 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « media/engine/fakewebrtcvoiceengine.h ('k') | media/engine/webrtcvoe.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 /*
2 * Copyright (c) 2004 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 MEDIA_ENGINE_WEBRTCCOMMON_H_
12 #define MEDIA_ENGINE_WEBRTCCOMMON_H_
13
14 #include "common_types.h" // NOLINT(build/include)
15
16 namespace cricket {
17
18 // Tracing helpers, for easy logging when WebRTC calls fail.
19 // Example: "LOG_RTCERR1(StartSend, channel);" produces the trace
20 // "StartSend(1) failed, err=XXXX"
21 // The method GetLastEngineError must be defined in the calling scope.
22 #define LOG_RTCERR0(func) \
23 LOG_RTCERR0_EX(func, GetLastEngineError())
24 #define LOG_RTCERR1(func, a1) \
25 LOG_RTCERR1_EX(func, a1, GetLastEngineError())
26 #define LOG_RTCERR2(func, a1, a2) \
27 LOG_RTCERR2_EX(func, a1, a2, GetLastEngineError())
28 #define LOG_RTCERR3(func, a1, a2, a3) \
29 LOG_RTCERR3_EX(func, a1, a2, a3, GetLastEngineError())
30 #define LOG_RTCERR4(func, a1, a2, a3, a4) \
31 LOG_RTCERR4_EX(func, a1, a2, a3, a4, GetLastEngineError())
32 #define LOG_RTCERR5(func, a1, a2, a3, a4, a5) \
33 LOG_RTCERR5_EX(func, a1, a2, a3, a4, a5, GetLastEngineError())
34 #define LOG_RTCERR6(func, a1, a2, a3, a4, a5, a6) \
35 LOG_RTCERR6_EX(func, a1, a2, a3, a4, a5, a6, GetLastEngineError())
36 #define LOG_RTCERR0_EX(func, err) LOG(LS_WARNING) \
37 << "" << #func << "() failed, err=" << err
38 #define LOG_RTCERR1_EX(func, a1, err) LOG(LS_WARNING) \
39 << "" << #func << "(" << a1 << ") failed, err=" << err
40 #define LOG_RTCERR2_EX(func, a1, a2, err) LOG(LS_WARNING) \
41 << "" << #func << "(" << a1 << ", " << a2 << ") failed, err=" \
42 << err
43 #define LOG_RTCERR3_EX(func, a1, a2, a3, err) LOG(LS_WARNING) \
44 << "" << #func << "(" << a1 << ", " << a2 << ", " << a3 \
45 << ") failed, err=" << err
46 #define LOG_RTCERR4_EX(func, a1, a2, a3, a4, err) LOG(LS_WARNING) \
47 << "" << #func << "(" << a1 << ", " << a2 << ", " << a3 \
48 << ", " << a4 << ") failed, err=" << err
49 #define LOG_RTCERR5_EX(func, a1, a2, a3, a4, a5, err) LOG(LS_WARNING) \
50 << "" << #func << "(" << a1 << ", " << a2 << ", " << a3 \
51 << ", " << a4 << ", " << a5 << ") failed, err=" << err
52 #define LOG_RTCERR6_EX(func, a1, a2, a3, a4, a5, a6, err) LOG(LS_WARNING) \
53 << "" << #func << "(" << a1 << ", " << a2 << ", " << a3 \
54 << ", " << a4 << ", " << a5 << ", " << a6 << ") failed, err=" << err
55
56 } // namespace cricket
57
58 #endif // MEDIA_ENGINE_WEBRTCCOMMON_H_
OLDNEW
« no previous file with comments | « media/engine/fakewebrtcvoiceengine.h ('k') | media/engine/webrtcvoe.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698