Flutter Engine
PlatformViewGoldenTestManager.h
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 <Foundation/Foundation.h>
6 
7 #import "GoldenImage.h"
8 
10 
11 extern NSDictionary* launchArgsMap;
12 
13 // Manages a `GoldenPlatformViewTests`.
14 //
15 // It creates the correct `identifer` based on the `launchArg`.
16 // It also generates the correct GoldenImage based on the `identifier`.
17 @interface PlatformViewGoldenTestManager : NSObject
18 
19 @property(readonly, strong, nonatomic) GoldenImage* goldenImage;
20 @property(readonly, copy, nonatomic) NSString* identifier;
21 @property(readonly, copy, nonatomic) NSString* launchArg;
22 
23 // Initilize with launchArg.
24 //
25 // Crahes if the launchArg is not mapped in `Appdelegate.launchArgsMap`.
26 - (instancetype)initWithLaunchArg:(NSString*)launchArg;
27 
28 @end
29 
#define NS_ASSUME_NONNULL_END
Definition: FlutterMacros.h:20
#define NS_ASSUME_NONNULL_BEGIN
Definition: FlutterMacros.h:19
NS_ASSUME_NONNULL_BEGIN NSDictionary * launchArgsMap