Flutter Engine
The Flutter Engine
shell
platform
darwin
common
framework
Source
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
}
FLTThrowsObjcException
FLUTTER_ASSERT_ARC BOOL FLTThrowsObjcException(dispatch_block_t block)
Returns YES if the block throws an exception.
Definition:
FlutterTestUtils.mm:11
FLUTTER_ASSERT_ARC
Definition:
FlutterChannelKeyResponder.mm:13
BOOL
int BOOL
Definition:
windows_types.h:37
Generated on Sun Jun 23 2024 21:55:12 for Flutter Engine by
1.9.4