diff options
author | Mike Kruskal <mkruskal@google.com> | 2022-12-06 13:55:58 -0800 |
---|---|---|
committer | Copybara-Service <copybara-worker@google.com> | 2022-12-06 13:56:42 -0800 |
commit | c96db73c09dbb528eca6d19a50bd258b37e9fd5e (patch) | |
tree | 0cbf2f7b1ea6eb98f0fc39d5214e7a9a30de0505 /absl/log/log_basic_test.cc | |
parent | bcc29b8c261b2fa843889c63b79118398b9df4a3 (diff) | |
download | abseil-c96db73c09dbb528eca6d19a50bd258b37e9fd5e.tar.gz abseil-c96db73c09dbb528eca6d19a50bd258b37e9fd5e.tar.bz2 abseil-c96db73c09dbb528eca6d19a50bd258b37e9fd5e.zip |
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/log_basic_test.cc')
-rw-r--r-- | absl/log/log_basic_test.cc | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/absl/log/log_basic_test.cc b/absl/log/log_basic_test.cc new file mode 100644 index 00000000..b8d87c94 --- /dev/null +++ b/absl/log/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/log.h" + +#define ABSL_TEST_LOG LOG + +#include "gtest/gtest.h" +#include "absl/log/log_basic_test_impl.h" |