Flutter Engine
The Flutter Engine
Public Member Functions | Public Attributes | List of all members
WasmReporter Struct Reference
Inheritance diagram for WasmReporter:
skiatest::Reporter SkNoncopyable

Public Member Functions

 WasmReporter (std::string name, JSObject result)
 
void reportFailed (const skiatest::Failure &failure) override
 
- Public Member Functions inherited from skiatest::Reporter
virtual ~Reporter ()
 
virtual void bumpTestCount ()
 
virtual void reportFailed (const skiatest::Failure &)=0
 
virtual bool allowExtendedTest () const
 
virtual bool verbose () const
 
virtual void * stats () const
 
void reportFailedWithContext (const skiatest::Failure &)
 
void push (const SkString &message)
 
void push (const std::string &message)
 
void pop ()
 

Public Attributes

std::string fName
 
JSObject fResult
 

Detailed Description

Definition at line 225 of file gm_bindings.cpp.

Constructor & Destructor Documentation

◆ WasmReporter()

WasmReporter::WasmReporter ( std::string  name,
JSObject  result 
)
inline

Definition at line 226 of file gm_bindings.cpp.

GAsyncResult * result
DEF_SWITCHES_START aot vmservice shared library name
Definition: switches.h:32
std::string fName
JSObject fResult

Member Function Documentation

◆ reportFailed()

void WasmReporter::reportFailed ( const skiatest::Failure failure)
inlineoverridevirtual

Implements skiatest::Reporter.

Definition at line 228 of file gm_bindings.cpp.

228 {
229 SkDebugf("Test %s failed: %s\n", fName.c_str(), failure.toString().c_str());
230 fResult.set("result", "failed");
231 fResult.set("msg", failure.toString().c_str());
232 }
void SK_SPI SkDebugf(const char format[],...) SK_PRINTF_LIKE(1
const char * c_str() const
Definition: SkString.h:133
SkString toString() const
Definition: Test.cpp:41

Member Data Documentation

◆ fName

std::string WasmReporter::fName

Definition at line 233 of file gm_bindings.cpp.

◆ fResult

JSObject WasmReporter::fResult

Definition at line 234 of file gm_bindings.cpp.


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