Maxwell Henderson | 6a929ff | 2024-01-14 20:03:59 -0800 | [diff] [blame] | 1 | #include "glog/logging.h" |
| 2 | #include "gtest/gtest.h" |
| 3 | |
| 4 | #include "aos/json_to_flatbuffer.h" |
| 5 | #include "y2024/constants/constants_list_generated.h" |
| 6 | |
Maxwell Henderson | 09a4b02 | 2024-01-19 21:39:51 -0800 | [diff] [blame] | 7 | namespace y2024::constants::testing { |
Maxwell Henderson | 6a929ff | 2024-01-14 20:03:59 -0800 | [diff] [blame] | 8 | class ConstantsValidatorTest : public ::testing::Test {}; |
| 9 | |
| 10 | TEST_F(ConstantsValidatorTest, CheckConstants) { |
| 11 | CHECK_NOTNULL(aos::JsonFileToFlatbuffer<y2024::ConstantsList>( |
| 12 | "y2024/constants/constants.json") |
| 13 | .message() |
| 14 | .constants()); |
| 15 | } |
| 16 | |
Maxwell Henderson | 09a4b02 | 2024-01-19 21:39:51 -0800 | [diff] [blame] | 17 | } // namespace y2024::constants::testing |