Deepak Kodihalli | 834dcf1 | 2018-08-30 05:05:46 -0500 | [diff] [blame] | 1 | #include "remote_logging_tests.hpp" |
| 2 | #include "xyz/openbmc_project/Common/error.hpp" |
| 3 | |
| 4 | namespace phosphor |
| 5 | { |
| 6 | namespace logging |
| 7 | { |
| 8 | namespace test |
| 9 | { |
| 10 | |
| 11 | using namespace sdbusplus::xyz::openbmc_project::Common::Error; |
| 12 | |
| 13 | TEST_F(TestRemoteLogging, testGoodAddress) |
| 14 | { |
| 15 | config->address("1.1.1.1"); |
| 16 | EXPECT_EQ(config->address(), "1.1.1.1"); |
| 17 | } |
| 18 | |
| 19 | TEST_F(TestRemoteLogging, testBadAddress) |
| 20 | { |
| 21 | EXPECT_THROW(config->address("not_an_IP"), InvalidArgument); |
| 22 | } |
| 23 | |
Patrick Venture | f18bf83 | 2018-10-26 18:14:00 -0700 | [diff] [blame^] | 24 | } // namespace test |
| 25 | } // namespace logging |
| 26 | } // namespace phosphor |