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

#include <logger_listener.h>

Inheritance diagram for flutter::testing::LoggerListener:

Public Member Functions

 LoggerListener ()
 
 ~LoggerListener ()
 
 LoggerListener (const LoggerListener &)=delete
 
LoggerListeneroperator= (const LoggerListener &)=delete
 
void OnTestStart (const ::testing::TestInfo &test_info) override
 
void OnTestEnd (const ::testing::TestInfo &test_info) override
 
void OnTestDisabled (const ::testing::TestInfo &test_info) override
 

Detailed Description

Definition at line 13 of file logger_listener.h.

Constructor & Destructor Documentation

◆ LoggerListener() [1/2]

flutter::testing::LoggerListener::LoggerListener ( )
default

◆ ~LoggerListener()

flutter::testing::LoggerListener::~LoggerListener ( )
default

◆ LoggerListener() [2/2]

flutter::testing::LoggerListener::LoggerListener ( const LoggerListener )
delete

Member Function Documentation

◆ OnTestDisabled()

void flutter::testing::LoggerListener::OnTestDisabled ( const ::testing::TestInfo &  test_info)
override

Definition at line 54 of file logger_listener.cc.

54 {
55 FML_LOG(IMPORTANT) << "Test Disabled: " << TestLabel(info);
56}
static void info(const char *fmt,...) SK_PRINTF_LIKE(1
Definition: DM.cpp:213
#define FML_LOG(severity)
Definition: logging.h:82
std::string TestLabel(const ::testing::TestInfo &info)

◆ OnTestEnd()

void flutter::testing::LoggerListener::OnTestEnd ( const ::testing::TestInfo &  test_info)
override

Definition at line 47 of file logger_listener.cc.

47 {
48 FML_LOG(IMPORTANT) << "Test " << TestStatusAsString(info.result()) << " ("
49 << TestTimeAsString(info.result())
50 << "): " << TestLabel(info);
51 FML_LOG(IMPORTANT) << "<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<";
52}
std::string TestTimeAsString(const ::testing::TestResult *result)
std::string TestStatusAsString(const ::testing::TestResult *result)

◆ OnTestStart()

void flutter::testing::LoggerListener::OnTestStart ( const ::testing::TestInfo &  test_info)
override

Definition at line 13 of file logger_listener.cc.

14 {
15 FML_LOG(IMPORTANT) << ">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>";
16 FML_LOG(IMPORTANT) << "Starting Test: " << test_info.test_suite_name() << ":"
17 << test_info.name();
18}
static void test_info(skiatest::Reporter *r, Codec *codec, const SkImageInfo &info, SkCodec::Result expectedResult, const SkMD5::Digest *goodDigest)
Definition: CodecTest.cpp:106

◆ operator=()

LoggerListener & flutter::testing::LoggerListener::operator= ( const LoggerListener )
delete

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