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

Side by Side Diff: talk/session/media/srtpfilter.cc

Issue 1419733004: talk: Use NDEBUG macro. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: review Created 5 years, 2 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 | « talk/media/base/videorenderer.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * libjingle 2 * libjingle
3 * Copyright 2009 Google Inc. 3 * Copyright 2009 Google Inc.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are met: 6 * modification, are permitted provided that the following conditions are met:
7 * 7 *
8 * 1. Redistributions of source code must retain the above copyright notice, 8 * 1. Redistributions of source code must retain the above copyright notice,
9 * this list of conditions and the following disclaimer. 9 * this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright notice, 10 * 2. Redistributions in binary form must reproduce the above copyright notice,
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 #include "srtp.h" // NOLINT 50 #include "srtp.h" // NOLINT
51 #include "srtp_priv.h" // NOLINT 51 #include "srtp_priv.h" // NOLINT
52 #else 52 #else
53 #include "third_party/libsrtp/srtp/include/srtp.h" 53 #include "third_party/libsrtp/srtp/include/srtp.h"
54 #include "third_party/libsrtp/srtp/include/srtp_priv.h" 54 #include "third_party/libsrtp/srtp/include/srtp_priv.h"
55 #endif // SRTP_RELATIVE_PATH 55 #endif // SRTP_RELATIVE_PATH
56 } 56 }
57 #ifdef ENABLE_EXTERNAL_AUTH 57 #ifdef ENABLE_EXTERNAL_AUTH
58 #include "talk/session/media/externalhmac.h" 58 #include "talk/session/media/externalhmac.h"
59 #endif // ENABLE_EXTERNAL_AUTH 59 #endif // ENABLE_EXTERNAL_AUTH
60 #ifdef _DEBUG 60 #if !defined(NDEBUG)
61 extern "C" debug_module_t mod_srtp; 61 extern "C" debug_module_t mod_srtp;
62 extern "C" debug_module_t mod_auth; 62 extern "C" debug_module_t mod_auth;
63 extern "C" debug_module_t mod_cipher; 63 extern "C" debug_module_t mod_cipher;
64 extern "C" debug_module_t mod_stat; 64 extern "C" debug_module_t mod_stat;
65 extern "C" debug_module_t mod_alloc; 65 extern "C" debug_module_t mod_alloc;
66 extern "C" debug_module_t mod_aes_icm; 66 extern "C" debug_module_t mod_aes_icm;
67 extern "C" debug_module_t mod_aes_hmac; 67 extern "C" debug_module_t mod_aes_hmac;
68 #endif 68 #endif
69 #else 69 #else
70 // SrtpFilter needs that constant. 70 // SrtpFilter needs that constant.
(...skipping 14 matching lines...) Expand all
85 bool SrtpNotAvailable(const char *func) { 85 bool SrtpNotAvailable(const char *func) {
86 LOG(LS_ERROR) << func << ": SRTP is not available on your system."; 86 LOG(LS_ERROR) << func << ": SRTP is not available on your system.";
87 return false; 87 return false;
88 } 88 }
89 } // anonymous namespace 89 } // anonymous namespace
90 90
91 #endif // !HAVE_SRTP 91 #endif // !HAVE_SRTP
92 92
93 void EnableSrtpDebugging() { 93 void EnableSrtpDebugging() {
94 #ifdef HAVE_SRTP 94 #ifdef HAVE_SRTP
95 #ifdef _DEBUG 95 #if !defined(NDEBUG)
96 debug_on(mod_srtp); 96 debug_on(mod_srtp);
97 debug_on(mod_auth); 97 debug_on(mod_auth);
98 debug_on(mod_cipher); 98 debug_on(mod_cipher);
99 debug_on(mod_stat); 99 debug_on(mod_stat);
100 debug_on(mod_alloc); 100 debug_on(mod_alloc);
101 debug_on(mod_aes_icm); 101 debug_on(mod_aes_icm);
102 // debug_on(mod_aes_cbc); 102 // debug_on(mod_aes_cbc);
103 // debug_on(mod_hmac); 103 // debug_on(mod_hmac);
104 #endif 104 #endif
105 #endif // HAVE_SRTP 105 #endif // HAVE_SRTP
(...skipping 836 matching lines...) Expand 10 before | Expand all | Expand 10 after
942 SrtpNotAvailable(__FUNCTION__); 942 SrtpNotAvailable(__FUNCTION__);
943 } 943 }
944 944
945 void SrtpStat::HandleSrtpResult(const SrtpStat::FailureKey& key) { 945 void SrtpStat::HandleSrtpResult(const SrtpStat::FailureKey& key) {
946 SrtpNotAvailable(__FUNCTION__); 946 SrtpNotAvailable(__FUNCTION__);
947 } 947 }
948 948
949 #endif // HAVE_SRTP 949 #endif // HAVE_SRTP
950 950
951 } // namespace cricket 951 } // namespace cricket
OLDNEW
« no previous file with comments | « talk/media/base/videorenderer.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698