mirror of https://github.com/meshcore-dev/MeshCore
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
434 B
15 lines
434 B
#pragma once
|
|
|
|
#include <stddef.h>
|
|
#include <stdint.h>
|
|
|
|
// Mock Stream class for native testing.
|
|
// Provides the minimal interface needed by code that depends on Arduino Stream.
|
|
class Stream {
|
|
public:
|
|
virtual size_t readBytes(uint8_t*, size_t) { return 0; }
|
|
virtual size_t write(const uint8_t*, size_t len) { return len; }
|
|
virtual void print(char) {}
|
|
virtual void print(const char*) {}
|
|
virtual void println() {}
|
|
};
|
|
|