Flutter Engine Uber Docs
Docs for the entire Flutter Engine repo.
 
Loading...
Searching...
No Matches
flutter::testing::MockRuntimeDelegate Class Reference
Inheritance diagram for flutter::testing::MockRuntimeDelegate:
flutter::RuntimeDelegate

Public Member Functions

std::string DefaultRouteName () override
 
void ScheduleFrame (bool regenerate_layer_trees=true) override
 
void OnAllViewsRendered () override
 
void Render (int64_t view_id, std::unique_ptr< flutter::LayerTree > layer_tree, float device_pixel_ratio) override
 
void UpdateSemantics (int64_t view_id, SemanticsNodeUpdates update, CustomAccessibilityActionUpdates actions) override
 
void SetApplicationLocale (std::string locale) override
 
void SetSemanticsTreeEnabled (bool enabled) override
 
void HandlePlatformMessage (std::unique_ptr< PlatformMessage > message) override
 
FontCollectionGetFontCollection () override
 
std::shared_ptr< AssetManagerGetAssetManager () override
 
void OnRootIsolateCreated () override
 
void UpdateIsolateDescription (const std::string isolate_name, int64_t isolate_port) override
 
void SetNeedsReportTimings (bool value) override
 
std::unique_ptr< std::vector< std::string > > ComputePlatformResolvedLocale (const std::vector< std::string > &supported_locale_data) override
 
void RequestDartDeferredLibrary (intptr_t loading_unit_id) override
 
void RequestViewFocusChange (const ViewFocusChangeRequest &request) override
 
std::weak_ptr< PlatformMessageHandlerGetPlatformMessageHandler () const override
 
void SendChannelUpdate (std::string name, bool listening) override
 
double GetScaledFontSize (double unscaled_font_size, int configuration_id) const override
 

Public Attributes

FontCollection font
 
std::vector< SemanticsNodeUpdatesupdates
 
std::vector< CustomAccessibilityActionUpdatesactions
 
std::string locale
 

Additional Inherited Members

- Protected Member Functions inherited from flutter::RuntimeDelegate
virtual ~RuntimeDelegate ()
 

Detailed Description

Definition at line 16 of file runtime_controller_unittests.cc.

Member Function Documentation

◆ ComputePlatformResolvedLocale()

std::unique_ptr< std::vector< std::string > > flutter::testing::MockRuntimeDelegate::ComputePlatformResolvedLocale ( const std::vector< std::string > &  supported_locale_data)
inlineoverridevirtual

Implements flutter::RuntimeDelegate.

Definition at line 59 of file runtime_controller_unittests.cc.

60 {
61 return nullptr;
62 }

◆ DefaultRouteName()

std::string flutter::testing::MockRuntimeDelegate::DefaultRouteName ( )
inlineoverridevirtual

Implements flutter::RuntimeDelegate.

Definition at line 21 of file runtime_controller_unittests.cc.

21{ return ""; }

◆ GetAssetManager()

std::shared_ptr< AssetManager > flutter::testing::MockRuntimeDelegate::GetAssetManager ( )
inlineoverridevirtual

Implements flutter::RuntimeDelegate.

Definition at line 50 of file runtime_controller_unittests.cc.

50{ return nullptr; }

◆ GetFontCollection()

FontCollection & flutter::testing::MockRuntimeDelegate::GetFontCollection ( )
inlineoverridevirtual

Implements flutter::RuntimeDelegate.

Definition at line 48 of file runtime_controller_unittests.cc.

References font.

◆ GetPlatformMessageHandler()

std::weak_ptr< PlatformMessageHandler > flutter::testing::MockRuntimeDelegate::GetPlatformMessageHandler ( ) const
inlineoverridevirtual

Implements flutter::RuntimeDelegate.

Definition at line 68 of file runtime_controller_unittests.cc.

69 {
70 return {};
71 }

◆ GetScaledFontSize()

double flutter::testing::MockRuntimeDelegate::GetScaledFontSize ( double  unscaled_font_size,
int  configuration_id 
) const
inlineoverridevirtual

Implements flutter::RuntimeDelegate.

Definition at line 75 of file runtime_controller_unittests.cc.

76 {
77 return 0.0;
78 }

◆ HandlePlatformMessage()

void flutter::testing::MockRuntimeDelegate::HandlePlatformMessage ( std::unique_ptr< PlatformMessage message)
inlineoverridevirtual

Implements flutter::RuntimeDelegate.

Definition at line 45 of file runtime_controller_unittests.cc.

46 {}

◆ OnAllViewsRendered()

void flutter::testing::MockRuntimeDelegate::OnAllViewsRendered ( )
inlineoverridevirtual

Implements flutter::RuntimeDelegate.

Definition at line 26 of file runtime_controller_unittests.cc.

26{}

◆ OnRootIsolateCreated()

void flutter::testing::MockRuntimeDelegate::OnRootIsolateCreated ( )
inlineoverridevirtual

Implements flutter::RuntimeDelegate.

Definition at line 52 of file runtime_controller_unittests.cc.

52{};

◆ Render()

void flutter::testing::MockRuntimeDelegate::Render ( int64_t  view_id,
std::unique_ptr< flutter::LayerTree layer_tree,
float  device_pixel_ratio 
)
inlineoverridevirtual

Implements flutter::RuntimeDelegate.

Definition at line 28 of file runtime_controller_unittests.cc.

30 {}

◆ RequestDartDeferredLibrary()

void flutter::testing::MockRuntimeDelegate::RequestDartDeferredLibrary ( intptr_t  loading_unit_id)
inlineoverridevirtual

Implements flutter::RuntimeDelegate.

Definition at line 64 of file runtime_controller_unittests.cc.

64{}

◆ RequestViewFocusChange()

void flutter::testing::MockRuntimeDelegate::RequestViewFocusChange ( const ViewFocusChangeRequest request)
inlineoverridevirtual

Implements flutter::RuntimeDelegate.

Definition at line 66 of file runtime_controller_unittests.cc.

66{}

◆ ScheduleFrame()

void flutter::testing::MockRuntimeDelegate::ScheduleFrame ( bool  regenerate_layer_trees = true)
inlineoverridevirtual

Implements flutter::RuntimeDelegate.

Definition at line 24 of file runtime_controller_unittests.cc.

24{}

◆ SendChannelUpdate()

void flutter::testing::MockRuntimeDelegate::SendChannelUpdate ( std::string  name,
bool  listening 
)
inlineoverridevirtual

Implements flutter::RuntimeDelegate.

Definition at line 73 of file runtime_controller_unittests.cc.

73{}

◆ SetApplicationLocale()

void flutter::testing::MockRuntimeDelegate::SetApplicationLocale ( std::string  locale)
inlineoverridevirtual

Implements flutter::RuntimeDelegate.

Definition at line 39 of file runtime_controller_unittests.cc.

39 {
40 this->locale = std::move(locale);
41 }

References locale.

◆ SetNeedsReportTimings()

void flutter::testing::MockRuntimeDelegate::SetNeedsReportTimings ( bool  value)
inlineoverridevirtual

Implements flutter::RuntimeDelegate.

Definition at line 57 of file runtime_controller_unittests.cc.

57{};

◆ SetSemanticsTreeEnabled()

void flutter::testing::MockRuntimeDelegate::SetSemanticsTreeEnabled ( bool  enabled)
inlineoverridevirtual

Implements flutter::RuntimeDelegate.

Definition at line 43 of file runtime_controller_unittests.cc.

43{}

◆ UpdateIsolateDescription()

void flutter::testing::MockRuntimeDelegate::UpdateIsolateDescription ( const std::string  isolate_name,
int64_t  isolate_port 
)
inlineoverridevirtual

Implements flutter::RuntimeDelegate.

Definition at line 54 of file runtime_controller_unittests.cc.

55 {};

◆ UpdateSemantics()

void flutter::testing::MockRuntimeDelegate::UpdateSemantics ( int64_t  view_id,
SemanticsNodeUpdates  update,
CustomAccessibilityActionUpdates  actions 
)
inlineoverridevirtual

Implements flutter::RuntimeDelegate.

Definition at line 32 of file runtime_controller_unittests.cc.

34 {
35 this->updates.push_back(update);
36 this->actions.push_back(actions);
37 }
std::vector< CustomAccessibilityActionUpdates > actions
std::vector< SemanticsNodeUpdates > updates

References actions.

Member Data Documentation

◆ actions

◆ font

FontCollection flutter::testing::MockRuntimeDelegate::font

Definition at line 18 of file runtime_controller_unittests.cc.

Referenced by GetFontCollection().

◆ locale

std::string flutter::testing::MockRuntimeDelegate::locale

◆ updates

std::vector<SemanticsNodeUpdates> flutter::testing::MockRuntimeDelegate::updates

The documentation for this class was generated from the following file: