mirror of
https://github.com/qTox/qTox.git
synced 2024-03-22 14:00:36 +08:00
27 lines
446 B
C++
27 lines
446 B
C++
#pragma once
|
|
|
|
#include "src/core/icoreidhandler.h"
|
|
|
|
#include <tox/tox.h>
|
|
|
|
class MockCoreIdHandler : public ICoreIdHandler
|
|
{
|
|
public:
|
|
ToxId getSelfId() const override
|
|
{
|
|
std::terminate();
|
|
return ToxId();
|
|
}
|
|
|
|
ToxPk getSelfPublicKey() const override
|
|
{
|
|
static uint8_t id[TOX_PUBLIC_KEY_SIZE] = {0};
|
|
return ToxPk(id);
|
|
}
|
|
|
|
QString getUsername() const override
|
|
{
|
|
return "me";
|
|
}
|
|
};
|