summaryrefslogtreecommitdiffstats
path: root/tests/unit/screen_ui_test.cpp
diff options
context:
space:
mode:
authorandroid-build-team Robot <android-build-team-robot@google.com>2018-11-28 05:10:01 +0100
committerandroid-build-team Robot <android-build-team-robot@google.com>2018-11-28 05:10:01 +0100
commit458529598eb9f34aebb0973a44bb1aafd027f081 (patch)
treea821bca517086da3745acb60070157650925f790 /tests/unit/screen_ui_test.cpp
parentSnap for 5148923 from e4f1dd1063bf1391e2adc440eccc4ba742680d4a to qt-release (diff)
parentMerge "make_f2fs: use -g android by default" am: 4cd38430d7 am: f8c230a072 (diff)
downloadandroid_bootable_recovery-458529598eb9f34aebb0973a44bb1aafd027f081.tar
android_bootable_recovery-458529598eb9f34aebb0973a44bb1aafd027f081.tar.gz
android_bootable_recovery-458529598eb9f34aebb0973a44bb1aafd027f081.tar.bz2
android_bootable_recovery-458529598eb9f34aebb0973a44bb1aafd027f081.tar.lz
android_bootable_recovery-458529598eb9f34aebb0973a44bb1aafd027f081.tar.xz
android_bootable_recovery-458529598eb9f34aebb0973a44bb1aafd027f081.tar.zst
android_bootable_recovery-458529598eb9f34aebb0973a44bb1aafd027f081.zip
Diffstat (limited to 'tests/unit/screen_ui_test.cpp')
-rw-r--r--tests/unit/screen_ui_test.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/unit/screen_ui_test.cpp b/tests/unit/screen_ui_test.cpp
index 09c49977f..61a092551 100644
--- a/tests/unit/screen_ui_test.cpp
+++ b/tests/unit/screen_ui_test.cpp
@@ -231,7 +231,7 @@ TEST_F(ScreenUITest, WearMenuSelectItemsOverflow) {
}
TEST_F(ScreenUITest, GraphicMenuSelection) {
- auto image = GRSurface::Create(50, 50, 50, 1, 50 * 50);
+ auto image = GRSurface::Create(50, 50, 50, 1);
auto header = image->Clone();
std::vector<const GRSurface*> items = {
image.get(),
@@ -258,7 +258,7 @@ TEST_F(ScreenUITest, GraphicMenuSelection) {
}
TEST_F(ScreenUITest, GraphicMenuValidate) {
- auto image = GRSurface::Create(50, 50, 50, 1, 50 * 50);
+ auto image = GRSurface::Create(50, 50, 50, 1);
auto header = image->Clone();
std::vector<const GRSurface*> items = {
image.get(),
@@ -269,7 +269,7 @@ TEST_F(ScreenUITest, GraphicMenuValidate) {
ASSERT_TRUE(GraphicMenu::Validate(200, 200, header.get(), items));
// Menu exceeds the horizontal boundary.
- auto wide_surface = GRSurface::Create(300, 50, 300, 1, 300 * 50);
+ auto wide_surface = GRSurface::Create(300, 50, 300, 1);
ASSERT_FALSE(GraphicMenu::Validate(299, 200, wide_surface.get(), items));
// Menu exceeds the vertical boundary.