| Flutter Windows Embedder |

Public Member Functions | Public Attributes | List of all members
flutter::testing::MockWindowsLifecycleManager Class Reference
Inheritance diagram for flutter::testing::MockWindowsLifecycleManager:

## Public Member Functions
| MockWindowsLifecycleManager (FlutterWindowsEngine *engine)
virtual | ~MockWindowsLifecycleManager ()
| MOCK_METHOD (void, Quit,(std::optional< HWND >, std::optional< WPARAM >, std::optional< LPARAM >, UINT),(override))
| MOCK_METHOD (void, DispatchMessage,(HWND, UINT, WPARAM, LPARAM),(override))
| MOCK_METHOD (bool, IsLastWindowOfProcess,(),(override))
| MOCK_METHOD (void, SetLifecycleState,(AppLifecycleState),(override))
void | BeginProcessingLifecycle () override
Public Member Functions inherited from flutter::WindowsLifecycleManager
| WindowsLifecycleManager (FlutterWindowsEngine *engine)
virtual | ~WindowsLifecycleManager ()
virtual void | Quit (std::optional< HWND > window, std::optional< WPARAM > wparam, std::optional< LPARAM > lparam, UINT exit_code)
bool | WindowProc (HWND hwnd, UINT msg, WPARAM w, LPARAM l, LRESULT *result)
virtual void | BeginProcessingExit ()
virtual void | SetLifecycleState (AppLifecycleState state)
virtual void | OnWindowStateEvent (HWND hwnd, WindowStateEvent event)
AppLifecycleState | GetLifecycleState ()
std::optional< LRESULT > | ExternalWindowMessage (HWND hwnd, UINT message, WPARAM wparam, LPARAM lparam)

## Public Attributes
std::function< void()> | begin_processing_callback = nullptr

## Additional Inherited Members
Protected Member Functions inherited from flutter::WindowsLifecycleManager
virtual bool | IsLastWindowOfProcess ()
virtual void | DispatchMessage (HWND window, UINT msg, WPARAM wparam, LPARAM lparam)

## Detailed Description

Definition at line 661 of file flutter_windows_engine_unittests.cc.

## Constructor & Destructor Documentation

## ◆ MockWindowsLifecycleManager()

flutter::testing::MockWindowsLifecycleManager::MockWindowsLifecycleManager | ( | FlutterWindowsEngine * | engine | ) |
| inline

Definition at line 663 of file flutter_windows_engine_unittests.cc.

664 : WindowsLifecycleManager(engine) {}

## ◆ ~MockWindowsLifecycleManager()

virtual flutter::testing::MockWindowsLifecycleManager::~MockWindowsLifecycleManager | ( |  | ) |
| inline virtual

Definition at line 665 of file flutter_windows_engine_unittests.cc.

665 {}

## Member Function Documentation

## ◆ BeginProcessingLifecycle()

void flutter::testing::MockWindowsLifecycleManager::BeginProcessingLifecycle | ( |  | ) |
| inline override virtual

Reimplemented from flutter::WindowsLifecycleManager.

Definition at line 676 of file flutter_windows_engine_unittests.cc.

676 {
677 WindowsLifecycleManager::BeginProcessingLifecycle();
678 if (begin_processing_callback) {
679 begin_processing_callback();
680 }
681 }

References begin_processing_callback, and flutter::WindowsLifecycleManager::BeginProcessingLifecycle().

## ◆ MOCK_METHOD() [1/4]

flutter::testing::MockWindowsLifecycleManager::MOCK_METHOD | ( | bool | ,
|  | IsLastWindowOfProcess | ,
|  | () | ,
|  | (override) |
| ) |  |

## ◆ MOCK_METHOD() [2/4]

flutter::testing::MockWindowsLifecycleManager::MOCK_METHOD | ( | void | ,
|  | DispatchMessage | ,
|  | (HWND, UINT, WPARAM, LPARAM) | ,
|  | (override) |
| ) |  |

## ◆ MOCK_METHOD() [3/4]

flutter::testing::MockWindowsLifecycleManager::MOCK_METHOD | ( | void | ,
|  | Quit | ,
|  | (std::optional< HWND >, std::optional< WPARAM >, std::optional< LPARAM >, UINT) | ,
|  | (override) |
| ) |  |

## ◆ MOCK_METHOD() [4/4]

flutter::testing::MockWindowsLifecycleManager::MOCK_METHOD | ( | void | ,
|  | SetLifecycleState | ,
|  | (AppLifecycleState) | ,
|  | (override) |
| ) |  |

## Member Data Documentation

## ◆ begin_processing_callback

std::function<void()> flutter::testing::MockWindowsLifecycleManager::begin_processing_callback = nullptr

Definition at line 683 of file flutter_windows_engine_unittests.cc.

Referenced by BeginProcessingLifecycle().

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

- shell/platform/windows/flutter_windows_engine_unittests.cc

flutter::WindowsLifecycleManager::BeginProcessingLifecycle
virtual void BeginProcessingLifecycle()
Definition: windows_lifecycle_manager.cc:187
flutter::testing::MockWindowsLifecycleManager::begin_processing_callback
std::function< void()> begin_processing_callback
Definition: flutter_windows_engine_unittests.cc:683
flutter::WindowsLifecycleManager::WindowsLifecycleManager
WindowsLifecycleManager(FlutterWindowsEngine *engine)
Definition: windows_lifecycle_manager.cc:16