21#include <gmock/gmock.h>
32 void print(
const std::string &
string) {
55 return static_cast<int>(c);
Class to mock the basic Stream function equivalent of the Arduino framework.
Definition Stream.h:25
int available() const
Check number of characters available in the buffer.
Definition Stream.h:45
int read()
Read a character from the buffer.
Definition Stream.h:49
void println(const std::string &string)
Println method.
Definition Stream.h:38
void clear()
Clear the buffer.
Definition Stream.h:59
void print(const std::string &string)
Print method.
Definition Stream.h:32
std::string buffer
Definition Stream.h:28