mirror of https://github.com/qTox/qTox.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
446 B
26 lines
446 B
#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"; |
|
} |
|
};
|
|
|