Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | |
|
Paweł Hajdan Jr.
2017/01/27 17:19:44
nit: 2017, no (c).
alex-ac
2017/02/11 20:12:20
Done.
| |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef BASE_TEST_LOGGING_UTILS_H_ | |
| 6 #define BASE_TEST_LOGGING_UTILS_H_ | |
| 7 | |
| 8 #include "base/base_export.h" | |
| 9 #include "base/callback.h" | |
| 10 #include "base/logging.h" | |
| 11 | |
| 12 namespace logging { | |
| 13 | |
| 14 // Scoped object to set and restore Log Assert handler. | |
| 15 BASE_EXPORT class ScopedLogAssertHandler { | |
| 16 public: | |
| 17 ScopedLogAssertHandler(); | |
| 18 explicit ScopedLogAssertHandler(LogAssertHandlerFunction handler); | |
| 19 ScopedLogAssertHandler(ScopedLogAssertHandler&& other); | |
| 20 ~ScopedLogAssertHandler(); | |
| 21 | |
| 22 ScopedLogAssertHandler& operator=(ScopedLogAssertHandler&& other); | |
| 23 | |
| 24 private: | |
|
Paweł Hajdan Jr.
2017/01/27 17:19:44
nit: DISALLOW_COPY_AND_ASSIGN?
alex-ac
2017/02/11 20:12:20
Done.
| |
| 25 LogAssertHandlerFunction handler_; | |
| 26 }; | |
| 27 | |
| 28 } // namespace logging | |
| 29 | |
| 30 #endif // BASE_TEST_LOGGING_UTILS_H_ | |
| OLD | NEW |