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