summaryrefslogtreecommitdiffstats
path: root/src/test/interfaceaddtest.cpp
blob: d80f437abf661f0b7a2be8f93341e091a8f898cc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
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());
}
OpenPOWER on IntegriCloud