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

Side by Side Diff: webrtc/base/unittest_main.cc

Issue 2927983003: Delete ApplicationName and OrganizationName. (Closed)
Patch Set: Created 3 years, 6 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/base/fileutils.h ('k') | no next file » | 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 2007 The WebRTC Project Authors. All rights reserved. 2 * Copyright 2007 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 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 } 86 }
87 87
88 #if !defined(NDEBUG) // Turn on memory leak checking on Windows. 88 #if !defined(NDEBUG) // Turn on memory leak checking on Windows.
89 _CrtSetDbgFlag(_CRTDBG_ALLOC_MEM_DF |_CRTDBG_LEAK_CHECK_DF); 89 _CrtSetDbgFlag(_CRTDBG_ALLOC_MEM_DF |_CRTDBG_LEAK_CHECK_DF);
90 if (FLAG_crt_break_alloc >= 0) { 90 if (FLAG_crt_break_alloc >= 0) {
91 _crtBreakAlloc = FLAG_crt_break_alloc; 91 _crtBreakAlloc = FLAG_crt_break_alloc;
92 } 92 }
93 #endif 93 #endif
94 #endif // WEBRTC_WIN 94 #endif // WEBRTC_WIN
95 95
96 rtc::Filesystem::SetOrganizationName("google");
97 rtc::Filesystem::SetApplicationName("unittest");
98
99 // By default, log timestamps. Allow overrides by used of a --log flag. 96 // By default, log timestamps. Allow overrides by used of a --log flag.
100 rtc::LogMessage::LogTimestamps(); 97 rtc::LogMessage::LogTimestamps();
101 if (*FLAG_log != '\0') { 98 if (*FLAG_log != '\0') {
102 rtc::LogMessage::ConfigureLogging(FLAG_log); 99 rtc::LogMessage::ConfigureLogging(FLAG_log);
103 } else if (rtc::LogMessage::GetLogToDebug() > rtc::LS_INFO) { 100 } else if (rtc::LogMessage::GetLogToDebug() > rtc::LS_INFO) {
104 // Default to LS_INFO, even for release builds to provide better test 101 // Default to LS_INFO, even for release builds to provide better test
105 // logging. 102 // logging.
106 rtc::LogMessage::LogToDebug(rtc::LS_INFO); 103 rtc::LogMessage::LogToDebug(rtc::LS_INFO);
107 } 104 }
108 105
(...skipping 14 matching lines...) Expand all
123 120
124 #if defined(WEBRTC_WIN) 121 #if defined(WEBRTC_WIN)
125 // Unhook crt function so that we don't ever log after statics have been 122 // Unhook crt function so that we don't ever log after statics have been
126 // uninitialized. 123 // uninitialized.
127 if (!FLAG_default_error_handlers) 124 if (!FLAG_default_error_handlers)
128 _CrtSetReportHook2(_CRT_RPTHOOK_REMOVE, TestCrtReportHandler); 125 _CrtSetReportHook2(_CRT_RPTHOOK_REMOVE, TestCrtReportHandler);
129 #endif 126 #endif
130 127
131 return res; 128 return res;
132 } 129 }
OLDNEW
« no previous file with comments | « webrtc/base/fileutils.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698