Brad Bishop | 13fd872 | 2017-05-15 12:44:01 -0400 | [diff] [blame] | 1 | #include "propertywatchtest.hpp" |
| 2 | |
Patrick Venture | 3d6d318 | 2018-08-31 09:33:09 -0700 | [diff] [blame] | 3 | #include "propertywatchimpl.hpp" |
| 4 | |
| 5 | #include <array> |
Matthew Barth | 39c8215 | 2019-10-17 15:47:29 -0500 | [diff] [blame] | 6 | #include <functional> |
Patrick Venture | 3d6d318 | 2018-08-31 09:33:09 -0700 | [diff] [blame] | 7 | |
Brad Bishop | 13fd872 | 2017-05-15 12:44:01 -0400 | [diff] [blame] | 8 | using namespace std::string_literals; |
| 9 | using namespace phosphor::dbus::monitoring; |
| 10 | |
Brad Bishop | d1eac88 | 2018-03-29 10:34:05 -0400 | [diff] [blame] | 11 | const std::array<std::string, 4> paths = { |
Brad Bishop | 13fd872 | 2017-05-15 12:44:01 -0400 | [diff] [blame] | 12 | "/xyz/openbmc_project/testing/inst1"s, |
| 13 | "/xyz/openbmc_project/testing/inst2"s, |
| 14 | "/xyz/openbmc_project/testing/inst3"s, |
| 15 | "/xyz/openbmc_project/testing/inst4"s, |
| 16 | }; |
| 17 | |
Brad Bishop | d1eac88 | 2018-03-29 10:34:05 -0400 | [diff] [blame] | 18 | const std::array<std::string, 2> interfaces = { |
Brad Bishop | 13fd872 | 2017-05-15 12:44:01 -0400 | [diff] [blame] | 19 | "xyz.openbmc_project.Iface1"s, |
| 20 | "xyz.openbmc_project.Iface2"s, |
| 21 | }; |
| 22 | |
Brad Bishop | d1eac88 | 2018-03-29 10:34:05 -0400 | [diff] [blame] | 23 | const std::array<std::string, 2> properties = { |
Brad Bishop | 13fd872 | 2017-05-15 12:44:01 -0400 | [diff] [blame] | 24 | "Value1"s, |
| 25 | "Value2"s, |
| 26 | }; |
| 27 | |
| 28 | const std::string meta; |
| 29 | |
Patrick Williams | 26dc0bc | 2022-06-16 17:06:18 -0500 | [diff] [blame] | 30 | std::array<std::tuple<std::any, std::any>, 8> storage = {}; |
Brad Bishop | 13fd872 | 2017-05-15 12:44:01 -0400 | [diff] [blame] | 31 | |
Brad Bishop | d1eac88 | 2018-03-29 10:34:05 -0400 | [diff] [blame] | 32 | const PropertyIndex watchIndex = { |
Brad Bishop | 13fd872 | 2017-05-15 12:44:01 -0400 | [diff] [blame] | 33 | { |
Brad Bishop | d1eac88 | 2018-03-29 10:34:05 -0400 | [diff] [blame] | 34 | {PropertyIndex::key_type{paths[0], interfaces[0], properties[0]}, |
| 35 | PropertyIndex::mapped_type{meta, meta, storage[0]}}, |
| 36 | {PropertyIndex::key_type{paths[0], interfaces[1], properties[1]}, |
| 37 | PropertyIndex::mapped_type{meta, meta, storage[1]}}, |
| 38 | {PropertyIndex::key_type{paths[1], interfaces[0], properties[0]}, |
| 39 | PropertyIndex::mapped_type{meta, meta, storage[2]}}, |
| 40 | {PropertyIndex::key_type{paths[1], interfaces[1], properties[1]}, |
| 41 | PropertyIndex::mapped_type{meta, meta, storage[3]}}, |
| 42 | {PropertyIndex::key_type{paths[2], interfaces[0], properties[0]}, |
| 43 | PropertyIndex::mapped_type{meta, meta, storage[4]}}, |
| 44 | {PropertyIndex::key_type{paths[2], interfaces[1], properties[1]}, |
| 45 | PropertyIndex::mapped_type{meta, meta, storage[5]}}, |
| 46 | {PropertyIndex::key_type{paths[3], interfaces[0], properties[0]}, |
| 47 | PropertyIndex::mapped_type{meta, meta, storage[6]}}, |
| 48 | {PropertyIndex::key_type{paths[3], interfaces[1], properties[1]}, |
| 49 | PropertyIndex::mapped_type{meta, meta, storage[7]}}, |
Brad Bishop | 13fd872 | 2017-05-15 12:44:01 -0400 | [diff] [blame] | 50 | }, |
| 51 | }; |
| 52 | |
Patrick Venture | 3d6d318 | 2018-08-31 09:33:09 -0700 | [diff] [blame] | 53 | template <typename T> |
Matthew Barth | 5288136 | 2019-10-17 15:40:43 -0500 | [diff] [blame] | 54 | struct Values |
George Liu | 3fe976c | 2022-06-21 09:37:04 +0800 | [diff] [blame] | 55 | {}; |
Patrick Venture | 3d6d318 | 2018-08-31 09:33:09 -0700 | [diff] [blame] | 56 | template <> |
Matthew Barth | 5288136 | 2019-10-17 15:40:43 -0500 | [diff] [blame] | 57 | struct Values<uint8_t> |
Brad Bishop | 13fd872 | 2017-05-15 12:44:01 -0400 | [diff] [blame] | 58 | { |
| 59 | static auto& get(size_t i) |
| 60 | { |
Brad Bishop | d1eac88 | 2018-03-29 10:34:05 -0400 | [diff] [blame] | 61 | static const std::array<uint8_t, 8> values = { |
Brad Bishop | 13fd872 | 2017-05-15 12:44:01 -0400 | [diff] [blame] | 62 | {0, 1, 2, 3, 4, 5, 6, 7}, |
| 63 | }; |
| 64 | return values[i]; |
| 65 | } |
| 66 | }; |
| 67 | |
Patrick Venture | 3d6d318 | 2018-08-31 09:33:09 -0700 | [diff] [blame] | 68 | template <> |
Matthew Barth | 5288136 | 2019-10-17 15:40:43 -0500 | [diff] [blame] | 69 | struct Values<uint16_t> |
Brad Bishop | 13fd872 | 2017-05-15 12:44:01 -0400 | [diff] [blame] | 70 | { |
| 71 | static auto& get(size_t i) |
| 72 | { |
Brad Bishop | d1eac88 | 2018-03-29 10:34:05 -0400 | [diff] [blame] | 73 | static const std::array<uint16_t, 8> values = { |
Brad Bishop | 13fd872 | 2017-05-15 12:44:01 -0400 | [diff] [blame] | 74 | {88, 77, 66, 55, 44, 33, 22, 11}, |
| 75 | }; |
| 76 | return values[i]; |
| 77 | } |
| 78 | }; |
| 79 | |
Patrick Venture | 3d6d318 | 2018-08-31 09:33:09 -0700 | [diff] [blame] | 80 | template <> |
Matthew Barth | 5288136 | 2019-10-17 15:40:43 -0500 | [diff] [blame] | 81 | struct Values<uint32_t> |
Brad Bishop | 13fd872 | 2017-05-15 12:44:01 -0400 | [diff] [blame] | 82 | { |
| 83 | static auto& get(size_t i) |
| 84 | { |
Brad Bishop | d1eac88 | 2018-03-29 10:34:05 -0400 | [diff] [blame] | 85 | static const std::array<uint32_t, 8> values = { |
Brad Bishop | 13fd872 | 2017-05-15 12:44:01 -0400 | [diff] [blame] | 86 | {0xffffffff, 1, 3, 0, 5, 7, 9, 0xffffffff}, |
| 87 | }; |
| 88 | return values[i]; |
| 89 | } |
| 90 | }; |
| 91 | |
Patrick Venture | 3d6d318 | 2018-08-31 09:33:09 -0700 | [diff] [blame] | 92 | template <> |
Matthew Barth | 5288136 | 2019-10-17 15:40:43 -0500 | [diff] [blame] | 93 | struct Values<uint64_t> |
Brad Bishop | 13fd872 | 2017-05-15 12:44:01 -0400 | [diff] [blame] | 94 | { |
| 95 | static auto& get(size_t i) |
| 96 | { |
Brad Bishop | d1eac88 | 2018-03-29 10:34:05 -0400 | [diff] [blame] | 97 | static const std::array<uint64_t, 8> values = { |
Brad Bishop | 13fd872 | 2017-05-15 12:44:01 -0400 | [diff] [blame] | 98 | {0xffffffffffffffff, 3, 7, 12234, 0, 3, 9, 0xffffffff}, |
| 99 | }; |
| 100 | return values[i]; |
| 101 | } |
| 102 | }; |
| 103 | |
Patrick Venture | 3d6d318 | 2018-08-31 09:33:09 -0700 | [diff] [blame] | 104 | template <> |
Matthew Barth | 5288136 | 2019-10-17 15:40:43 -0500 | [diff] [blame] | 105 | struct Values<std::string> |
Brad Bishop | 13fd872 | 2017-05-15 12:44:01 -0400 | [diff] [blame] | 106 | { |
| 107 | static auto& get(size_t i) |
| 108 | { |
Brad Bishop | d1eac88 | 2018-03-29 10:34:05 -0400 | [diff] [blame] | 109 | static const std::array<std::string, 8> values = { |
Brad Bishop | 13fd872 | 2017-05-15 12:44:01 -0400 | [diff] [blame] | 110 | {""s, "foo"s, "bar"s, "baz"s, "hello"s, "string", "\x2\x3", "\\"}, |
| 111 | }; |
| 112 | return values[i]; |
| 113 | } |
| 114 | }; |
| 115 | |
Patrick Venture | 3d6d318 | 2018-08-31 09:33:09 -0700 | [diff] [blame] | 116 | template <typename T> |
Patrick Williams | 26dc0bc | 2022-06-16 17:06:18 -0500 | [diff] [blame] | 117 | void nonFilteredCheck(const std::any& value, const size_t ndx) |
Matthew Barth | 39c8215 | 2019-10-17 15:47:29 -0500 | [diff] [blame] | 118 | { |
Patrick Williams | 26dc0bc | 2022-06-16 17:06:18 -0500 | [diff] [blame] | 119 | ASSERT_EQ(value.has_value(), true); |
| 120 | ASSERT_EQ(std::any_cast<T>(value), Values<T>::get(ndx)); |
Matthew Barth | 39c8215 | 2019-10-17 15:47:29 -0500 | [diff] [blame] | 121 | } |
| 122 | |
| 123 | template <typename T> |
Matthew Barth | 9b50214 | 2019-10-17 15:53:53 -0500 | [diff] [blame] | 124 | struct FilteredValues |
George Liu | 3fe976c | 2022-06-21 09:37:04 +0800 | [diff] [blame] | 125 | {}; |
Matthew Barth | 9b50214 | 2019-10-17 15:53:53 -0500 | [diff] [blame] | 126 | |
| 127 | template <> |
| 128 | struct FilteredValues<uint8_t> |
| 129 | { |
| 130 | static auto& opFilters() |
| 131 | { |
| 132 | static std::unique_ptr<OperandFilters<uint8_t>> filters = |
| 133 | std::make_unique<OperandFilters<uint8_t>>( |
| 134 | std::vector<std::function<bool(uint8_t)>>{ |
| 135 | [](const auto& value) { return value < 4; }}); |
| 136 | return filters; |
| 137 | } |
| 138 | static auto& expected(size_t i) |
| 139 | { |
Patrick Williams | 26dc0bc | 2022-06-16 17:06:18 -0500 | [diff] [blame] | 140 | static const std::array<std::any, 8> values = { |
| 141 | {std::any(uint8_t(0)), std::any(uint8_t(1)), std::any(uint8_t(2)), |
| 142 | std::any(uint8_t(3)), std::any(), std::any(), std::any(), |
| 143 | std::any()}}; |
Matthew Barth | 9b50214 | 2019-10-17 15:53:53 -0500 | [diff] [blame] | 144 | return values[i]; |
| 145 | } |
| 146 | }; |
| 147 | |
| 148 | template <> |
| 149 | struct FilteredValues<uint16_t> |
| 150 | { |
| 151 | static auto& opFilters() |
| 152 | { |
| 153 | static std::unique_ptr<OperandFilters<uint16_t>> filters = |
| 154 | std::make_unique<OperandFilters<uint16_t>>( |
| 155 | std::vector<std::function<bool(uint16_t)>>{ |
| 156 | [](const auto& value) { return value > 44; }, |
| 157 | [](const auto& value) { return value != 88; }}); |
| 158 | return filters; |
| 159 | } |
| 160 | static auto& expected(size_t i) |
| 161 | { |
Patrick Williams | 26dc0bc | 2022-06-16 17:06:18 -0500 | [diff] [blame] | 162 | static const std::array<std::any, 8> values = { |
| 163 | {std::any(), std::any(uint16_t(77)), std::any(uint16_t(66)), |
| 164 | std::any(uint16_t(55)), std::any(), std::any(), std::any(), |
| 165 | std::any()}}; |
Matthew Barth | 9b50214 | 2019-10-17 15:53:53 -0500 | [diff] [blame] | 166 | return values[i]; |
| 167 | } |
| 168 | }; |
| 169 | |
| 170 | template <> |
| 171 | struct FilteredValues<uint32_t> |
| 172 | { |
| 173 | static auto& opFilters() |
| 174 | { |
| 175 | static std::unique_ptr<OperandFilters<uint32_t>> filters = |
| 176 | std::make_unique<OperandFilters<uint32_t>>( |
| 177 | std::vector<std::function<bool(uint32_t)>>{ |
| 178 | [](const auto& value) { return value != 0xffffffff; }, |
| 179 | [](const auto& value) { return value != 0; }}); |
| 180 | return filters; |
| 181 | } |
| 182 | static auto& expected(size_t i) |
| 183 | { |
Patrick Williams | 26dc0bc | 2022-06-16 17:06:18 -0500 | [diff] [blame] | 184 | static const std::array<std::any, 8> values = { |
| 185 | {std::any(), std::any(uint32_t(1)), std::any(uint32_t(3)), |
| 186 | std::any(), std::any(uint32_t(5)), std::any(uint32_t(7)), |
| 187 | std::any(uint32_t(9)), std::any()}}; |
Matthew Barth | 9b50214 | 2019-10-17 15:53:53 -0500 | [diff] [blame] | 188 | return values[i]; |
| 189 | } |
| 190 | }; |
| 191 | |
| 192 | template <> |
| 193 | struct FilteredValues<uint64_t> |
| 194 | { |
| 195 | static auto& opFilters() |
| 196 | { |
| 197 | static std::unique_ptr<OperandFilters<uint64_t>> filters = |
| 198 | std::make_unique<OperandFilters<uint64_t>>( |
| 199 | std::vector<std::function<bool(uint64_t)>>{ |
| 200 | [](const auto& value) { return (value % 3) != 0; }}); |
| 201 | return filters; |
| 202 | } |
| 203 | static auto& expected(size_t i) |
| 204 | { |
Patrick Williams | 26dc0bc | 2022-06-16 17:06:18 -0500 | [diff] [blame] | 205 | static const std::array<std::any, 8> values = { |
| 206 | {std::any(), std::any(), std::any(uint64_t(7)), std::any(), |
| 207 | std::any(), std::any(), std::any(), std::any()}}; |
Matthew Barth | 9b50214 | 2019-10-17 15:53:53 -0500 | [diff] [blame] | 208 | return values[i]; |
| 209 | } |
| 210 | }; |
| 211 | |
| 212 | template <> |
| 213 | struct FilteredValues<std::string> |
| 214 | { |
| 215 | static auto& opFilters() |
| 216 | { |
| 217 | static std::unique_ptr<OperandFilters<std::string>> filters = |
| 218 | std::make_unique<OperandFilters<std::string>>( |
| 219 | std::vector<std::function<bool(std::string)>>{ |
| 220 | [](const auto& value) { return value != ""s; }, |
| 221 | [](const auto& value) { return value != "string"s; }}); |
| 222 | return filters; |
| 223 | } |
| 224 | static auto& expected(size_t i) |
| 225 | { |
Patrick Williams | 26dc0bc | 2022-06-16 17:06:18 -0500 | [diff] [blame] | 226 | static const std::array<std::any, 8> values = { |
| 227 | {std::any(), std::any("foo"s), std::any("bar"s), std::any("baz"s), |
| 228 | std::any("hello"s), std::any(), std::any("\x2\x3"s), |
| 229 | std::any("\\"s)}}; |
Matthew Barth | 9b50214 | 2019-10-17 15:53:53 -0500 | [diff] [blame] | 230 | return values[i]; |
| 231 | } |
| 232 | }; |
| 233 | |
| 234 | template <typename T> |
Patrick Williams | 26dc0bc | 2022-06-16 17:06:18 -0500 | [diff] [blame] | 235 | void filteredCheck(const std::any& value, const size_t ndx) |
Matthew Barth | 9b50214 | 2019-10-17 15:53:53 -0500 | [diff] [blame] | 236 | { |
Patrick Williams | 26dc0bc | 2022-06-16 17:06:18 -0500 | [diff] [blame] | 237 | ASSERT_EQ(value.has_value(), FilteredValues<T>::expected(ndx).has_value()); |
| 238 | if (value.has_value()) |
Matthew Barth | 9b50214 | 2019-10-17 15:53:53 -0500 | [diff] [blame] | 239 | { |
Patrick Williams | 26dc0bc | 2022-06-16 17:06:18 -0500 | [diff] [blame] | 240 | ASSERT_EQ(std::any_cast<T>(value), |
| 241 | std::any_cast<T>(FilteredValues<T>::expected(ndx))); |
Matthew Barth | 9b50214 | 2019-10-17 15:53:53 -0500 | [diff] [blame] | 242 | } |
| 243 | } |
| 244 | |
| 245 | template <typename T> |
Patrick Williams | 26dc0bc | 2022-06-16 17:06:18 -0500 | [diff] [blame] | 246 | void testStart(std::function<void(const std::any&, const size_t)>&& checkState, |
| 247 | OperandFilters<T>* opFilters = nullptr) |
Brad Bishop | 13fd872 | 2017-05-15 12:44:01 -0400 | [diff] [blame] | 248 | { |
Brad Bishop | 13fd872 | 2017-05-15 12:44:01 -0400 | [diff] [blame] | 249 | using ::testing::_; |
Patrick Venture | ac80395 | 2018-08-31 09:28:31 -0700 | [diff] [blame] | 250 | using ::testing::Return; |
Brad Bishop | 13fd872 | 2017-05-15 12:44:01 -0400 | [diff] [blame] | 251 | |
| 252 | MockDBusInterface dbus; |
| 253 | MockDBusInterface::instance(dbus); |
| 254 | |
| 255 | const std::vector<std::string> expectedMapperInterfaces; |
Lei YU | 98d6462 | 2022-05-24 19:11:23 +0800 | [diff] [blame] | 256 | PropertyWatchOfType<T, MockDBusInterface> watch(watchIndex, false, |
| 257 | opFilters); |
Brad Bishop | 13fd872 | 2017-05-15 12:44:01 -0400 | [diff] [blame] | 258 | |
| 259 | auto ndx = static_cast<size_t>(0); |
| 260 | for (const auto& o : convert(watchIndex)) |
| 261 | { |
| 262 | const auto& path = o.first.get(); |
George Liu | ecef119 | 2022-07-07 08:59:12 +0800 | [diff] [blame^] | 263 | const auto& tmpInterfaces = o.second; |
Brad Bishop | 13fd872 | 2017-05-15 12:44:01 -0400 | [diff] [blame] | 264 | std::vector<std::string> mapperResponse; |
George Liu | ecef119 | 2022-07-07 08:59:12 +0800 | [diff] [blame^] | 265 | std::transform(tmpInterfaces.begin(), tmpInterfaces.end(), |
Brad Bishop | d1eac88 | 2018-03-29 10:34:05 -0400 | [diff] [blame] | 266 | std::back_inserter(mapperResponse), |
| 267 | // *INDENT-OFF* |
| 268 | [](const auto& item) { return item.first; }); |
Brad Bishop | 13fd872 | 2017-05-15 12:44:01 -0400 | [diff] [blame] | 269 | // *INDENT-ON* |
Brad Bishop | d1eac88 | 2018-03-29 10:34:05 -0400 | [diff] [blame] | 270 | EXPECT_CALL(dbus, mapperGetObject(MAPPER_BUSNAME, MAPPER_PATH, |
| 271 | MAPPER_INTERFACE, "GetObject", path, |
| 272 | expectedMapperInterfaces)) |
| 273 | .WillOnce(Return(GetObject({{"", mapperResponse}}))); |
Brad Bishop | 13fd872 | 2017-05-15 12:44:01 -0400 | [diff] [blame] | 274 | EXPECT_CALL( |
Brad Bishop | d1eac88 | 2018-03-29 10:34:05 -0400 | [diff] [blame] | 275 | dbus, fwdAddMatch( |
Matthew Barth | f79fc09 | 2019-10-10 14:01:04 -0500 | [diff] [blame] | 276 | sdbusplus::bus::match::rules::interfacesAdded(path), _)); |
George Liu | ecef119 | 2022-07-07 08:59:12 +0800 | [diff] [blame^] | 277 | for (const auto& i : tmpInterfaces) |
Brad Bishop | 13fd872 | 2017-05-15 12:44:01 -0400 | [diff] [blame] | 278 | { |
| 279 | const auto& interface = i.first.get(); |
George Liu | ecef119 | 2022-07-07 08:59:12 +0800 | [diff] [blame^] | 280 | const auto& tmpProperties = i.second; |
Brad Bishop | 13fd872 | 2017-05-15 12:44:01 -0400 | [diff] [blame] | 281 | EXPECT_CALL( |
| 282 | dbus, |
Matthew Barth | f79fc09 | 2019-10-10 14:01:04 -0500 | [diff] [blame] | 283 | fwdAddMatch(sdbusplus::bus::match::rules::propertiesChanged( |
| 284 | path, interface), |
| 285 | _)); |
Brad Bishop | 13fd872 | 2017-05-15 12:44:01 -0400 | [diff] [blame] | 286 | |
| 287 | PropertiesChanged<T> serviceResponse; |
George Liu | ecef119 | 2022-07-07 08:59:12 +0800 | [diff] [blame^] | 288 | for (const auto& p : tmpProperties) |
Brad Bishop | 13fd872 | 2017-05-15 12:44:01 -0400 | [diff] [blame] | 289 | { |
Matthew Barth | 5288136 | 2019-10-17 15:40:43 -0500 | [diff] [blame] | 290 | serviceResponse[p] = Values<T>::get(ndx); |
Brad Bishop | 13fd872 | 2017-05-15 12:44:01 -0400 | [diff] [blame] | 291 | ++ndx; |
| 292 | } |
| 293 | Expect<T>::getProperties(dbus, path, interface) |
Brad Bishop | d1eac88 | 2018-03-29 10:34:05 -0400 | [diff] [blame] | 294 | .WillOnce(Return(serviceResponse)); |
Brad Bishop | 13fd872 | 2017-05-15 12:44:01 -0400 | [diff] [blame] | 295 | } |
| 296 | } |
| 297 | |
| 298 | watch.start(); |
| 299 | |
| 300 | ndx = 0; |
| 301 | for (auto s : storage) |
| 302 | { |
Matthew Barth | 39c8215 | 2019-10-17 15:47:29 -0500 | [diff] [blame] | 303 | checkState(std::get<valueIndex>(s), ndx); |
Brad Bishop | 13fd872 | 2017-05-15 12:44:01 -0400 | [diff] [blame] | 304 | ++ndx; |
| 305 | } |
| 306 | |
| 307 | // Make sure start logic only runs the first time. |
| 308 | watch.start(); |
| 309 | } |
| 310 | |
| 311 | TEST(PropertyWatchTest, TestStart) |
| 312 | { |
Matthew Barth | 39c8215 | 2019-10-17 15:47:29 -0500 | [diff] [blame] | 313 | testStart<uint8_t>(nonFilteredCheck<uint8_t>); |
| 314 | testStart<uint16_t>(nonFilteredCheck<uint16_t>); |
| 315 | testStart<uint32_t>(nonFilteredCheck<uint32_t>); |
| 316 | testStart<uint64_t>(nonFilteredCheck<uint64_t>); |
| 317 | testStart<std::string>(nonFilteredCheck<std::string>); |
Brad Bishop | 13fd872 | 2017-05-15 12:44:01 -0400 | [diff] [blame] | 318 | } |
| 319 | |
Matthew Barth | 9b50214 | 2019-10-17 15:53:53 -0500 | [diff] [blame] | 320 | TEST(PropertyWatchTest, TestFilters) |
| 321 | { |
| 322 | testStart<uint8_t>(filteredCheck<uint8_t>, |
| 323 | FilteredValues<uint8_t>::opFilters().get()); |
| 324 | testStart<uint16_t>(filteredCheck<uint16_t>, |
| 325 | FilteredValues<uint16_t>::opFilters().get()); |
| 326 | testStart<uint32_t>(filteredCheck<uint32_t>, |
| 327 | FilteredValues<uint32_t>::opFilters().get()); |
| 328 | testStart<uint64_t>(filteredCheck<uint64_t>, |
| 329 | FilteredValues<uint64_t>::opFilters().get()); |
| 330 | testStart<std::string>(filteredCheck<std::string>, |
| 331 | FilteredValues<std::string>::opFilters().get()); |
| 332 | } |
| 333 | |
Brad Bishop | 13fd872 | 2017-05-15 12:44:01 -0400 | [diff] [blame] | 334 | MockDBusInterface* MockDBusInterface::ptr = nullptr; |