Flutter iOS Embedder
FlutterTestUtils.mm
Go to the documentation of this file.
1 // Copyright 2013 The Flutter Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4 
6 
8 
10 
11 BOOL FLTThrowsObjcException(dispatch_block_t block) {
12  @try {
13  block();
14  } @catch (...) {
15  return YES;
16  }
17  return NO;
18 }
FlutterMacros.h
FLTThrowsObjcException
FLUTTER_ASSERT_ARC BOOL FLTThrowsObjcException(dispatch_block_t block)
Returns YES if the block throws an exception.
Definition: FlutterTestUtils.mm:11
FlutterTestUtils.h
FLUTTER_ASSERT_ARC
Definition: FlutterChannelKeyResponder.mm:13