| 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 | TestFlutterViewDelegate

## Functions
| TEST (FlutterView, ShouldInheritContentsScaleReturnsYes)

## Variables
constexpr int64_t | kImplicitViewId = 0ll

## Function Documentation

## ◆ TEST()

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

Definition at line 28 of file FlutterViewTest.mm.

28 {
29 id<MTLDevice> device = MTLCreateSystemDefaultDevice();
30 id<MTLCommandQueue> queue = [device newCommandQueue];
31 TestFlutterViewDelegate* delegate = [[TestFlutterViewDelegate alloc] init];
32 FlutterThreadSynchronizer* threadSynchronizer = [[FlutterThreadSynchronizer alloc] init];
33 FlutterView* view = [[FlutterView alloc] initWithMTLDevice:device
34 commandQueue:queue
35 delegate:delegate
36 threadSynchronizer:threadSynchronizer
37 viewId:kImplicitViewId];
38 EXPECT_EQ([view layer:view.layer shouldInheritContentsScale:3.0 fromWindow:view.window], YES);
39 }

## Variable Documentation

## ◆ kImplicitViewId

constexpr int64_t kImplicitViewId = 0ll
| constexpr

Definition at line 11 of file FlutterViewTest.mm.

FlutterThreadSynchronizer
Definition: FlutterThreadSynchronizer.h:16
TestFlutterViewDelegate
Definition: FlutterViewTest.mm:13
FlutterView
Definition: FlutterView.h:48
kImplicitViewId
constexpr int64_t kImplicitViewId
Definition: FlutterViewTest.mm:11