diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2017-10-08 16:18:07 +0200 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2017-10-08 16:18:07 +0200 |
commit | 624fb3718b5063f29644b69a8082ef9f84a55ec5 (patch) | |
tree | 980e2199db4ccea752628f904e8a1420bca704d4 /tests/dummyresourcewritebenchmark.cpp | |
parent | 516c39e4003b179db0f9a777ce5df81c8041ef6b (diff) | |
download | sink-624fb3718b5063f29644b69a8082ef9f84a55ec5.tar.gz sink-624fb3718b5063f29644b69a8082ef9f84a55ec5.zip |
Benchmark cleanup
Diffstat (limited to 'tests/dummyresourcewritebenchmark.cpp')
-rw-r--r-- | tests/dummyresourcewritebenchmark.cpp | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/tests/dummyresourcewritebenchmark.cpp b/tests/dummyresourcewritebenchmark.cpp index 397e5de..c350b1a 100644 --- a/tests/dummyresourcewritebenchmark.cpp +++ b/tests/dummyresourcewritebenchmark.cpp | |||
@@ -113,12 +113,7 @@ class DummyResourceWriteBenchmark : public QObject | |||
113 | 113 | ||
114 | QTime time; | 114 | QTime time; |
115 | time.start(); | 115 | time.start(); |
116 | 116 | DummyResource resource(Sink::ResourceContext{"sink.dummy.instance1", "sink.dummy", Sink::AdaptorFactoryRegistry::instance().getFactories("sink.dummy")}); | |
117 | auto factory = new ::DummyResourceFactory; | ||
118 | factory->registerFacades("dummy", Sink::FacadeFactory::instance()); | ||
119 | factory->registerAdaptorFactories("dummy", Sink::AdaptorFactoryRegistry::instance()); | ||
120 | |||
121 | ::DummyResource resource(Sink::ResourceContext{"sink.dummy.instance1", "dummy", Sink::AdaptorFactoryRegistry::instance().getFactories("dummy")}); | ||
122 | 117 | ||
123 | int bufferSize = 0; | 118 | int bufferSize = 0; |
124 | auto command = createEntityBuffer(bufferSize); | 119 | auto command = createEntityBuffer(bufferSize); |
@@ -184,6 +179,8 @@ private slots: | |||
184 | void initTestCase() | 179 | void initTestCase() |
185 | { | 180 | { |
186 | Sink::Log::setDebugOutputLevel(Sink::Log::Warning); | 181 | Sink::Log::setDebugOutputLevel(Sink::Log::Warning); |
182 | auto factory = Sink::ResourceFactory::load("sink.dummy"); | ||
183 | QVERIFY(factory); | ||
187 | } | 184 | } |
188 | 185 | ||
189 | void cleanup() | 186 | void cleanup() |