diff options
author | Tao Bao <tbao@google.com> | 2018-10-24 03:22:47 +0200 |
---|---|---|
committer | android-build-merger <android-build-merger@google.com> | 2018-10-24 03:22:47 +0200 |
commit | ea141413c27ec66cb35d7aeb1d44f2b7e41f10cb (patch) | |
tree | c61ef3a9fd062733e2f24b27146ba2a474798c91 /tests | |
parent | Merge "Add a function to construct the GRSurface in test" am: ee9c65a38e am: e100c9f491 (diff) | |
parent | Merge "ui: Add constness to Draw- functions." am: 47b650b588 (diff) | |
download | android_bootable_recovery-ea141413c27ec66cb35d7aeb1d44f2b7e41f10cb.tar android_bootable_recovery-ea141413c27ec66cb35d7aeb1d44f2b7e41f10cb.tar.gz android_bootable_recovery-ea141413c27ec66cb35d7aeb1d44f2b7e41f10cb.tar.bz2 android_bootable_recovery-ea141413c27ec66cb35d7aeb1d44f2b7e41f10cb.tar.lz android_bootable_recovery-ea141413c27ec66cb35d7aeb1d44f2b7e41f10cb.tar.xz android_bootable_recovery-ea141413c27ec66cb35d7aeb1d44f2b7e41f10cb.tar.zst android_bootable_recovery-ea141413c27ec66cb35d7aeb1d44f2b7e41f10cb.zip |
Diffstat (limited to 'tests')
-rw-r--r-- | tests/unit/screen_ui_test.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/tests/unit/screen_ui_test.cpp b/tests/unit/screen_ui_test.cpp index 06a98c742..0014e45f1 100644 --- a/tests/unit/screen_ui_test.cpp +++ b/tests/unit/screen_ui_test.cpp @@ -42,26 +42,26 @@ static const std::vector<std::string> ITEMS{ "item1", "item2", "item3", "item4", class MockDrawFunctions : public DrawInterface { void SetColor(UIElement /* element */) const override {} void DrawHighlightBar(int /* x */, int /* y */, int /* width */, - int /* height */) const override {}; + int /* height */) const override {} int DrawHorizontalRule(int /* y */) const override { return 0; - }; + } int DrawTextLine(int /* x */, int /* y */, const std::string& /* line */, bool /* bold */) const override { return 0; - }; - void DrawSurface(GRSurface* /* surface */, int /* sx */, int /* sy */, int /* w */, int /* h */, - int /* dx */, int /* dy */) const override {}; - void DrawFill(int /* x */, int /* y */, int /* w */, int /* h */) const override {}; - void DrawTextIcon(int /* x */, int /* y */, GRSurface* /* surface */) const override {}; + } + void DrawSurface(const GRSurface* /* surface */, int /* sx */, int /* sy */, int /* w */, + int /* h */, int /* dx */, int /* dy */) const override {} + void DrawFill(int /* x */, int /* y */, int /* w */, int /* h */) const override {} + void DrawTextIcon(int /* x */, int /* y */, const GRSurface* /* surface */) const override {} int DrawTextLines(int /* x */, int /* y */, const std::vector<std::string>& /* lines */) const override { return 0; - }; + } int DrawWrappedTextLines(int /* x */, int /* y */, const std::vector<std::string>& /* lines */) const override { return 0; - }; + } }; class ScreenUITest : public testing::Test { |