Flutter Engine
The Flutter Engine
testing
scenario_app
ios
Scenarios
ScenariosUITests
GoldenImage.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
#ifndef FLUTTER_TESTING_SCENARIO_APP_IOS_SCENARIOS_SCENARIOSUITESTS_GOLDENIMAGE_H_
6
#define FLUTTER_TESTING_SCENARIO_APP_IOS_SCENARIOS_SCENARIOSUITESTS_GOLDENIMAGE_H_
7
8
#import <UIKit/UIKit.h>
9
10
NS_ASSUME_NONNULL_BEGIN
11
12
@interface
GoldenImage
: NSObject
13
14
@property
(readonly,
copy
, nonatomic) NSString*
goldenName
;
15
@property
(readonly, strong, nonatomic) UIImage*
image
;
16
17
// Initilize with the golden file's prefix.
18
//
19
// Create an image from a golden file named prefix+devicemodel.
20
- (instancetype)initWithGoldenNamePrefix:(NSString*)prefix;
21
22
// Compare this GoldenImage to `image`.
23
//
24
// Return YES if the `image` of this GoldenImage have the same pixels of provided `image`.
25
- (
BOOL
)compareGoldenToImage:(UIImage*)image rmesThreshold:(
double
)rmesThreshold;
26
27
@end
28
29
NS_ASSUME_NONNULL_END
30
31
#endif
// FLUTTER_TESTING_SCENARIO_APP_IOS_SCENARIOS_SCENARIOSUITESTS_GOLDENIMAGE_H_
NS_ASSUME_NONNULL_BEGIN
#define NS_ASSUME_NONNULL_BEGIN
Definition:
FlutterMacros.h:19
NS_ASSUME_NONNULL_END
#define NS_ASSUME_NONNULL_END
Definition:
FlutterMacros.h:20
copy
static void copy(void *dst, const uint8_t *src, int width, int bpp, int deltaSrc, int offset, const SkPMColor ctable[])
Definition:
SkSwizzler.cpp:31
GoldenImage
Definition:
GoldenImage.h:13
GoldenImage::image
UIImage * image
Definition:
GoldenImage.h:15
GoldenImage::goldenName
NSString * goldenName
Definition:
GoldenImage.h:14
BOOL
int BOOL
Definition:
windows_types.h:37
Generated on Sun Jun 23 2024 21:55:19 for Flutter Engine by
1.9.4