summaryrefslogtreecommitdiffstats
path: root/tests/unit/minui_test.cpp
diff options
context:
space:
mode:
authorTao Bao <tbao@google.com>2018-11-01 04:28:35 +0100
committerandroid-build-merger <android-build-merger@google.com>2018-11-01 04:28:35 +0100
commit6e0ce63c4b14dfc976110ba3ed4a2cd17365544a (patch)
treeb85763984bf5181303d40af60c21dc1dae80a812 /tests/unit/minui_test.cpp
parentMerge "recovery: Fix mounting /system with dynamic partitions." (diff)
parentMerge "minui: Add a protected GRSurface ctor." (diff)
downloadandroid_bootable_recovery-6e0ce63c4b14dfc976110ba3ed4a2cd17365544a.tar
android_bootable_recovery-6e0ce63c4b14dfc976110ba3ed4a2cd17365544a.tar.gz
android_bootable_recovery-6e0ce63c4b14dfc976110ba3ed4a2cd17365544a.tar.bz2
android_bootable_recovery-6e0ce63c4b14dfc976110ba3ed4a2cd17365544a.tar.lz
android_bootable_recovery-6e0ce63c4b14dfc976110ba3ed4a2cd17365544a.tar.xz
android_bootable_recovery-6e0ce63c4b14dfc976110ba3ed4a2cd17365544a.tar.zst
android_bootable_recovery-6e0ce63c4b14dfc976110ba3ed4a2cd17365544a.zip
Diffstat (limited to 'tests/unit/minui_test.cpp')
-rw-r--r--tests/unit/minui_test.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/unit/minui_test.cpp b/tests/unit/minui_test.cpp
index cad6a3d79..b188b5992 100644
--- a/tests/unit/minui_test.cpp
+++ b/tests/unit/minui_test.cpp
@@ -25,7 +25,7 @@
TEST(GRSurfaceTest, Create_aligned) {
static constexpr size_t kSurfaceDataAlignment = 8;
for (size_t data_size = 100; data_size < 128; data_size++) {
- std::unique_ptr<GRSurface> surface(GRSurface::Create(data_size));
+ auto surface = GRSurface::Create(10, 1, 10, 1, data_size);
ASSERT_TRUE(surface);
ASSERT_EQ(0, reinterpret_cast<uintptr_t>(surface->data()) % kSurfaceDataAlignment);
}