mirror of
https://github.com/adafruit/Adafruit_GPS.git
synced 2026-10-26 22:10:17 +00:00
Discover the C++ tests and Arduino regression sketches automatically. Run the sketches against the actual library with host serial output and timing, including marine extensions, and propagate failures and timeouts to CI. Co-authored-by: Limor Fried <ladyada@users.noreply.github.com>
29 lines
514 B
C++
29 lines
514 B
C++
#ifndef GPS_TEST_WIRE_H
|
|
#define GPS_TEST_WIRE_H
|
|
|
|
#include "Arduino.h"
|
|
|
|
class TwoWire {
|
|
public:
|
|
void begin() { unexpectedHardware(); }
|
|
void beginTransmission(uint8_t) { unexpectedHardware(); }
|
|
uint8_t endTransmission(bool = true) {
|
|
unexpectedHardware();
|
|
return 4;
|
|
}
|
|
size_t write(uint8_t) {
|
|
unexpectedHardware();
|
|
return 0;
|
|
}
|
|
uint8_t requestFrom(uint8_t, uint8_t, bool) {
|
|
unexpectedHardware();
|
|
return 0;
|
|
}
|
|
int read() {
|
|
unexpectedHardware();
|
|
return -1;
|
|
}
|
|
};
|
|
|
|
#endif
|