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
9
18
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
A rendering surface that accepts rendering intent but does not render anything.
bool IsValid() const override
std::unique_ptr< Surface > CreateGPUSurface() override