Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(73)

Side by Side Diff: base/test/logging_utils.h

Issue 2638763004: Report CHECK/DCHECK to test launcher summary output. (Closed)
Patch Set: Fix formatting & function signature. Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2017 The Chromium Authors. All rights reserved.
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 #include "base/macros.h"
12
13 namespace logging {
14
15 // Scoped object to set and restore Log Assert handler.
16 BASE_EXPORT class ScopedLogAssertHandler {
17 public:
18 ScopedLogAssertHandler();
19 explicit ScopedLogAssertHandler(LogAssertHandlerFunction handler);
20 ScopedLogAssertHandler(ScopedLogAssertHandler&& other);
21 ~ScopedLogAssertHandler();
22
23 ScopedLogAssertHandler& operator=(ScopedLogAssertHandler&& other);
24
25 private:
26 LogAssertHandlerFunction handler_;
27
28 DISALLOW_COPY_AND_ASSIGN(ScopedLogAssertHandler);
29 };
30
31 } // namespace logging
32
33 #endif // BASE_TEST_LOGGING_UTILS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698