blob: 40ff8795c0b459ad8b35765532c39f1e607f70fb [file] [log] [blame]
andrew@webrtc.orgb87cc852013-03-25 16:23:37 +00001/*
2 * Copyright (c) 2013 The WebRTC project authors. All Rights Reserved.
3 *
4 * Use of this source code is governed by a BSD-style license
5 * that can be found in the LICENSE file in the root of the source
6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree.
9 */
10
11#ifndef WEBRTC_TEST_TEST_SUPPORT_TRACE_TO_STDERR_H_
12#define WEBRTC_TEST_TEST_SUPPORT_TRACE_TO_STDERR_H_
13
14#include "webrtc/system_wrappers/interface/trace.h"
15
16namespace webrtc {
17namespace test {
18
19// Upon constructing an instance of this class, all traces will be redirected
20// to stderr. At destruction, redirection is halted.
21class TraceToStderr : public TraceCallback {
22 public:
23 TraceToStderr();
24 virtual ~TraceToStderr();
25
26 virtual void Print(TraceLevel level, const char* msg_array, int length);
27};
28
29} // namespace test
30} // namespace webrtc
31
32#endif // WEBRTC_TEST_TEST_SUPPORT_TRACE_TO_STDERR_H_