firmware  v0.1.2
Chromation Spectrometer Dev-Kit
S13131_faked.c
1 #include "S13131_faked.h"
2 #include "Mock.h" // record call history in "mock"
3 #include "S13131.h"
4 
5 static RecordedCall * Record_S13131Readout(void)
6 { // Define **what is recorded** when fake is called.
7  char const *call_name = "S13131Readout";
8  RecordedCall *record_of_this_call = RecordedCall_new(call_name);
9  return record_of_this_call;
10 }
11 void S13131Readout_fake(void)
12 {
13  RecordActualCall(mock, Record_S13131Readout());
14 }
15 
16 static RecordedCall * Record_S13131Expose(void)
17 { // Define **what is recorded** when fake is called.
18  char const *call_name = "S13131Expose";
19  RecordedCall *record_of_this_call = RecordedCall_new(call_name);
20  return record_of_this_call;
21 }
22 void S13131Expose_fake(void)
23 {
24  RecordActualCall(mock, Record_S13131Expose());
25 }
26 
27 static RecordedCall * Record_WaitForS13131ClkLow(void)
28 {
29  char const *call_name = "WaitForS13131ClkLow";
30  RecordedCall *record_of_this_call = RecordedCall_new(call_name);
31  return record_of_this_call;
32 }
33 void WaitForS13131ClkLow_fake(void)
34 {
35  RecordActualCall(mock, Record_WaitForS13131ClkLow());
36 }