platform_bootable_recovery/tests
Tao Bao 2201d08f8d minui: Fix a wrong arg in calling GRSurface::Create().
This is a bug introduced while refactoring init_display_surface(), in
[1]. As a result, user of res_create_multi_display_surface(), which is
effectively `charger` right now, crashes due to buffer overrun.

This CL fixes the wrong arg and adds a sanity test for
res_create_multi_display_surface(). The testdata (battery_scale.png) is
copied from system/core/healthd/images/battery_scale.png.

[1] commit 44820ac1e3.

Bug: 119122296
Test: Run recovery_unit_test on marlin.
Test: Build and boot into charger mode on blueline. Verify that
      `charger` no longer crashes.
Change-Id: Ib6d083e1512a9c3c6eb63874d26d22658921d693
2018-11-26 17:06:53 -08:00
..
common tests: Pick up testdata with LOCAL_TEST_DATA. 2018-04-02 14:14:29 -07:00
component Merge "switch to using android-base/file.h instead of android-base/test_utils.h" 2018-11-15 15:59:45 +00:00
manual tests: Move ResourcesTest into component test. 2018-04-16 11:29:06 -07:00
testdata minui: Fix a wrong arg in calling GRSurface::Create(). 2018-11-26 17:06:53 -08:00
unit minui: Fix a wrong arg in calling GRSurface::Create(). 2018-11-26 17:06:53 -08:00
Android.bp Use the non-LTO/PGO hwbinder in recovery_component_test 2018-11-14 11:42:23 -08:00
AndroidTest.xml tests: Pick up testdata with LOCAL_TEST_DATA. 2018-04-02 14:14:29 -07:00