5#ifndef FLUTTER_SHELL_PLATFORM_ANDROID_SURFACE_ANDROID_SURFACE_MOCK_H_
6#define FLUTTER_SHELL_PLATFORM_ANDROID_SURFACE_ANDROID_SURFACE_MOCK_H_
10#include "gmock/gmock.h"
27 (GrDirectContext * gr_context),
39 const std::shared_ptr<PlatformViewAndroidJNI>& jni_facade),
virtual bool IsValid() const =0
virtual bool SetNativeWindow(fml::RefPtr< AndroidNativeWindow > window, const std::shared_ptr< PlatformViewAndroidJNI > &jni_facade)=0
virtual std::unique_ptr< Surface > CreateGPUSurface(GrDirectContext *gr_context=nullptr)=0
virtual void TeardownOnScreenContext()=0
virtual bool ResourceContextClearCurrent()=0
virtual bool ResourceContextMakeCurrent()=0
virtual bool OnScreenSurfaceResize(const DlISize &size)=0
bool GLContextPresent(const GLPresentInfo &present_info) override
bool GLContextClearCurrent() override
MOCK_METHOD(bool, ResourceContextClearCurrent,(),(override))
std::unique_ptr< GLContextResult > GLContextMakeCurrent() override
MOCK_METHOD(std::unique_ptr< Surface >, CreateGPUSurface,(GrDirectContext *gr_context),(override))
MOCK_METHOD(void, TeardownOnScreenContext,(),(override))
MOCK_METHOD(bool, ResourceContextMakeCurrent,(),(override))
MOCK_METHOD(bool, IsValid,(),(const, override))
MOCK_METHOD(bool, SetNativeWindow,(fml::RefPtr< AndroidNativeWindow > window, const std::shared_ptr< PlatformViewAndroidJNI > &jni_facade),(override))
MOCK_METHOD(bool, OnScreenSurfaceResize,(const DlISize &size),(override))
GLFBOInfo GLContextFBO(GLFrameInfo frame_info) const override
it will be possible to load the file into Perfetto s trace viewer use test Running tests that layout and measure text will not yield consistent results across various platforms Enabling this option will make font resolution default to the Ahem test font on all disable asset Prevents usage of any non test fonts unless they were explicitly Loaded via prefetched default font Indicates whether the embedding started a prefetch of the default font manager before creating the engine run In non interactive keep the shell running after the Dart script has completed enable serial On low power devices with low core running concurrent GC tasks on threads can cause them to contend with the UI thread which could potentially lead to jank This option turns off all concurrent GC activities domain network JSON encoded network policy per domain This overrides the DisallowInsecureConnections switch Embedder can specify whether to allow or disallow insecure connections at a domain level old gen heap size