diff options
| author | Ryan <fauxpark@gmail.com> | 2020-12-28 04:36:32 +1100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-12-28 04:36:32 +1100 |
| commit | 1b7b72c0e96856d2b9f73f705787af3426662bcf (patch) | |
| tree | b03387eee60a4650d850c11daf7a962285837da6 /tests/test_common/test_driver.hpp | |
| parent | bbf0f65284f6c9cc40429f446bddf48e2e882ad0 (diff) | |
| download | qmk_firmware-1b7b72c0e96856d2b9f73f705787af3426662bcf.tar.gz qmk_firmware-1b7b72c0e96856d2b9f73f705787af3426662bcf.zip | |
Ensure single newline at EOF for core files (#11310)
Diffstat (limited to 'tests/test_common/test_driver.hpp')
| -rw-r--r-- | tests/test_common/test_driver.hpp | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/tests/test_common/test_driver.hpp b/tests/test_common/test_driver.hpp index c3ae17b1a..f86308df9 100644 --- a/tests/test_common/test_driver.hpp +++ b/tests/test_common/test_driver.hpp | |||
| @@ -14,8 +14,7 @@ | |||
| 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 15 | */ | 15 | */ |
| 16 | 16 | ||
| 17 | #ifndef TESTS_TEST_COMMON_TEST_DRIVER_H_ | 17 | #pragma once |
| 18 | #define TESTS_TEST_COMMON_TEST_DRIVER_H_ | ||
| 19 | 18 | ||
| 20 | #include "gmock/gmock.h" | 19 | #include "gmock/gmock.h" |
| 21 | #include <stdint.h> | 20 | #include <stdint.h> |
| @@ -28,7 +27,7 @@ public: | |||
| 28 | TestDriver(); | 27 | TestDriver(); |
| 29 | ~TestDriver(); | 28 | ~TestDriver(); |
| 30 | void set_leds(uint8_t leds) { m_leds = leds; } | 29 | void set_leds(uint8_t leds) { m_leds = leds; } |
| 31 | 30 | ||
| 32 | MOCK_METHOD1(send_keyboard_mock, void (report_keyboard_t&)); | 31 | MOCK_METHOD1(send_keyboard_mock, void (report_keyboard_t&)); |
| 33 | MOCK_METHOD1(send_mouse_mock, void (report_mouse_t&)); | 32 | MOCK_METHOD1(send_mouse_mock, void (report_mouse_t&)); |
| 34 | MOCK_METHOD1(send_system_mock, void (uint16_t)); | 33 | MOCK_METHOD1(send_system_mock, void (uint16_t)); |
| @@ -43,6 +42,3 @@ private: | |||
| 43 | uint8_t m_leds = 0; | 42 | uint8_t m_leds = 0; |
| 44 | static TestDriver* m_this; | 43 | static TestDriver* m_this; |
| 45 | }; | 44 | }; |
| 46 | |||
| 47 | |||
| 48 | #endif /* TESTS_TEST_COMMON_TEST_DRIVER_H_ */ | ||
