| Flutter iOS Embedder |

framework_common_swift_unittests.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_common_swift_unittests/framework_common_swift_unittests.h"
6
7 #import "flutter/shell/platform/darwin/common/framework/Headers/FlutterMacros.h"
8 #import "flutter/shell/platform/darwin/common/framework/Source/FlutterTestUtils.h"
9 #include "gtest/gtest.h"
10
11 FLUTTER_ASSERT_ARC
12
13 TEST(FrameworkCommonUnittestsSwift, Logger) {
14 ASSERT_FALSE(FLTThrowsObjcException(^{
15 [[LoggerTest alloc] runAllTests];
16 }));
17 }
FlutterMacros.h
FlutterTestUtils.h
FLTThrowsObjcException
BOOL FLTThrowsObjcException(dispatch_block_t block)
Returns YES if the block throws an exception.
Definition: FlutterTestUtils.mm:11
TEST
FLUTTER_ASSERT_ARC TEST(FrameworkCommonUnittestsSwift, Logger)
Definition: framework_common_swift_unittests.mm:13
FLUTTER_ASSERT_ARC
Definition: FlutterChannelKeyResponder.mm:13