| Flutter macOS Embedder |

Classes | Functions | Variables
FlutterViewTest.mm File Reference
`#import "flutter/shell/platform/darwin/macos/framework/Source/FlutterView.h"`
`#import <Metal/Metal.h>`
`#import "flutter/testing/testing.h"`

Go to the source code of this file.

## Classes
class | TestReshapeListener

## Functions
| TEST (FlutterView, ShouldInheritContentsScaleReturnsYes)

## Variables
constexpr int64_t | kImplicitViewId = 0ll

## Function Documentation

## ◆ TEST()

TEST | ( | FlutterView | ,
|  | ShouldInheritContentsScaleReturnsYes |
| ) |  |

Definition at line 24 of file FlutterViewTest.mm.

24 {
25 id<MTLDevice> device = MTLCreateSystemDefaultDevice();
26 id<MTLCommandQueue> queue = [device newCommandQueue];
27 TestReshapeListener* listener = [[TestReshapeListener alloc] init];
28 FlutterThreadSynchronizer* threadSynchronizer = [[FlutterThreadSynchronizer alloc] init];
29 FlutterView* view = [[FlutterView alloc] initWithMTLDevice:device
30 commandQueue:queue
31 reshapeListener:listener
32 threadSynchronizer:threadSynchronizer
33 viewId:kImplicitViewId];
34 EXPECT_EQ([view layer:view.layer shouldInheritContentsScale:3.0 fromWindow:view.window], YES);
35 }

## Variable Documentation

## ◆ kImplicitViewId

constexpr int64_t kImplicitViewId = 0ll
| constexpr

Definition at line 11 of file FlutterViewTest.mm.

FlutterThreadSynchronizer
Definition: FlutterThreadSynchronizer.h:13
TestReshapeListener
Definition: FlutterViewTest.mm:13
FlutterView
Definition: FlutterView.h:39
kImplicitViewId
constexpr int64_t kImplicitViewId
Definition: FlutterViewTest.mm:11