Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9e0bfd82 authored by AI test gen's avatar AI test gen Committed by Zhuoyao Zhang
Browse files

Add test for siftUp behavior in MessageHeap add method

Adds a focused unit test to verify that when a new message with the smallest 'when' value is added to the heap, it is correctly moved to the top.

This explicitly validates the behavior of the private `siftUp` method as it is used by the public `add` method, ensuring the heap property is maintained upon insertion.


Please help fill out the survey for feedback: https://docs.google.com/forms/d/e/1FAIpQLSeKFKpHImCAqZIa_OR801cw72HQUreM2oGM25C3mKKT2tBFnw/viewform?usp=pp_url&entry.1586624956=ag/35397295

Original Change: ag/35088928 (Note tests are based on the original CL but may add coverage beyond the specific changes to improve overall code health)

Test: ATP tests passed http://go/forrest-run/L39500030017397747
Bug: 431235865
Flag: TEST_ONLY

Change-Id: Ia09ac28c64cc56face55adb96890e7626765e46f
parent 06dac6d4
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment