mirror of
https://github.com/flutter/flutter.git
synced 2025-06-03 00:51:18 +00:00
44 lines
1.1 KiB
Objective-C
44 lines
1.1 KiB
Objective-C
// Copyright 2014 The Flutter Authors. All rights reserved.
|
|
// Use of this source code is governed by a BSD-style license that can be
|
|
// found in the LICENSE file.
|
|
|
|
@import Foundation;
|
|
|
|
@class UIImage;
|
|
|
|
NS_ASSUME_NONNULL_BEGIN
|
|
|
|
typedef void (^FLTIntegrationTestResults)(NSString *testName, BOOL success, NSString *_Nullable failureMessage);
|
|
|
|
|
|
@interface FLTIntegrationTestRunner : NSObject
|
|
|
|
/**
|
|
* Any screenshots captured by the plugin.
|
|
*/
|
|
@property (copy, readonly) NSDictionary<NSString *, UIImage *> *capturedScreenshotsByName;
|
|
|
|
/*!
|
|
Start dart tests and wait for results.
|
|
|
|
@param testResult Will be called once per every completed dart test.
|
|
*/
|
|
- (void)testIntegrationTestWithResults:(NS_NOESCAPE FLTIntegrationTestResults)testResult;
|
|
|
|
@end
|
|
|
|
DEPRECATED_MSG_ATTRIBUTE("Use FLTIntegrationTestRunner instead.")
|
|
@interface IntegrationTestIosTest : NSObject
|
|
|
|
/*!
|
|
Initate dart tests and wait for results.
|
|
|
|
@param testResult Will be set to a string describing the results.
|
|
@returns @c YES if all tests succeeded.
|
|
*/
|
|
- (BOOL)testIntegrationTest:(NSString *_Nullable *_Nullable)testResult;
|
|
|
|
@end
|
|
|
|
NS_ASSUME_NONNULL_END
|