| Flutter macOS 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
5 #import "flutter/shell/platform/darwin/common/framework/Source/FlutterTestUtils.h"
6
7 #import "flutter/shell/platform/darwin/common/framework/Headers/FlutterMacros.h"
8
9 FLUTTER_ASSERT_ARC
10
11 BOOL FLTThrowsObjcException(dispatch_block_t block) {
12 @try {
13 block();
14 } @catch (...) {
15 return YES;
16 }
17 return NO;
18 }
FlutterMacros.h
FLUTTER_ASSERT_ARC
#define FLUTTER_ASSERT_ARC
Definition: FlutterMacros.h:44
FlutterTestUtils.h
FLTThrowsObjcException
FLUTTER_ASSERT_ARC BOOL FLTThrowsObjcException(dispatch_block_t block)
Returns YES if the block throws an exception.
Definition: FlutterTestUtils.mm:11