Flutter Engine
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)

Definition at line 22 of file stub_flutter_glfw_api.cc.

References flutter::testing::StubFlutterGlfwApi::GetTestStub(), and flutter::testing::StubFlutterGlfwApi::SetTestStub().

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.

References flutter::testing::StubFlutterGlfwApi::SetTestStub().

29  {
30  StubFlutterGlfwApi::SetTestStub(previous_stub_);
31 }
static void SetTestStub(StubFlutterGlfwApi *stub)

Member Function Documentation

◆ stub()

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

Definition at line 106 of file stub_flutter_glfw_api.h.

Referenced by flutter::TEST().

106 { return stub_.get(); }

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