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

Side by Side Diff: webrtc/test/testsupport/trace_to_stderr.cc

Issue 3000253002: Move video send/receive stream headers to webrtc/call. (Closed)
Patch Set: Remove 'video{source, sink}interface from GN Created 3 years, 4 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
« no previous file with comments | « webrtc/test/encoder_settings.h ('k') | webrtc/video/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
(...skipping 26 matching lines...) Expand all
37 } 37 }
38 38
39 TraceToStderr::~TraceToStderr() { 39 TraceToStderr::~TraceToStderr() {
40 Trace::SetTraceCallback(NULL); 40 Trace::SetTraceCallback(NULL);
41 Trace::ReturnTrace(); 41 Trace::ReturnTrace();
42 } 42 }
43 43
44 void TraceToStderr::SetTimeSeconds(float time) { time_seconds_ = time; } 44 void TraceToStderr::SetTimeSeconds(float time) { time_seconds_ = time; }
45 45
46 void TraceToStderr::Print(TraceLevel level, const char* msg_array, int length) { 46 void TraceToStderr::Print(TraceLevel level, const char* msg_array, int length) {
47 if (level & kLevelFilter) { 47 if (true
48 // level & kLevelFilter
49 ) {
kjellander_webrtc 2017/08/21 13:45:28 I assume this should be restored?
aleloi 2017/08/22 09:03:17 Done.
48 assert(length > Trace::kBoilerplateLength); 50 assert(length > Trace::kBoilerplateLength);
49 std::string msg = msg_array; 51 std::string msg = msg_array;
50 std::string msg_log = msg.substr(Trace::kBoilerplateLength); 52 std::string msg_log = msg; // msg.substr(Trace::kBoilerplateLength);
51 if (override_time_) { 53 if (override_time_) {
52 fprintf(stderr, "%.2fs %s\n", time_seconds_, msg_log.c_str()); 54 fprintf(stderr, "%.2fs %s\n", time_seconds_, msg_log.c_str());
53 } else { 55 } else {
54 std::string msg_time = msg.substr(Trace::kTimestampPosition, 56 std::string msg_time = msg.substr(Trace::kTimestampPosition,
55 Trace::kTimestampLength); 57 Trace::kTimestampLength);
56 fprintf(stderr, "%s %s\n", msg_time.c_str(), msg_log.c_str()); 58 fprintf(stderr, "%s %s\n", msg_time.c_str(), msg_log.c_str());
57 } 59 }
58 fflush(stderr); 60 fflush(stderr);
59 } 61 }
60 } 62 }
61 63
62 } // namespace test 64 } // namespace test
63 } // namespace webrtc 65 } // namespace webrtc
OLDNEW
« no previous file with comments | « webrtc/test/encoder_settings.h ('k') | webrtc/video/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698