Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
Public Member Functions | List of all members
skiatest::ReporterContext Class Reference

#include <Test.h>

Inheritance diagram for skiatest::ReporterContext:
SkNoncopyable

Public Member Functions

 ReporterContext (Reporter *reporter, const SkString &message)
 
 ReporterContext (Reporter *reporter, const std::string &message)
 
 ~ReporterContext ()
 

Detailed Description

Use this stack-allocated object to push and then automatically pop the context (e.g. subtest name) for a test.

Definition at line 97 of file Test.h.

Constructor & Destructor Documentation

◆ ReporterContext() [1/2]

skiatest::ReporterContext::ReporterContext ( Reporter reporter,
const SkString message 
)
inline

Definition at line 99 of file Test.h.

99 : fReporter(reporter) {
100 fReporter->push(message);
101 }
reporter
void push(const SkString &message)
Definition Test.h:72
Win32Message message

◆ ReporterContext() [2/2]

skiatest::ReporterContext::ReporterContext ( Reporter reporter,
const std::string &  message 
)
inline

Definition at line 102 of file Test.h.

102 : fReporter(reporter) {
103 fReporter->push(message);
104 }

◆ ~ReporterContext()

skiatest::ReporterContext::~ReporterContext ( )
inline

Definition at line 105 of file Test.h.

105 {
106 fReporter->pop();
107 }

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