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

#include <stub_flutter_glfw_api.h>

Public Member Functions

 ScopedStubFlutterGlfwApi (std::unique_ptr< StubFlutterGlfwApi > stub)
 
 ~ScopedStubFlutterGlfwApi ()
 
StubFlutterGlfwApistub ()
 

Detailed Description

Definition at line 98 of file stub_flutter_glfw_api.h.

Constructor & Destructor Documentation

◆ ScopedStubFlutterGlfwApi()

flutter::testing::ScopedStubFlutterGlfwApi::ScopedStubFlutterGlfwApi ( std::unique_ptr< StubFlutterGlfwApi stub)
explicit

Definition at line 22 of file stub_flutter_glfw_api.cc.

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

◆ ~ScopedStubFlutterGlfwApi()

flutter::testing::ScopedStubFlutterGlfwApi::~ScopedStubFlutterGlfwApi ( )

Definition at line 29 of file stub_flutter_glfw_api.cc.

29 {
30 StubFlutterGlfwApi::SetTestStub(previous_stub_);
31}

Member Function Documentation

◆ stub()

StubFlutterGlfwApi * flutter::testing::ScopedStubFlutterGlfwApi::stub ( )
inline

Definition at line 106 of file stub_flutter_glfw_api.h.

106{ return stub_.get(); }

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