File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ @interface PowerMonitorTest : XCTestCase
2727@implementation PowerMonitorTest
2828
2929- (void )testCreateReturnsNonNull {
30- auto monitor = PowerMonitor::Create (^(PowerEvent event) {
30+ auto monitor = PowerMonitor::Create (^(PowerEvent event){
3131 });
3232 XCTAssertTrue (monitor != nullptr );
3333}
@@ -39,16 +39,16 @@ - (void)testCreateWithNilCallbackReturnsNull {
3939
4040- (void )testConstructAndDestruct {
4141 // Verify that creating and immediately destroying a monitor doesn't crash.
42- auto monitor = PowerMonitor::Create (^(PowerEvent event) {
42+ auto monitor = PowerMonitor::Create (^(PowerEvent event){
4343 });
4444 XCTAssertTrue (monitor != nullptr );
4545 monitor.reset ();
4646}
4747
4848- (void )testMultipleMonitorsCoexist {
49- auto monitor1 = PowerMonitor::Create (^(PowerEvent event) {
49+ auto monitor1 = PowerMonitor::Create (^(PowerEvent event){
5050 });
51- auto monitor2 = PowerMonitor::Create (^(PowerEvent event) {
51+ auto monitor2 = PowerMonitor::Create (^(PowerEvent event){
5252 });
5353 XCTAssertTrue (monitor1 != nullptr );
5454 XCTAssertTrue (monitor2 != nullptr );
You can’t perform that action at this time.
0 commit comments