summaryrefslogtreecommitdiffstats
path: root/test/unit/ui/mocks/text_mock.h
diff options
context:
space:
mode:
Diffstat (limited to 'test/unit/ui/mocks/text_mock.h')
-rw-r--r--test/unit/ui/mocks/text_mock.h16
1 files changed, 13 insertions, 3 deletions
diff --git a/test/unit/ui/mocks/text_mock.h b/test/unit/ui/mocks/text_mock.h
index f38b977..b9af6d3 100644
--- a/test/unit/ui/mocks/text_mock.h
+++ b/test/unit/ui/mocks/text_mock.h
@@ -15,11 +15,21 @@ public:
{
};
- MOCK_METHOD4(GetCharWidth, float(Gfx::UTF8Char, Gfx::FontType, float, float));
+ MOCK_METHOD4(GetCharWidth, float(Gfx::UTF8Char ch,
+ Gfx::FontType type,
+ float size,
+ float offset));
MOCK_METHOD4(GetStringWidth, float(const std::string &text,
std::vector<Gfx::FontMetaChar>::iterator format,
- std::vector<Gfx::FontMetaChar>::iterator end, float size));
- MOCK_METHOD3(GetStringWidth, float(const std::string &, Gfx::FontType, float));
+ std::vector<Gfx::FontMetaChar>::iterator end,
+ float size));
+ MOCK_METHOD3(GetStringWidth, float(std::string text,
+ Gfx::FontType font,
+ float size));
+ MOCK_METHOD4(GetStringWidth, float(Gfx::UTF8Char ch,
+ Gfx::FontType font,
+ float size,
+ float offset));
};