summaryrefslogtreecommitdiff
path: root/absl/log/absl_log_basic_test.cc
diff options
context:
space:
mode:
authorGravatar Mike Kruskal <mkruskal@google.com>2022-12-06 13:55:58 -0800
committerGravatar Copybara-Service <copybara-worker@google.com>2022-12-06 13:56:42 -0800
commitc96db73c09dbb528eca6d19a50bd258b37e9fd5e (patch)
tree0cbf2f7b1ea6eb98f0fc39d5214e7a9a30de0505 /absl/log/absl_log_basic_test.cc
parentbcc29b8c261b2fa843889c63b79118398b9df4a3 (diff)
Create alternate absl-prefixed versions of absl logging macros.
This will allow OSS code to use absl logging without necessarily polluting the preprocessor symbols with definitions for LOG and CHECK PiperOrigin-RevId: 493404211 Change-Id: I7bc5807252218dd7fc26da3af13d5734ef8b2601
Diffstat (limited to 'absl/log/absl_log_basic_test.cc')
-rw-r--r--absl/log/absl_log_basic_test.cc21
1 files changed, 21 insertions, 0 deletions
diff --git a/absl/log/absl_log_basic_test.cc b/absl/log/absl_log_basic_test.cc
new file mode 100644
index 00000000..bc8a787d
--- /dev/null
+++ b/absl/log/absl_log_basic_test.cc
@@ -0,0 +1,21 @@
+//
+// Copyright 2022 The Abseil Authors.
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// https://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+#include "absl/log/absl_log.h"
+
+#define ABSL_TEST_LOG ABSL_LOG
+
+#include "gtest/gtest.h"
+#include "absl/log/log_basic_test_impl.h"