Flutter Engine Uber Docs
Docs for the entire Flutter Engine repo.
 
Loading...
Searching...
No Matches
FlutterVSyncClient+Testing.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_SHELL_PLATFORM_DARWIN_IOS_FRAMEWORK_SOURCE_FLUTTERVSYNCCLIENT_TESTING_H_
6#define FLUTTER_SHELL_PLATFORM_DARWIN_IOS_FRAMEWORK_SOURCE_FLUTTERVSYNCCLIENT_TESTING_H_
7
9
11
12/**
13 * Internal methods of FlutterVSyncClient for use in unit tests.
14 */
15@interface FlutterVSyncClient (Testing)
16
17/**
18 * The underlying CADisplayLink instance.
19 */
20@property(nonatomic, readonly) CADisplayLink* displayLink;
21
22/**
23 * Manually triggers the display link callback for testing without waiting for actual vsyncs.
24 */
25- (void)onDisplayLink:(CADisplayLink*)link;
26
27@end
28
30
31#endif // FLUTTER_SHELL_PLATFORM_DARWIN_IOS_FRAMEWORK_SOURCE_FLUTTERVSYNCCLIENT_TESTING_H_
#define NS_ASSUME_NONNULL_BEGIN
#define NS_ASSUME_NONNULL_END