|
| MOCK_METHOD1 (shouldLog, bool(Level level)) |
|
| MOCK_METHOD4 (emit, void(Level level, std::chrono::system_clock::time_point time, const char *threadMoniker, const char *text)) |
|
| MockLogger () |
|
void | mockEmit (Level level, std::chrono::system_clock::time_point time, const char *threadId, const char *text) |
|
| Logger (Level level) |
|
virtual | ~Logger ()=default |
| Destructor. More...
|
|
virtual void | setLevel (Level level) |
|
bool | shouldLog (Level level) const |
|
void | log (Level level, const LogEntry &entry) |
|
void | logAtExit (Level level, const LogEntry &entry) |
|
virtual void | emit (Level level, std::chrono::system_clock::time_point time, const char *threadMoniker, const char *text) |
|
void | addLogLevelObserver (LogLevelObserverInterface *observer) |
|
void | removeLogLevelObserver (LogLevelObserverInterface *observer) |
|
Mock derivation of Logger for verifying calls and parameters to those calls.
◆ MockLogger()
alexaClientSDK::avsCommon::utils::logger::test::MockLogger::MockLogger |
( |
| ) |
|
◆ create()
std::shared_ptr< NiceMock< MockLogger > > alexaClientSDK::avsCommon::utils::logger::test::MockLogger::create |
( |
| ) |
|
|
static |
◆ MOCK_METHOD1()
alexaClientSDK::avsCommon::utils::logger::test::MockLogger::MOCK_METHOD1 |
( |
shouldLog |
, |
|
|
bool(Level level) |
|
|
) |
| |
◆ MOCK_METHOD4()
alexaClientSDK::avsCommon::utils::logger::test::MockLogger::MOCK_METHOD4 |
( |
emit |
, |
|
|
void(Level level, std::chrono::system_clock::time_point time, const char *threadMoniker, const char *text) |
|
|
) |
| |
◆ mockEmit()
void alexaClientSDK::avsCommon::utils::logger::test::MockLogger::mockEmit |
( |
Level |
level, |
|
|
std::chrono::system_clock::time_point |
time, |
|
|
const char * |
threadId, |
|
|
const char * |
text |
|
) |
| |
Helper method or capturing parameters so that they can be compared to expected values.
- Parameters
-
level | The severity Level of this log line. |
time | The time that the event to log occurred. |
threadMoniker | Moniker of the thread that generated the event. |
text | The text of the log entry. |
◆ m_lastText
std::string alexaClientSDK::avsCommon::utils::logger::test::MockLogger::m_lastText |
The last text value passed in a log(...) call.
◆ m_lastThreadMoniker
std::string alexaClientSDK::avsCommon::utils::logger::test::MockLogger::m_lastThreadMoniker |
The last thread moniker passed in a log(...) call.
◆ m_lastTime
std::chrono::system_clock::time_point alexaClientSDK::avsCommon::utils::logger::test::MockLogger::m_lastTime |
The last time value passed in a log(...) call.
The documentation for this class was generated from the following file:
AlexaClientSDK 3.0.0 - Copyright 2016-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved.
Licensed under the Apache License, Version 2.0