1 #include "event.hpp" 2 #include "pathwatchimpl.hpp" 3 4 #include <array> 5 #include <string> 6 7 #include <gtest/gtest.h> 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 }