Flutter Engine
PlatformViewGoldenTestManager Class Reference

#import <PlatformViewGoldenTestManager.h>

Inheritance diagram for PlatformViewGoldenTestManager:

Instance Methods

(instancetype) - initWithLaunchArg:
 

Properties

GoldenImagegoldenImage
 
NSString * identifier
 
NSString * launchArg
 

Detailed Description

Definition at line 17 of file PlatformViewGoldenTestManager.h.

Method Documentation

◆ initWithLaunchArg:()

- (instancetype) initWithLaunchArg: (NSString*)  launchArg

Definition at line 19 of file PlatformViewGoldenTestManager.m.

References launchArg, launchArgsMap, and flutter::prefix.

19  :(NSString*)launchArg {
20  self = [super init];
21  if (self) {
22  // The launchArgsMap should match the one in the `PlatformVieGoldenTestManager`.
23  static NSDictionary<NSString*, NSString*>* launchArgsMap;
24  static dispatch_once_t onceToken;
25  dispatch_once(&onceToken, ^{
26  launchArgsMap = @{
27  @"--platform-view" : @"platform_view",
28  @"--platform-view-multiple" : @"platform_view_multiple",
29  @"--platform-view-multiple-background-foreground" :
30  @"platform_view_multiple_background_foreground",
31  @"--platform-view-cliprect" : @"platform_view_cliprect",
32  @"--platform-view-cliprrect" : @"platform_view_cliprrect",
33  @"--platform-view-clippath" : @"platform_view_clippath",
34  @"--platform-view-transform" : @"platform_view_transform",
35  @"--platform-view-opacity" : @"platform_view_opacity",
36  @"--platform-view-rotate" : @"platform_view_rotate",
37  };
38  });
39  _identifier = launchArgsMap[launchArg];
40  NSString* prefix = [NSString stringWithFormat:@"golden_%@_", _identifier];
41  _goldenImage = [[GoldenImage alloc] initWithGoldenNamePrefix:prefix];
42  _launchArg = launchArg;
43  }
44  return self;
45 }
DEF_SWITCHES_START snapshot asset Path to the directory containing the four files specified by VmSnapshotInstructions and IsolateSnapshotInstructions vm snapshot The VM instructions snapshot that will be memory mapped as read and executable SnapshotAssetPath must be present isolate snapshot The isolate instructions snapshot that will be memory mapped as read and executable SnapshotAssetPath must be present icu symbol prefix
Definition: switches.h:59
NSDictionary * launchArgsMap

Property Documentation

◆ goldenImage

- (GoldenImage*) goldenImage
readnonatomicstrong

Definition at line 19 of file PlatformViewGoldenTestManager.h.

◆ identifier

- (NSString*) identifier
readnonatomiccopy

Definition at line 20 of file PlatformViewGoldenTestManager.h.

◆ launchArg

- (NSString*) launchArg
readnonatomiccopy

Definition at line 21 of file PlatformViewGoldenTestManager.h.

Referenced by initWithLaunchArg:.


The documentation for this class was generated from the following files: