diff --git a/src/providers/twitch/TwitchAccount.hpp b/src/providers/twitch/TwitchAccount.hpp index c4af075a0..e14668b50 100644 --- a/src/providers/twitch/TwitchAccount.hpp +++ b/src/providers/twitch/TwitchAccount.hpp @@ -12,6 +12,7 @@ #include #include #include +#include #include #include #include diff --git a/src/providers/twitch/TwitchAccountManager.cpp b/src/providers/twitch/TwitchAccountManager.cpp index 32641f90f..f74fafa69 100644 --- a/src/providers/twitch/TwitchAccountManager.cpp +++ b/src/providers/twitch/TwitchAccountManager.cpp @@ -14,6 +14,8 @@ #include "providers/twitch/TwitchUser.hpp" #include "util/SharedPtrElementLess.hpp" +#include + namespace chatterino { using namespace literals; diff --git a/tests/src/Commands.cpp b/tests/src/Commands.cpp index e44366f20..b319cd15b 100644 --- a/tests/src/Commands.cpp +++ b/tests/src/Commands.cpp @@ -873,9 +873,15 @@ TEST(Commands, E2E) EXPECT_CALL(mockHelix, update).Times(1); EXPECT_CALL(mockHelix, loadBlocks).Times(1); - auto account = std::make_shared( - testaccount420["login"].toString(), "token", "oauthclient", - testaccount420["id"].toString()); + auto account = std::make_shared(TwitchAccountData{ + .username = testaccount420["login"].toString(), + .userID = testaccount420["id"].toString(), + .clientID = "oauthclient", + .oauthToken = "token", + .ty = TwitchAccount::Type::ImplicitGrant, + .refreshToken = {}, + .expiresAt = {}, + }); getApp()->getAccounts()->twitch.accounts.append(account); getApp()->getAccounts()->twitch.currentUsername = testaccount420["login"].toString(); diff --git a/tests/src/TwitchPubSubClient.cpp b/tests/src/TwitchPubSubClient.cpp index e195d937b..497d0ee05 100644 --- a/tests/src/TwitchPubSubClient.cpp +++ b/tests/src/TwitchPubSubClient.cpp @@ -10,6 +10,7 @@ #include #include +#include using namespace chatterino; using namespace std::chrono_literals; @@ -82,8 +83,15 @@ public: QString token = "token") : PubSub(QString("wss://127.0.0.1:9050%1").arg(path), pingInterval) { - auto account = std::make_shared("testaccount_420", token, - "clientid", "123456"); + auto account = std::make_shared(TwitchAccountData{ + .username = "testaccount_420", + .userID = "123456", + .clientID = "clientid", + .oauthToken = std::move(token), + .ty = TwitchAccount::Type::ImplicitGrant, + .refreshToken = {}, + .expiresAt = {}, + }); this->setAccount(account); } };