From 149d27d980752317b42d7775e0043f9cca20b0af Mon Sep 17 00:00:00 2001 From: Sander Speetjens Date: Sat, 18 Oct 2025 16:28:05 +0200 Subject: [PATCH] Updates test includes for UI components Updates test files to include necessary headers and removes the now unused `Test.hpp` file. --- tests/Test.hpp | 4 ---- tests/UI_button.cpp | 4 +++- tests/UI_can.cpp | 3 ++- tests/UI_checkbox.cpp | 4 +++- tests/UI_combobox.cpp | 4 +++- tests/UI_dial.cpp | 4 +++- tests/UI_double_spinbox.cpp | 4 +++- tests/UI_hex_spinbox.cpp | 4 +++- tests/UI_item.cpp | 4 +++- tests/UI_label.cpp | 4 +++- tests/UI_led.cpp | 4 +++- tests/UI_slider.cpp | 4 +++- tests/UI_spinbox.cpp | 4 +++- tests/UI_stacked_widget.cpp | 4 +++- tests/UI_status_bar.cpp | 4 +++- tests/UI_tab_widget.cpp | 4 +++- tests/UI_textbox.cpp | 4 +++- tests/UI_thermo.cpp | 4 +++- 18 files changed, 50 insertions(+), 21 deletions(-) delete mode 100644 tests/Test.hpp diff --git a/tests/Test.hpp b/tests/Test.hpp deleted file mode 100644 index b2b1ca0..0000000 --- a/tests/Test.hpp +++ /dev/null @@ -1,4 +0,0 @@ -#include "ui.hpp" -#include "gtest/gtest.h" -#include -#include diff --git a/tests/UI_button.cpp b/tests/UI_button.cpp index 8884e1a..a19de18 100644 --- a/tests/UI_button.cpp +++ b/tests/UI_button.cpp @@ -1,4 +1,6 @@ -#include "Test.hpp" +#include +#include +#include "ui_button.hpp" TEST(UI_button, to_from_json) { diff --git a/tests/UI_can.cpp b/tests/UI_can.cpp index 2288ba1..315b5b4 100644 --- a/tests/UI_can.cpp +++ b/tests/UI_can.cpp @@ -1,5 +1,6 @@ -#include "Test.hpp" #include +#include +#include "ui_can.hpp" TEST(UI_can, add_clear_message) { diff --git a/tests/UI_checkbox.cpp b/tests/UI_checkbox.cpp index fd1a067..e28c676 100644 --- a/tests/UI_checkbox.cpp +++ b/tests/UI_checkbox.cpp @@ -1,4 +1,6 @@ -#include "Test.hpp" +#include +#include +#include "ui_checkbox.hpp" TEST(UI_checkbox, to_from_json) { diff --git a/tests/UI_combobox.cpp b/tests/UI_combobox.cpp index 757e7a0..6940fef 100644 --- a/tests/UI_combobox.cpp +++ b/tests/UI_combobox.cpp @@ -1,4 +1,6 @@ -#include "Test.hpp" +#include +#include +#include "ui_combobox.hpp" TEST(UI_combobox, to_from_json) { diff --git a/tests/UI_dial.cpp b/tests/UI_dial.cpp index 6706034..5ee064e 100644 --- a/tests/UI_dial.cpp +++ b/tests/UI_dial.cpp @@ -1,4 +1,6 @@ -#include "Test.hpp" +#include +#include +#include "ui_dial.hpp" TEST(UI_dial, to_from_json) { diff --git a/tests/UI_double_spinbox.cpp b/tests/UI_double_spinbox.cpp index 6ec223e..0901148 100644 --- a/tests/UI_double_spinbox.cpp +++ b/tests/UI_double_spinbox.cpp @@ -1,4 +1,6 @@ -#include "Test.hpp" +#include +#include +#include "ui_double_spinbox.hpp" TEST(UI_double_spinbox, to_from_json) { diff --git a/tests/UI_hex_spinbox.cpp b/tests/UI_hex_spinbox.cpp index 6f3e772..19d4a5d 100644 --- a/tests/UI_hex_spinbox.cpp +++ b/tests/UI_hex_spinbox.cpp @@ -1,4 +1,6 @@ -#include "Test.hpp" +#include +#include +#include "ui_hex_spinbox.hpp" TEST(UI_hex_spinbox, to_from_json) { diff --git a/tests/UI_item.cpp b/tests/UI_item.cpp index 399b3e1..7488517 100644 --- a/tests/UI_item.cpp +++ b/tests/UI_item.cpp @@ -1,4 +1,6 @@ -#include "Test.hpp" +#include +#include +#include "ui_item.hpp" TEST(UI_item, is_type) { diff --git a/tests/UI_label.cpp b/tests/UI_label.cpp index 2a1c3f6..d68b2b2 100644 --- a/tests/UI_label.cpp +++ b/tests/UI_label.cpp @@ -1,4 +1,6 @@ -#include "Test.hpp" +#include +#include +#include "ui_label.hpp" TEST(UI_label, to_from_json) { diff --git a/tests/UI_led.cpp b/tests/UI_led.cpp index 46e845b..f8c90e9 100644 --- a/tests/UI_led.cpp +++ b/tests/UI_led.cpp @@ -1,4 +1,6 @@ -#include "Test.hpp" +#include +#include +#include "ui_led.hpp" TEST(UI_led, to_from_json) { diff --git a/tests/UI_slider.cpp b/tests/UI_slider.cpp index 923a80d..354b886 100644 --- a/tests/UI_slider.cpp +++ b/tests/UI_slider.cpp @@ -1,4 +1,6 @@ -#include "Test.hpp" +#include +#include +#include "ui_slider.hpp" TEST(UI_slider, to_from_json) { diff --git a/tests/UI_spinbox.cpp b/tests/UI_spinbox.cpp index 61e64e3..6001a6d 100644 --- a/tests/UI_spinbox.cpp +++ b/tests/UI_spinbox.cpp @@ -1,4 +1,6 @@ -#include "Test.hpp" +#include +#include +#include "ui_spinbox.hpp" TEST(UI_spinbox, to_from_json) { diff --git a/tests/UI_stacked_widget.cpp b/tests/UI_stacked_widget.cpp index 66c225e..92e176c 100644 --- a/tests/UI_stacked_widget.cpp +++ b/tests/UI_stacked_widget.cpp @@ -1,4 +1,6 @@ -#include "Test.hpp" +#include +#include +#include "ui_stacked_widget.hpp" TEST(UI_stacked_widget, to_from_json) { diff --git a/tests/UI_status_bar.cpp b/tests/UI_status_bar.cpp index 0bed2db..544a12b 100644 --- a/tests/UI_status_bar.cpp +++ b/tests/UI_status_bar.cpp @@ -1,4 +1,6 @@ -#include "Test.hpp" +#include +#include +#include "ui_status_bar.hpp" TEST(UI_status_bar, to_from_json) { diff --git a/tests/UI_tab_widget.cpp b/tests/UI_tab_widget.cpp index 69ea6f9..51e5693 100644 --- a/tests/UI_tab_widget.cpp +++ b/tests/UI_tab_widget.cpp @@ -1,4 +1,6 @@ -#include "Test.hpp" +#include +#include +#include "ui_tab_widget.hpp" TEST(UI_tab_widget, to_from_json) { diff --git a/tests/UI_textbox.cpp b/tests/UI_textbox.cpp index a2b9cb3..7bba207 100644 --- a/tests/UI_textbox.cpp +++ b/tests/UI_textbox.cpp @@ -1,4 +1,6 @@ -#include "Test.hpp" +#include +#include +#include "ui_textbox.hpp" TEST(UI_textbox, to_from_json) { diff --git a/tests/UI_thermo.cpp b/tests/UI_thermo.cpp index 1a7511b..38d94d8 100644 --- a/tests/UI_thermo.cpp +++ b/tests/UI_thermo.cpp @@ -1,4 +1,6 @@ -#include "Test.hpp" +#include +#include +#include "ui_thermo.hpp" TEST(UI_thermo, to_from_json) {