summaryrefslogtreecommitdiffstats
path: root/src/test/templates
diff options
context:
space:
mode:
authorBrad Bishop <bradleyb@fuzziesquirrel.com>2017-05-15 12:44:01 -0400
committerBrad Bishop <bradleyb@fuzziesquirrel.com>2017-06-19 16:21:51 -0400
commit13fd8722e616dd424cd585187fb0ef65f6316023 (patch)
tree6cc19d2a199392b7a6678de57f110461041544b2 /src/test/templates
parent4b916f139a9b3ccac76610f5e4da1fe0bb4dfd51 (diff)
downloadphosphor-dbus-monitor-13fd8722e616dd424cd585187fb0ef65f6316023.tar.gz
phosphor-dbus-monitor-13fd8722e616dd424cd585187fb0ef65f6316023.zip
Add testcases for property watches
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com> Change-Id: I9e9266901414c71a34d9686f2a45bc4764602d53
Diffstat (limited to 'src/test/templates')
-rw-r--r--src/test/templates/propertywatchgentest.mako.hpp17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/test/templates/propertywatchgentest.mako.hpp b/src/test/templates/propertywatchgentest.mako.hpp
new file mode 100644
index 0000000..ac4dbee
--- /dev/null
+++ b/src/test/templates/propertywatchgentest.mako.hpp
@@ -0,0 +1,17 @@
+auto storageCount = ${len(instances)};
+
+const std::array<Index, ${len(instancegroups)}> indicies = {{
+% for g in instancegroups:
+ {
+ % for i in g.members:
+ {Index::key_type{${i[0]}, ${i[2]}, ${i[3]}}, ${i[5]}},
+ % endfor
+ },
+% endfor
+}};
+
+const std::array<std::tuple<std::string, size_t>, ${len(watches)}> watches = {{
+% for w in watches:
+ std::tuple<std::string, size_t>{"${w.datatype}", ${w.instances}},
+% endfor
+}};
OpenPOWER on IntegriCloud