Files
Adafruit_GPS/extras/test_support/Wire.h
T
ladyadaandLimor Fried fdaa8279b8 Run every regression test in CI
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>
2026-09-15 15:41:15 -04:00

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