forked from rusefi/rusefi
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmocks.cpp
More file actions
60 lines (44 loc) · 1.82 KB
/
Copy pathmocks.cpp
File metadata and controls
60 lines (44 loc) · 1.82 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
#include "pch.h"
// Constructors/destructors for all mocks live here. If they only exist
// in the header (ie, implicitely defined), then that code has to be generated
// in every cpp file, instead of generating them only once, which we do here.
// See https://github.com/google/googletest/blob/master/docs/gmock_cook_book.md#making-the-compilation-faster
/*
* Note: if you are mocking an EngineModule to test *another* EngineModule
* both have to be mocked and not have references to unmock().etc,
* otherwise they will end up pointing to different places and you will have unexpected results!
*
* ex:
* HpfpController hpfp;
* engine->engineModules.get<HpfpController>().set(&hpfp);
* LimpManager dut;
* engine->engineModules.get<LimpManager>().set(&dut);
*/
MockEtb::MockEtb() { }
MockEtb::~MockEtb() { }
MockMotor::MockMotor() { }
MockMotor::~MockMotor() { }
MockVp3d::MockVp3d() { }
MockVp3d::~MockVp3d() { }
MockPwm::MockPwm() { }
MockPwm::~MockPwm() { }
MockOutputPin::MockOutputPin() { }
MockOutputPin::~MockOutputPin() { }
MockExecutor::MockExecutor() { }
MockExecutor::~MockExecutor() { }
MockAirmass::MockAirmass() : AirmassVeModelBase(veTable) { }
MockAirmass::~MockAirmass() { }
MockInjectorModel2::MockInjectorModel2() { }
MockInjectorModel2::~MockInjectorModel2() { }
MockStepperHardware::MockStepperHardware() { }
MockStepperHardware::~MockStepperHardware() { }
MockTsChannel::MockTsChannel() : TsChannelBase("mock") { }
MockTsChannel::~MockTsChannel() { }
MockIdleController::MockIdleController() { }
MockIdleController::~MockIdleController() { }
MockIgnitionController::MockIgnitionController() { }
MockIgnitionController::~MockIgnitionController() { }
MockHpfpController::MockHpfpController() { }
MockHpfpController::~MockHpfpController() { }
MockLimpManager::MockLimpManager() { }
MockLimpManager::~MockLimpManager() { }