Patrick Venture | 3d6d318 | 2018-08-31 09:33:09 -0700 | [diff] [blame] | 1 | #include "event.hpp" |
| 2 | #include "pathwatchimpl.hpp" |
| 3 | |
Marri Devender Rao | e5576bf | 2018-04-16 05:56:11 -0500 | [diff] [blame] | 4 | #include <array> |
| 5 | #include <string> |
Patrick Venture | 3d6d318 | 2018-08-31 09:33:09 -0700 | [diff] [blame] | 6 | |
Marri Devender Rao | e5576bf | 2018-04-16 05:56:11 -0500 | [diff] [blame] | 7 | #include <gtest/gtest.h> |
Marri Devender Rao | e5576bf | 2018-04-16 05:56:11 -0500 | [diff] [blame] | 8 | |
| 9 | using namespace std::string_literals; |
| 10 | using namespace phosphor::dbus::monitoring; |
| 11 | |
| 12 | #include "interfaceaddtest.hpp" |
| 13 | |
| 14 | const std::array<std::string, 1> expectedPaths = { |
| 15 | "/xyz/openbmc_project/testing/inst1"s, |
| 16 | }; |
| 17 | |
| 18 | const std::array<std::string, 1> expectedWatches = { |
| 19 | "/xyz/openbmc_project/testing/inst1"s, |
| 20 | }; |
| 21 | |
| 22 | TEST(InterfaceAddTest, PathsSameSize) |
| 23 | { |
| 24 | ASSERT_EQ(sizeof(expectedPaths), sizeof(paths)); |
| 25 | } |
| 26 | |
| 27 | TEST(InterfaceAddTest, WatchSameSize) |
| 28 | { |
| 29 | ASSERT_EQ(expectedWatches.size(), pathwatches.size()); |
| 30 | } |