Rename UNIT_TEST to WEBRTC_UNIT_TEST
Current name conflicts with upstream project code.
Bug: webrtc:12247
Change-Id: Ibd78273a75262772fc18fca688c29b9ba9525ce5
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/196653
Reviewed-by: Harald Alvestrand <hta@webrtc.org>
Reviewed-by: Mirko Bonadei <mbonadei@webrtc.org>
Commit-Queue: Andrey Logvin <landrey@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#32813}
diff --git a/api/rtc_error.h b/api/rtc_error.h
index d24737c..7cfd89a 100644
--- a/api/rtc_error.h
+++ b/api/rtc_error.h
@@ -11,9 +11,9 @@
#ifndef API_RTC_ERROR_H_
#define API_RTC_ERROR_H_
-#ifdef UNIT_TEST
+#ifdef WEBRTC_UNIT_TEST
#include <ostream>
-#endif // UNIT_TEST
+#endif // WEBRTC_UNIT_TEST
#include <string>
#include <utility> // For std::move.
@@ -161,7 +161,7 @@
RTC_EXPORT const char* ToString(RTCErrorType error);
RTC_EXPORT const char* ToString(RTCErrorDetailType error);
-#ifdef UNIT_TEST
+#ifdef WEBRTC_UNIT_TEST
inline std::ostream& operator<<( // no-presubmit-check TODO(webrtc:8982)
std::ostream& stream, // no-presubmit-check TODO(webrtc:8982)
RTCErrorType error) {
@@ -173,7 +173,7 @@
RTCErrorDetailType error) {
return stream << ToString(error);
}
-#endif // UNIT_TEST
+#endif // WEBRTC_UNIT_TEST
// Helper macro that can be used by implementations to create an error with a
// message and log it. |message| should be a string literal or movable