Skip to content

Commit c94dd35

Browse files
committed
Add Arduino headers
1 parent 1f0b9ec commit c94dd35

File tree

5 files changed

+11
-5
lines changed

5 files changed

+11
-5
lines changed

Makefile

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,25 @@
11
default_target: all
22

3+
.PHONY: all
34
all: clean build test clean
45

6+
.PHONY: cmake
57
cmake:
68
@cmake $(CURDIR) -B$(CURDIR)/build
79

10+
.PHONY: build
811
build: cmake
912
@cd $(CURDIR)/build && make all
1013

14+
.PHONY: test
1115
test:
1216
@cd $(CURDIR)/build && CTEST_OUTPUT_ON_FAILURE=TRUE make test
1317

18+
.PHONY: pio-test
1419
pio-test:
1520
@pio test
1621

22+
.PHONY: clean
1723
clean:
1824
@rm -rf $(CURDIR)/build/*
1925
@rm -rf $(CURDIR)/.pioenvs/*
20-
21-
.PHONY: cmake build test clean all

src/Arduino.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
#include "ArduinoFake.h"

src/ArduinoFake.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,14 @@
1010
#include <stdexcept>
1111
#include "fakeit/fakeit.hpp"
1212

13+
#include "arduino/Arduino.h"
14+
1315
#include "FunctionFake.h"
1416
#include "StreamFake.h"
1517
#include "SerialFake.h"
1618
#include "ClientFake.h"
1719
#include "PrintFake.h"
1820

19-
#include "arduino/Arduino.h"
20-
2121
#define ArduinoFake(mock) _ArduinoFakeGet##mock()
2222

2323
#define ArduinoFakeReset() \

src/Client.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
#include "ClientFake.h"

test/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#include <ArduinoFake.h>
1+
#include <Arduino.h>
22
#include <cstdlib>
33
#include <unity.h>
44

0 commit comments

Comments
 (0)