mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-13 19:49:51 +01:00
fix: benchmarks segfaulting (#5559)
This commit is contained in:
parent
9f588b7406
commit
f4d6845587
|
@ -74,6 +74,7 @@
|
||||||
- Dev: Refactored a few `#define`s into `const(expr)` and cleaned includes. (#5527)
|
- Dev: Refactored a few `#define`s into `const(expr)` and cleaned includes. (#5527)
|
||||||
- Dev: Added `FlagsEnum::isEmpty`. (#5550)
|
- Dev: Added `FlagsEnum::isEmpty`. (#5550)
|
||||||
- Dev: Prepared for Qt 6.8 by addressing some deprecations. (#5529)
|
- Dev: Prepared for Qt 6.8 by addressing some deprecations. (#5529)
|
||||||
|
- Dev: Fixed benchmarks segfaulting on run. (#5559)
|
||||||
- Dev: Refactored `MessageBuilder` to be a single class. (#5548)
|
- Dev: Refactored `MessageBuilder` to be a single class. (#5548)
|
||||||
- Dev: Recent changes are now shown in the nightly release description. (#5553, #5554)
|
- Dev: Recent changes are now shown in the nightly release description. (#5553, #5554)
|
||||||
|
|
||||||
|
|
|
@ -6,6 +6,7 @@
|
||||||
#include "messages/Message.hpp"
|
#include "messages/Message.hpp"
|
||||||
#include "messages/MessageBuilder.hpp"
|
#include "messages/MessageBuilder.hpp"
|
||||||
#include "mocks/BaseApplication.hpp"
|
#include "mocks/BaseApplication.hpp"
|
||||||
|
#include "mocks/UserData.hpp"
|
||||||
#include "util/Helpers.hpp"
|
#include "util/Helpers.hpp"
|
||||||
|
|
||||||
#include <benchmark/benchmark.h>
|
#include <benchmark/benchmark.h>
|
||||||
|
@ -64,8 +65,14 @@ public:
|
||||||
return &this->highlights;
|
return &this->highlights;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
IUserDataController *getUserData() override
|
||||||
|
{
|
||||||
|
return &this->userData;
|
||||||
|
}
|
||||||
|
|
||||||
AccountController accounts;
|
AccountController accounts;
|
||||||
HighlightController highlights;
|
HighlightController highlights;
|
||||||
|
mock::UserDataController userData;
|
||||||
};
|
};
|
||||||
|
|
||||||
static void BM_HighlightTest(benchmark::State &state)
|
static void BM_HighlightTest(benchmark::State &state)
|
||||||
|
|
Loading…
Reference in a new issue