Flutter Engine
Loading...
Searching...
No Matches
ios_surface_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/ios/ios_surface_noop.h
"
9
10
#import "
flutter/common/task_runners.h
"
11
#import "
flutter/fml/message_loop.h
"
12
#import "
flutter/fml/thread.h
"
13
#import "
flutter/lib/ui/window/platform_message.h
"
14
#import "
flutter/lib/ui/window/platform_message_response.h
"
15
#import "
flutter/shell/common/thread_host.h
"
16
#import "
flutter/shell/platform/darwin/common/framework/Headers/FlutterMacros.h
"
17
#import "
flutter/shell/platform/darwin/ios/ios_context_noop.h
"
18
19
FLUTTER_ASSERT_ARC
20
21
@interface
IOSSurfaceNoopTest
: XCTestCase
22
@end
23
24
@implementation
IOSSurfaceNoopTest
25
- (void)testCreateSurface {
26
auto
context = std::make_shared<flutter::IOSContextNoop>();
27
flutter::IOSSurfaceNoop
noop(context);
28
29
XCTAssertTrue(noop.
IsValid
());
30
XCTAssertTrue(!!noop.
CreateGPUSurface
());
31
}
32
33
@end
FlutterMacros.h
flutter::IOSSurfaceNoop
A rendering surface that accepts rendering intent but does not render anything.
Definition
ios_surface_noop.h:20
flutter::IOSSurfaceNoop::IsValid
bool IsValid() const override
Definition
ios_surface_noop.mm:25
flutter::IOSSurfaceNoop::CreateGPUSurface
std::unique_ptr< Surface > CreateGPUSurface() override
Definition
ios_surface_noop.mm:31
thread.h
IOSSurfaceNoopTest
Definition
ios_surface_noop_unittests.mm:22
ios_context_noop.h
ios_surface_noop.h
platform_message.h
message_loop.h
FLUTTER_ASSERT_ARC
Definition
FlutterChannelKeyResponder.mm:13
platform_message_response.h
task_runners.h
thread_host.h
shell
platform
darwin
ios
ios_surface_noop_unittests.mm
Generated on Thu Nov 6 2025 16:11:26 for Flutter Engine by
1.9.8