Commit 588d1728 authored by corona10's avatar corona10 Committed by Commit bot

[Mac] Fix unit_tests build in 10.12 SDK.

exception_processor_unittest.mm:
error: null passed to a callee that requires a non-null argument

Review-Url: https://codereview.chromium.org/2565093002
Cr-Commit-Position: refs/heads/master@{#437917}
parent ba0293aa
......@@ -95,7 +95,7 @@ void RaiseExceptionInRunLoop() {
CFRunLoopRef run_loop = CFRunLoopGetCurrent();
CFRunLoopPerformBlock(run_loop, kCFRunLoopCommonModes, ^{
[NSException raise:@"ThrowExceptionInRunLoop" format:nil];
[NSException raise:@"ThrowExceptionInRunLoop" format:@""];
});
CFRunLoopPerformBlock(run_loop, kCFRunLoopCommonModes, ^{
CFRunLoopStop(run_loop);
......@@ -129,7 +129,7 @@ void ThrowAndCatchExceptionInRunLoop() {
CFRunLoopRef run_loop = CFRunLoopGetCurrent();
CFRunLoopPerformBlock(run_loop, kCFRunLoopCommonModes, ^{
@try {
[NSException raise:@"ObjcExceptionPreprocessCaught" format:nil];
[NSException raise:@"ObjcExceptionPreprocessCaught" format:@""];
} @catch (id exception) {
}
});
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment