diff --git a/Source/santactl/Commands/SNTCommandFileInfo.m b/Source/santactl/Commands/SNTCommandFileInfo.m index 829a453..36b15a9 100644 --- a/Source/santactl/Commands/SNTCommandFileInfo.m +++ b/Source/santactl/Commands/SNTCommandFileInfo.m @@ -248,7 +248,8 @@ - (instancetype)initWithDaemonConnection:(MOLXPCConnection *)daemonConn { kCDHash : self.cdhash, }; - _printQueue = dispatch_queue_create("com.northpolesec.santactl.print_queue", DISPATCH_QUEUE_SERIAL); + _printQueue = + dispatch_queue_create("com.northpolesec.santactl.print_queue", DISPATCH_QUEUE_SERIAL); } return self; } diff --git a/Source/santad/DataLayer/WatchItemsTest.mm b/Source/santad/DataLayer/WatchItemsTest.mm index 493b783..4bc5f64 100644 --- a/Source/santad/DataLayer/WatchItemsTest.mm +++ b/Source/santad/DataLayer/WatchItemsTest.mm @@ -653,12 +653,14 @@ - (void)testVerifyConfigWatchItemProcesses { &err); XCTAssertTrue(std::holds_alternative(proc_list)); XCTAssertEqual(std::get(proc_list).size(), 2); - XCTAssertEqual(std::get(proc_list)[0], - WatchItemPolicy::Process("mypath1", "com.northpolesec.test1", "validtid_1", cdhashBytes, - [certHash UTF8String], std::make_optional(true))); - XCTAssertEqual(std::get(proc_list)[1], - WatchItemPolicy::Process("mypath2", "com.northpolesec.test2", "validtid_2", cdhashBytes, - [certHash UTF8String], std::make_optional(false))); + XCTAssertEqual( + std::get(proc_list)[0], + WatchItemPolicy::Process("mypath1", "com.northpolesec.test1", "validtid_1", cdhashBytes, + [certHash UTF8String], std::make_optional(true))); + XCTAssertEqual( + std::get(proc_list)[1], + WatchItemPolicy::Process("mypath2", "com.northpolesec.test2", "validtid_2", cdhashBytes, + [certHash UTF8String], std::make_optional(false))); } - (void)testIsWatchItemNameValid { diff --git a/Source/santad/EventProviders/SNTEndpointSecurityDeviceManager.mm b/Source/santad/EventProviders/SNTEndpointSecurityDeviceManager.mm index dc107a6..1979479 100644 --- a/Source/santad/EventProviders/SNTEndpointSecurityDeviceManager.mm +++ b/Source/santad/EventProviders/SNTEndpointSecurityDeviceManager.mm @@ -193,7 +193,8 @@ - (instancetype)initWithESAPI:(std::shared_ptr)esApi _blockUSBMount = blockUSBMount; _remountArgs = remountUSBMode; - _diskQueue = dispatch_queue_create("com.northpolesec.santa.daemon.disk_queue", DISPATCH_QUEUE_SERIAL); + _diskQueue = + dispatch_queue_create("com.northpolesec.santa.daemon.disk_queue", DISPATCH_QUEUE_SERIAL); _diskArbSession = DASessionCreate(NULL); DASessionSetDispatchQueue(_diskArbSession, _diskQueue); diff --git a/Source/santametricservice/Writers/SNTMetricHTTPWriterTest.m b/Source/santametricservice/Writers/SNTMetricHTTPWriterTest.m index 21f0873..42d8b54 100644 --- a/Source/santametricservice/Writers/SNTMetricHTTPWriterTest.m +++ b/Source/santametricservice/Writers/SNTMetricHTTPWriterTest.m @@ -133,9 +133,10 @@ - (void)testEnsureHTTPErrorCodesResultInErrors { - (void)testEnsureErrorsFromTransportAreHandled { NSURL *url = [NSURL URLWithString:@"http://localhost:9444"]; - NSError *mockErr = [[NSError alloc] initWithDomain:@"com.northpolesec.santa.metricservice.writers.http" - code:505 - userInfo:@{NSLocalizedDescriptionKey : @"test error"}]; + NSError *mockErr = + [[NSError alloc] initWithDomain:@"com.northpolesec.santa.metricservice.writers.http" + code:505 + userInfo:@{NSLocalizedDescriptionKey : @"test error"}]; NSError *err; [self createMockResponseWithURL:url withCode:505 withData:nil withError:mockErr]; diff --git a/Source/santasyncservice/SNTPushNotificationsTracker.m b/Source/santasyncservice/SNTPushNotificationsTracker.m index 60c2355..0b57b93 100644 --- a/Source/santasyncservice/SNTPushNotificationsTracker.m +++ b/Source/santasyncservice/SNTPushNotificationsTracker.m @@ -29,8 +29,8 @@ - (instancetype)init { self = [super init]; if (self) { _notifications = [NSMutableDictionary dictionary]; - _notificationsQueue = - dispatch_queue_create("com.northpolesec.santa.syncservice.notifications", DISPATCH_QUEUE_SERIAL); + _notificationsQueue = dispatch_queue_create("com.northpolesec.santa.syncservice.notifications", + DISPATCH_QUEUE_SERIAL); } return self; }