Flutter Engine
The Flutter Engine
Public Member Functions | List of all members
flutter::testing::ScopedStubFlutterWindowsApi Class Reference

#include <stub_flutter_windows_api.h>

Public Member Functions

 ScopedStubFlutterWindowsApi (std::unique_ptr< StubFlutterWindowsApi > stub)
 
 ~ScopedStubFlutterWindowsApi ()
 
StubFlutterWindowsApistub ()
 

Detailed Description

Definition at line 122 of file stub_flutter_windows_api.h.

Constructor & Destructor Documentation

◆ ScopedStubFlutterWindowsApi()

flutter::testing::ScopedStubFlutterWindowsApi::ScopedStubFlutterWindowsApi ( std::unique_ptr< StubFlutterWindowsApi stub)

Definition at line 22 of file stub_flutter_windows_api.cc.

24 : stub_(std::move(stub)) {
25 previous_stub_ = StubFlutterWindowsApi::GetTestStub();
27}
static void SetTestStub(StubFlutterWindowsApi *stub)
static StubFlutterWindowsApi * GetTestStub()

◆ ~ScopedStubFlutterWindowsApi()

flutter::testing::ScopedStubFlutterWindowsApi::~ScopedStubFlutterWindowsApi ( )

Definition at line 29 of file stub_flutter_windows_api.cc.

29 {
31}

Member Function Documentation

◆ stub()

StubFlutterWindowsApi * flutter::testing::ScopedStubFlutterWindowsApi::stub ( )
inline

Definition at line 130 of file stub_flutter_windows_api.h.

130{ return stub_.get(); }

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