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