summaryrefslogtreecommitdiffstats
path: root/tests/unit/minui_test.cpp
diff options
context:
space:
mode:
authorTao Bao <tbao@google.com>2018-10-31 07:34:50 +0100
committerTao Bao <tbao@google.com>2018-10-31 19:19:28 +0100
commit44820ac1e31ffa029ab5baa71238a11b6db3e6cc (patch)
treee1060ff8e93e1e868558b2d0400c400191571204 /tests/unit/minui_test.cpp
parentMerge "Add description for the new translation" (diff)
downloadandroid_bootable_recovery-44820ac1e31ffa029ab5baa71238a11b6db3e6cc.tar
android_bootable_recovery-44820ac1e31ffa029ab5baa71238a11b6db3e6cc.tar.gz
android_bootable_recovery-44820ac1e31ffa029ab5baa71238a11b6db3e6cc.tar.bz2
android_bootable_recovery-44820ac1e31ffa029ab5baa71238a11b6db3e6cc.tar.lz
android_bootable_recovery-44820ac1e31ffa029ab5baa71238a11b6db3e6cc.tar.xz
android_bootable_recovery-44820ac1e31ffa029ab5baa71238a11b6db3e6cc.tar.zst
android_bootable_recovery-44820ac1e31ffa029ab5baa71238a11b6db3e6cc.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);
}