diff options
Diffstat (limited to 'src/test/interfaceaddtest.cpp')
-rw-r--r-- | src/test/interfaceaddtest.cpp | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/src/test/interfaceaddtest.cpp b/src/test/interfaceaddtest.cpp new file mode 100644 index 0000000..d80f437 --- /dev/null +++ b/src/test/interfaceaddtest.cpp @@ -0,0 +1,28 @@ +#include <array> +#include <string> +#include <gtest/gtest.h> +#include "pathwatchimpl.hpp" +#include "event.hpp" + +using namespace std::string_literals; +using namespace phosphor::dbus::monitoring; + +#include "interfaceaddtest.hpp" + +const std::array<std::string, 1> expectedPaths = { + "/xyz/openbmc_project/testing/inst1"s, +}; + +const std::array<std::string, 1> expectedWatches = { + "/xyz/openbmc_project/testing/inst1"s, +}; + +TEST(InterfaceAddTest, PathsSameSize) +{ + ASSERT_EQ(sizeof(expectedPaths), sizeof(paths)); +} + +TEST(InterfaceAddTest, WatchSameSize) +{ + ASSERT_EQ(expectedWatches.size(), pathwatches.size()); +}
\ No newline at end of file |