Patrick Venture | f085d91 | 2019-03-15 08:50:00 -0700 | [diff] [blame] | 1 | #include "handler.hpp" |
| 2 | |
| 3 | #include <string> |
| 4 | #include <tuple> |
| 5 | |
| 6 | #include <gtest/gtest.h> |
| 7 | |
| 8 | namespace google |
| 9 | { |
| 10 | namespace ipmi |
| 11 | { |
| 12 | |
| 13 | TEST(HandlerTest, EthCheckValidHappy) |
| 14 | { |
| 15 | // The code returns compiled-in information, and therefore cannot really |
| 16 | // fail. |
| 17 | Handler h; |
| 18 | std::tuple<std::uint8_t, std::string> result = h.getEthDetails(); |
| 19 | EXPECT_EQ(1, std::get<0>(result)); |
| 20 | EXPECT_STREQ("eth0", std::get<1>(result).c_str()); |
| 21 | } |
| 22 | |
| 23 | // TODO: Add checks for other functions of handler. |
| 24 | |
| 25 | } // namespace ipmi |
| 26 | } // namespace google |