Replace absl/log/check.h with internal/platform/logging.h for SPM.

PiperOrigin-RevId: 494192824
This commit is contained in:
Nick Bourdakos
2022-12-09 09:34:24 -08:00
committed by Copybara-Service
parent 863e2f650e
commit ff5fb4a8f3
13 changed files with 34 additions and 0 deletions
+2
View File
@@ -23,6 +23,8 @@
#ifdef NEARBY_CHROMIUM
#include "base/check.h"
#elif defined(NEARBY_SWIFTPM)
#include "internal/platform/logging.h"
#else
#include "absl/log/check.h"
#endif
+2
View File
@@ -25,6 +25,8 @@
#ifdef NEARBY_CHROMIUM
#include "base/check.h"
#elif defined(NEARBY_SWIFTPM)
#include "internal/platform/logging.h"
#else
#include "absl/log/check.h"
#endif
+4
View File
@@ -24,11 +24,15 @@
#ifdef NEARBY_CHROMIUM
#include "base/check.h"
#elif defined(NEARBY_SWIFTPM)
#include "internal/platform/logging.h"
#else
#include "absl/log/check.h"
#endif
#ifndef NEARBY_SWIFTPM
#include "absl/log/log.h"
#endif
#include "absl/strings/string_view.h"
#include "absl/types/span.h"
#include "internal/crypto/nearby_base.h"
+2
View File
@@ -23,6 +23,8 @@
#ifdef NEARBY_CHROMIUM
#include "base/check.h"
#elif defined(NEARBY_SWIFTPM)
#include "internal/platform/logging.h"
#else
#include "absl/log/check.h"
#endif
+2
View File
@@ -21,6 +21,8 @@
#ifdef NEARBY_CHROMIUM
#include "base/check.h"
#elif defined(NEARBY_SWIFTPM)
#include "internal/platform/logging.h"
#else
#include "absl/log/check.h"
#endif
+2
View File
@@ -20,6 +20,8 @@
#ifdef NEARBY_CHROMIUM
#include "base/check.h"
#elif defined(NEARBY_SWIFTPM)
#include "internal/platform/logging.h"
#else
#include "absl/log/check.h"
#endif
+4
View File
@@ -19,7 +19,11 @@
#include <string>
#ifdef NEARBY_SWIFTPM
#include "internal/platform/logging.h"
#else
#include "absl/log/log.h"
#endif
#include "absl/strings/string_view.h"
#include <openssl/crypto.h>
#include <openssl/err.h>
+2
View File
@@ -22,6 +22,8 @@
#ifdef NEARBY_CHROMIUM
#include "base/check.h"
#elif defined(NEARBY_SWIFTPM)
#include "internal/platform/logging.h"
#else
#include "absl/log/check.h"
#endif
+2
View File
@@ -18,6 +18,8 @@
#ifdef NEARBY_CHROMIUM
#include "base/check.h"
#elif defined(NEARBY_SWIFTPM)
#include "internal/platform/logging.h"
#else
#include "absl/log/check.h"
#endif
+2
View File
@@ -24,6 +24,8 @@
#ifdef NEARBY_CHROMIUM
#include "base/check.h"
#elif defined(NEARBY_SWIFTPM)
#include "internal/platform/logging.h"
#else
#include "absl/log/check.h"
#endif
+4
View File
@@ -17,7 +17,11 @@
#include <string>
#ifdef NEARBY_SWIFTPM
#include "internal/platform/logging.h"
#else
#include "absl/log/log.h"
#endif
#include "absl/strings/string_view.h"
#include "internal/platform/byte_array.h"
#include "internal/platform/connection_info.h"
+2
View File
@@ -39,6 +39,8 @@
#ifdef NEARBY_CHROMIUM
#include "base/check.h"
#elif defined(NEARBY_SWIFTPM)
#include "internal/platform/logging.h"
#else
#include "absl/log/check.h"
#endif
+4
View File
@@ -102,4 +102,8 @@ class LogMessageVoidify {
NEARBY_LOG_IS_ON(severity) \
? NEARBY_LOG_MESSAGE(severity)->Print(__VA_ARGS__) : (void)0
#ifdef NEARBY_SWIFTPM
#define LOG(severity) NEARBY_LOGS(severity)
#endif
#endif // PLATFORM_BASE_LOGGING_H_