1 #include <array> 2 #include <string> 3 #include <gtest/gtest.h> 4 #include "pathwatchimpl.hpp" 5 #include "event.hpp" 6 7 using namespace std::string_literals; 8 using namespace phosphor::dbus::monitoring; 9 10 #include "interfaceaddtest.hpp" 11 12 const std::array<std::string, 1> expectedPaths = { 13 "/xyz/openbmc_project/testing/inst1"s, 14 }; 15 16 const std::array<std::string, 1> expectedWatches = { 17 "/xyz/openbmc_project/testing/inst1"s, 18 }; 19 20 TEST(InterfaceAddTest, PathsSameSize) 21 { 22 ASSERT_EQ(sizeof(expectedPaths), sizeof(paths)); 23 } 24 25 TEST(InterfaceAddTest, WatchSameSize) 26 { 27 ASSERT_EQ(expectedWatches.size(), pathwatches.size()); 28 }