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

Unified Diff: webrtc/base/objc/RTCFileLogger.mm

Issue 1845133002: Minor ObjC header updates. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 4 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « webrtc/base/objc/RTCFileLogger.h ('k') | webrtc/base/objc/RTCLogging.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/base/objc/RTCFileLogger.mm
diff --git a/webrtc/base/objc/RTCFileLogger.mm b/webrtc/base/objc/RTCFileLogger.mm
index cc3a39d0beefb7c5c330134ad8c2e3e44a716aaf..bf61794bd146c58dc575c0216a35ef94e8ba8627 100644
--- a/webrtc/base/objc/RTCFileLogger.mm
+++ b/webrtc/base/objc/RTCFileLogger.mm
@@ -45,7 +45,7 @@ const char *kRTCFileLoggerRotatingLogPrefix = "rotating_log";
maxFileSize:(NSUInteger)maxFileSize {
return [self initWithDirPath:dirPath
maxFileSize:maxFileSize
- rotationType:kRTCFileLoggerTypeCall];
+ rotationType:RTCFileLoggerTypeCall];
}
- (instancetype)initWithDirPath:(NSString *)dirPath
@@ -72,7 +72,7 @@ const char *kRTCFileLoggerRotatingLogPrefix = "rotating_log";
}
_dirPath = dirPath;
_maxFileSize = maxFileSize;
- _severity = kRTCFileLoggerSeverityInfo;
+ _severity = RTCFileLoggerSeverityInfo;
}
return self;
}
@@ -86,14 +86,14 @@ const char *kRTCFileLoggerRotatingLogPrefix = "rotating_log";
return;
}
switch (_rotationType) {
- case kRTCFileLoggerTypeApp:
+ case RTCFileLoggerTypeApp:
_logSink.reset(
new rtc::FileRotatingLogSink(_dirPath.UTF8String,
kRTCFileLoggerRotatingLogPrefix,
_maxFileSize,
_maxFileSize / 10));
break;
- case kRTCFileLoggerTypeCall:
+ case RTCFileLoggerTypeCall:
_logSink.reset(
new rtc::CallSessionFileRotatingLogSink(_dirPath.UTF8String,
_maxFileSize));
@@ -131,12 +131,12 @@ const char *kRTCFileLoggerRotatingLogPrefix = "rotating_log";
NSMutableData* logData = [NSMutableData data];
rtc::scoped_ptr<rtc::FileRotatingStream> stream;
switch(_rotationType) {
- case kRTCFileLoggerTypeApp:
+ case RTCFileLoggerTypeApp:
stream.reset(
new rtc::FileRotatingStream(_dirPath.UTF8String,
kRTCFileLoggerRotatingLogPrefix));
break;
- case kRTCFileLoggerTypeCall:
+ case RTCFileLoggerTypeCall:
stream.reset(new rtc::CallSessionFileRotatingStream(_dirPath.UTF8String));
break;
}
@@ -161,13 +161,13 @@ const char *kRTCFileLoggerRotatingLogPrefix = "rotating_log";
- (rtc::LoggingSeverity)rtcSeverity {
switch (_severity) {
- case kRTCFileLoggerSeverityVerbose:
+ case RTCFileLoggerSeverityVerbose:
return rtc::LS_VERBOSE;
- case kRTCFileLoggerSeverityInfo:
+ case RTCFileLoggerSeverityInfo:
return rtc::LS_INFO;
- case kRTCFileLoggerSeverityWarning:
+ case RTCFileLoggerSeverityWarning:
return rtc::LS_WARNING;
- case kRTCFileLoggerSeverityError:
+ case RTCFileLoggerSeverityError:
return rtc::LS_ERROR;
}
}
« no previous file with comments | « webrtc/base/objc/RTCFileLogger.h ('k') | webrtc/base/objc/RTCLogging.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698