OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2004 The WebRTC Project Authors. All rights reserved. | 2 * Copyright 2004 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 #include "webrtc/base/fileutils.h" | 11 #include "webrtc/base/fileutils.h" |
12 #include "webrtc/base/gunit.h" | 12 #include "webrtc/base/gunit.h" |
13 #include "webrtc/base/logging.h" | 13 #include "webrtc/base/logging.h" |
14 #include "webrtc/base/pathutils.h" | 14 #include "webrtc/base/pathutils.h" |
15 #include "webrtc/base/stream.h" | 15 #include "webrtc/base/stream.h" |
16 #include "webrtc/base/thread.h" | 16 #include "webrtc/base/thread.h" |
17 #include "webrtc/test/testsupport/gtest_disable.h" | |
18 | 17 |
19 namespace rtc { | 18 namespace rtc { |
20 | 19 |
21 template <typename Base> | 20 template <typename Base> |
22 class LogSinkImpl | 21 class LogSinkImpl |
23 : public LogSink, | 22 : public LogSink, |
24 public Base { | 23 public Base { |
25 public: | 24 public: |
26 LogSinkImpl() {} | 25 LogSinkImpl() {} |
27 | 26 |
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
147 finish = Time(); | 146 finish = Time(); |
148 | 147 |
149 LogMessage::RemoveLogToStream(&stream); | 148 LogMessage::RemoveLogToStream(&stream); |
150 stream.Close(); | 149 stream.Close(); |
151 Filesystem::DeleteFile(path); | 150 Filesystem::DeleteFile(path); |
152 | 151 |
153 LOG(LS_INFO) << "Average log time: " << TimeDiff(finish, start) << " us"; | 152 LOG(LS_INFO) << "Average log time: " << TimeDiff(finish, start) << " us"; |
154 } | 153 } |
155 | 154 |
156 } // namespace rtc | 155 } // namespace rtc |
OLD | NEW |