| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2013 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2013 The WebRTC project authors. All Rights Reserved. |
| 3 * | 3 * |
| 4 * Use of this source code is governed by a BSD-style license | 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 | 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 | 6 * tree. An additional intellectual property rights grant can be found |
| 7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
| 8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
| 9 */ | 9 */ |
| 10 | 10 |
| 11 #ifndef WEBRTC_TEST_TEST_SUPPORT_TRACE_TO_STDERR_H_ | 11 #ifndef WEBRTC_TEST_TEST_SUPPORT_TRACE_TO_STDERR_H_ |
| 12 #define WEBRTC_TEST_TEST_SUPPORT_TRACE_TO_STDERR_H_ | 12 #define WEBRTC_TEST_TEST_SUPPORT_TRACE_TO_STDERR_H_ |
| 13 | 13 |
| 14 #include "webrtc/system_wrappers/interface/trace.h" | 14 #include "webrtc/system_wrappers/include/trace.h" |
| 15 | 15 |
| 16 namespace webrtc { | 16 namespace webrtc { |
| 17 namespace test { | 17 namespace test { |
| 18 | 18 |
| 19 // Upon constructing an instance of this class, all traces will be redirected | 19 // Upon constructing an instance of this class, all traces will be redirected |
| 20 // to stderr. At destruction, redirection is halted. | 20 // to stderr. At destruction, redirection is halted. |
| 21 class TraceToStderr : public TraceCallback { | 21 class TraceToStderr : public TraceCallback { |
| 22 public: | 22 public: |
| 23 TraceToStderr(); | 23 TraceToStderr(); |
| 24 // Set |override_time| to true to control the time printed with each trace | 24 // Set |override_time| to true to control the time printed with each trace |
| (...skipping 18 matching lines...) Expand all Loading... |
| 43 | 43 |
| 44 private: | 44 private: |
| 45 bool override_time_; | 45 bool override_time_; |
| 46 float time_seconds_; | 46 float time_seconds_; |
| 47 }; | 47 }; |
| 48 | 48 |
| 49 } // namespace test | 49 } // namespace test |
| 50 } // namespace webrtc | 50 } // namespace webrtc |
| 51 | 51 |
| 52 #endif // WEBRTC_TEST_TEST_SUPPORT_TRACE_TO_STDERR_H_ | 52 #endif // WEBRTC_TEST_TEST_SUPPORT_TRACE_TO_STDERR_H_ |
| OLD | NEW |