From 6b1cf550608c2f17cbed9e375f15a4c14bfe8ace Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Thu, 22 Dec 2016 22:05:40 +0100 Subject: More Log::Context --- tests/mailquerybenchmark.cpp | 2 +- tests/pipelinebenchmark.cpp | 2 +- tests/pipelinetest.cpp | 10 +++++----- 3 files changed, 7 insertions(+), 7 deletions(-) (limited to 'tests') diff --git a/tests/mailquerybenchmark.cpp b/tests/mailquerybenchmark.cpp index e55e744..080d30e 100644 --- a/tests/mailquerybenchmark.cpp +++ b/tests/mailquerybenchmark.cpp @@ -61,7 +61,7 @@ class MailQueryBenchmark : public QObject { TestResource::removeFromDisk(resourceIdentifier); - auto pipeline = QSharedPointer::create(Sink::ResourceContext{resourceIdentifier, "test"}); + auto pipeline = QSharedPointer::create(Sink::ResourceContext{resourceIdentifier, "test"}, "test"); auto domainTypeAdaptorFactory = QSharedPointer::create(); diff --git a/tests/pipelinebenchmark.cpp b/tests/pipelinebenchmark.cpp index 341c733..7052c4c 100644 --- a/tests/pipelinebenchmark.cpp +++ b/tests/pipelinebenchmark.cpp @@ -61,7 +61,7 @@ class PipelineBenchmark : public QObject { TestResource::removeFromDisk(resourceIdentifier); - auto pipeline = QSharedPointer::create(Sink::ResourceContext{resourceIdentifier, "test"}); + auto pipeline = QSharedPointer::create(Sink::ResourceContext{resourceIdentifier, "test"}, "test"); pipeline->setPreprocessors("mail", preprocessors); QTime time; diff --git a/tests/pipelinetest.cpp b/tests/pipelinetest.cpp index e68aa53..0268ec5 100644 --- a/tests/pipelinetest.cpp +++ b/tests/pipelinetest.cpp @@ -213,7 +213,7 @@ private slots: flatbuffers::FlatBufferBuilder entityFbb; auto command = createEntityCommand(createEvent(entityFbb)); - Sink::Pipeline pipeline(getContext()); + Sink::Pipeline pipeline(getContext(), {"test"}); pipeline.startTransaction(); pipeline.newEntity(command.constData(), command.size()); @@ -236,7 +236,7 @@ private slots: flatbuffers::FlatBufferBuilder entityFbb; auto command = createEntityCommand(createEvent(entityFbb, "summary", "description")); - Sink::Pipeline pipeline(getContext()); + Sink::Pipeline pipeline(getContext(), {"test"}); auto adaptorFactory = QSharedPointer::create(); @@ -282,7 +282,7 @@ private slots: flatbuffers::FlatBufferBuilder entityFbb; auto command = createEntityCommand(createEvent(entityFbb)); - Sink::Pipeline pipeline(getContext()); + Sink::Pipeline pipeline(getContext(), {"test"}); auto adaptorFactory = QSharedPointer::create(); @@ -325,7 +325,7 @@ private slots: { flatbuffers::FlatBufferBuilder entityFbb; auto command = createEntityCommand(createEvent(entityFbb)); - Sink::Pipeline pipeline(getContext()); + Sink::Pipeline pipeline(getContext(), {"test"}); // Create the initial revision pipeline.startTransaction(); @@ -359,7 +359,7 @@ private slots: auto testProcessor = new TestProcessor; - Sink::Pipeline pipeline(getContext()); + Sink::Pipeline pipeline(getContext(), {"test"}); pipeline.setPreprocessors("event", QVector() << testProcessor); pipeline.startTransaction(); // pipeline.setAdaptorFactory("event", QSharedPointer::create()); -- cgit v1.2.3