diff options
Diffstat (limited to 'tests/storagebenchmark.cpp')
-rw-r--r-- | tests/storagebenchmark.cpp | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/tests/storagebenchmark.cpp b/tests/storagebenchmark.cpp index ee336d2..eef360e 100644 --- a/tests/storagebenchmark.cpp +++ b/tests/storagebenchmark.cpp | |||
@@ -1,6 +1,6 @@ | |||
1 | #include <QtTest> | 1 | #include <QtTest> |
2 | 2 | ||
3 | #include "calendar_generated.h" | 3 | #include "event_generated.h" |
4 | 4 | ||
5 | #include "hawd/dataset.h" | 5 | #include "hawd/dataset.h" |
6 | #include "hawd/formatter.h" | 6 | #include "hawd/formatter.h" |
@@ -13,7 +13,7 @@ | |||
13 | #include <QString> | 13 | #include <QString> |
14 | #include <QTime> | 14 | #include <QTime> |
15 | 15 | ||
16 | using namespace Calendar; | 16 | using namespace Sink::ApplicationDomain::Buffer; |
17 | using namespace flatbuffers; | 17 | using namespace flatbuffers; |
18 | 18 | ||
19 | static QByteArray createEvent() | 19 | static QByteArray createEvent() |
@@ -25,13 +25,10 @@ static QByteArray createEvent() | |||
25 | { | 25 | { |
26 | uint8_t *rawDataPtr = Q_NULLPTR; | 26 | uint8_t *rawDataPtr = Q_NULLPTR; |
27 | auto summary = fbb.CreateString("summary"); | 27 | auto summary = fbb.CreateString("summary"); |
28 | auto data = fbb.CreateUninitializedVector<uint8_t>(attachmentSize, &rawDataPtr); | 28 | EventBuilder eventBuilder(fbb); |
29 | // auto data = fbb.CreateVector(rawData, attachmentSize); | ||
30 | Calendar::EventBuilder eventBuilder(fbb); | ||
31 | eventBuilder.add_summary(summary); | 29 | eventBuilder.add_summary(summary); |
32 | eventBuilder.add_attachment(data); | ||
33 | auto eventLocation = eventBuilder.Finish(); | 30 | auto eventLocation = eventBuilder.Finish(); |
34 | Calendar::FinishEventBuffer(fbb, eventLocation); | 31 | FinishEventBuffer(fbb, eventLocation); |
35 | memcpy((void *)rawDataPtr, rawData, attachmentSize); | 32 | memcpy((void *)rawDataPtr, rawData, attachmentSize); |
36 | } | 33 | } |
37 | 34 | ||