summaryrefslogtreecommitdiffstats
path: root/src/ui/test/mocks/text_mock.h
blob: 59a6c48291bd4cc9f02637b0f5bb1c4e8a883e53 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#include "../../graphics/engine/text.h"
#include <gmock/gmock.h>
#include "../../common/logger.h"


class CTextMock : public Gfx::CText
{
public:
    CTextMock(CInstanceManager *iMan, Gfx::CEngine* engine) : CText(iMan, engine)
    {
    }

    virtual ~CTextMock()
    {
    };

    MOCK_METHOD4(GetCharWidth, float(Gfx::UTF8Char, Gfx::FontType, float, float));
    MOCK_METHOD3(GetStringWidth, float(const std::string &, Gfx::FontType, float));

};