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

Side by Side Diff: webrtc/modules/remote_bitrate_estimator/test/bwe_test_logging.h

Issue 1345433002: Add RTC_ prefix to contructormagic macros. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Formatting fix. Created 5 years, 3 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
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 230 matching lines...) Expand 10 before | Expand all | Expand 10 after
241 241
242 class Logging { 242 class Logging {
243 public: 243 public:
244 class Context { 244 class Context {
245 public: 245 public:
246 Context(uint32_t name, int64_t timestamp_ms, bool enabled); 246 Context(uint32_t name, int64_t timestamp_ms, bool enabled);
247 Context(const std::string& name, int64_t timestamp_ms, bool enabled); 247 Context(const std::string& name, int64_t timestamp_ms, bool enabled);
248 Context(const char* name, int64_t timestamp_ms, bool enabled); 248 Context(const char* name, int64_t timestamp_ms, bool enabled);
249 ~Context(); 249 ~Context();
250 private: 250 private:
251 DISALLOW_IMPLICIT_CONSTRUCTORS(Context); 251 RTC_DISALLOW_IMPLICIT_CONSTRUCTORS(Context);
252 }; 252 };
253 253
254 static Logging* GetInstance(); 254 static Logging* GetInstance();
255 255
256 void SetGlobalContext(uint32_t name); 256 void SetGlobalContext(uint32_t name);
257 void SetGlobalContext(const std::string& name); 257 void SetGlobalContext(const std::string& name);
258 void SetGlobalContext(const char* name); 258 void SetGlobalContext(const char* name);
259 void SetGlobalEnable(bool enabled); 259 void SetGlobalEnable(bool enabled);
260 260
261 void Log(const char format[], ...); 261 void Log(const char format[], ...);
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
306 306
307 Logging(); 307 Logging();
308 void PushState(const std::string& append_to_tag, int64_t timestamp_ms, 308 void PushState(const std::string& append_to_tag, int64_t timestamp_ms,
309 bool enabled); 309 bool enabled);
310 void PopState(); 310 void PopState();
311 311
312 static Logging g_Logging; 312 static Logging g_Logging;
313 rtc::scoped_ptr<CriticalSectionWrapper> crit_sect_; 313 rtc::scoped_ptr<CriticalSectionWrapper> crit_sect_;
314 ThreadMap thread_map_; 314 ThreadMap thread_map_;
315 315
316 DISALLOW_COPY_AND_ASSIGN(Logging); 316 RTC_DISALLOW_COPY_AND_ASSIGN(Logging);
317 }; 317 };
318 } // namespace bwe 318 } // namespace bwe
319 } // namespace testing 319 } // namespace testing
320 } // namespace webrtc 320 } // namespace webrtc
321 321
322 #endif // BWE_TEST_LOGGING_COMPILE_TIME_ENABLE 322 #endif // BWE_TEST_LOGGING_COMPILE_TIME_ENABLE
323 #endif // WEBRTC_MODULES_REMOTE_BITRATE_ESTIMATOR_TEST_BWE_TEST_LOGGING_H_ 323 #endif // WEBRTC_MODULES_REMOTE_BITRATE_ESTIMATOR_TEST_BWE_TEST_LOGGING_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698