blob: 8685f3fd610bed3a1666c32cc90e23679aef8df6 [file] [log] [blame]
// Copyright 2013 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.
#ifndef MockFLTThreadSafeFlutterResult_h
#define MockFLTThreadSafeFlutterResult_h
* Extends FLTThreadSafeFlutterResult to give tests the ability to wait on the result and
* read the received result.
@interface MockFLTThreadSafeFlutterResult : FLTThreadSafeFlutterResult
@property(readonly, nonatomic, nonnull) XCTestExpectation *expectation;
@property(nonatomic, nullable) id receivedResult;
* Initializes the MockFLTThreadSafeFlutterResult with an expectation.
* The expectation is fullfilled when a result is called allowing tests to await the result in an
* asynchronous manner.
- (nonnull instancetype)initWithExpectation:(nonnull XCTestExpectation *)expectation;
#endif /* MockFLTThreadSafeFlutterResult_h */