Flutter iOS Embedder
ios_context_noop_unittests.mm
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
#include <QuartzCore/QuartzCore.h>
6
#import <XCTest/XCTest.h>
7
8
#import "
flutter/shell/platform/darwin/common/framework/Headers/FlutterMacros.h
"
9
#include "
shell/platform/darwin/ios/ios_context_noop.h
"
10
#include "
shell/platform/darwin/ios/rendering_api_selection.h
"
11
12
FLUTTER_ASSERT_ARC
13
14
@interface
IOSContextNoopTest
: XCTestCase
15
@end
16
17
@implementation
IOSContextNoopTest
18
- (void)testCreateNoop {
19
flutter::IOSContextNoop
noop;
20
21
XCTAssertTrue(noop.
GetBackend
() ==
flutter::IOSRenderingBackend::kImpeller
);
22
}
23
24
@end
ios_context_noop.h
IOSContextNoopTest
Definition:
ios_context_noop_unittests.mm:14
flutter::IOSContextNoop
A noop rendering context for usage on simulators without metal support.
Definition:
ios_context_noop.h:13
FlutterMacros.h
flutter::IOSContextNoop::GetBackend
IOSRenderingBackend GetBackend() const override
Get the rendering backend used by this context.
Definition:
ios_context_noop.mm:29
flutter::IOSRenderingBackend::kImpeller
@ kImpeller
rendering_api_selection.h
FLUTTER_ASSERT_ARC
Definition:
FlutterChannelKeyResponder.mm:13
shell
platform
darwin
ios
ios_context_noop_unittests.mm
Generated by
1.8.17