diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2017-10-06 18:10:27 +0200 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2017-10-06 18:10:27 +0200 |
commit | 12242d27868e8361770ed1cfbfc958ab9084b81b (patch) | |
tree | e3c34fec2ed8fb841f03e3ee97163d2abf3e44bc | |
parent | 7cc6c79b9e6ca8c1d786fe2dacb83b27c1c893ae (diff) | |
download | sink-12242d27868e8361770ed1cfbfc958ab9084b81b.tar.gz sink-12242d27868e8361770ed1cfbfc958ab9084b81b.zip |
Fixed dummyresource write benchmark
-rw-r--r-- | tests/dummyresourcewritebenchmark.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/tests/dummyresourcewritebenchmark.cpp b/tests/dummyresourcewritebenchmark.cpp index facd60c..2b71b4a 100644 --- a/tests/dummyresourcewritebenchmark.cpp +++ b/tests/dummyresourcewritebenchmark.cpp | |||
@@ -12,6 +12,8 @@ | |||
12 | #include "log.h" | 12 | #include "log.h" |
13 | #include "resourceconfig.h" | 13 | #include "resourceconfig.h" |
14 | #include "definitions.h" | 14 | #include "definitions.h" |
15 | #include "facadefactory.h" | ||
16 | #include "adaptorfactoryregistry.h" | ||
15 | 17 | ||
16 | #include "hawd/dataset.h" | 18 | #include "hawd/dataset.h" |
17 | #include "hawd/formatter.h" | 19 | #include "hawd/formatter.h" |
@@ -108,7 +110,11 @@ class DummyResourceWriteBenchmark : public QObject | |||
108 | QTime time; | 110 | QTime time; |
109 | time.start(); | 111 | time.start(); |
110 | 112 | ||
111 | ::DummyResource resource(Sink::ResourceContext{"sink.dummy.instance1", "dummy"}); | 113 | auto factory = new ::DummyResourceFactory; |
114 | factory->registerFacades("dummy", Sink::FacadeFactory::instance()); | ||
115 | factory->registerAdaptorFactories("dummy", Sink::AdaptorFactoryRegistry::instance()); | ||
116 | |||
117 | ::DummyResource resource(Sink::ResourceContext{"sink.dummy.instance1", "dummy", Sink::AdaptorFactoryRegistry::instance().getFactories("dummy")}); | ||
112 | 118 | ||
113 | int bufferSize = 0; | 119 | int bufferSize = 0; |
114 | auto command = createEntityBuffer(bufferSize); | 120 | auto command = createEntityBuffer(bufferSize); |