History log of /system/core/libsync/tests/sync_test.cpp
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
41129a2526d4a8bc3510bc65c0e39e1e9d4700d2 14-Feb-2017 Jesse Hall <jessehall@google.com> sync: rename sync/sync.h to android/sync.h

Leave a temporary symlink from the old name to avoid having to change
all dependencies simultaneously.

Bug: 1901466
Test: m
Change-Id: Id210f0091457e52e1a6e048d241a723bdbe8779b
/system/core/libsync/tests/sync_test.cpp
836661616fcf4bc023b192d1c320f0727a9dfef9 13-Feb-2017 Jesse Hall <jessehall@google.com> sync: implement sync_file_info

Also modifies sync-unit-test to use sync_file_info instead of the
deprecated sync_fence_info, but check that they match in several tests.

Bug: 35138793
Test: sync-unit-tests on bullhead
Change-Id: Ic672d1c89798435a8b71469500e82c770a66bf4d
/system/core/libsync/tests/sync_test.cpp
380b2f4fea745f4db30e5cb2ac7f5a638b33c652 29-Jan-2017 mtezych <mte.zych@gmail.com> libsync: Replace inserting tuple into unordered_map in favour of pair.

Inserting tuple into unordered_map relies on non standard libc++ extension:
http://stackoverflow.com/a/21313229
This change removes this dependency.

Test: sync-unit-tests (on hikey with SW_SYNC_USER built into kernel)
/system/core/libsync/tests/sync_test.cpp
801492b8a66a8f08f99667a4123ce07aa4c0a4f7 06-Dec-2016 Gustavo Padovan <gustavo.padovan@collabora.com> libsync: tests: redefine PollOnDestroyedTimeline()

On mainline if the sw_sync timeline is destroyed the fences doesn't not
signal or error. So change the test to check if the fence is still there
by polling the fence with timeout zero and asserting if it is not
signalled.

Test: Sync unit tests still passes.
Change-Id: Icb8e629018eef35074ae91d0f29ed1f12e90492b
/system/core/libsync/tests/sync_test.cpp
e4682802cbeeefe8e870e5b7b110515659a6a14f 06-Dec-2016 Gustavo Padovan <gustavo.padovan@collabora.com> libsync: tests: remove WaitOnDestroyedTimeline test

The mainline Sync File implementation doesn't have wait ioctl anymore.
Only poll is supported now, and we already have a test for that.

Test: Sync unit tests still passes.
Change-Id: Iadde7b2173024af9b8d20316e640297cf214c645
/system/core/libsync/tests/sync_test.cpp
a7c7bce252a6bce1539e9caa84420de3698029e7 05-Nov-2015 Tom Cherry <tomcherry@google.com> Fix isValid() condition for libsync tests

Upstream modifications in K3.12 to the sw_sync driver set O_CLOEXEC on
the fd's returned by the SW_SYNC_IOC_CREATE_FENCE ioctl, therefore we
check the return of fcntl() for a non-negative value instead of strictly 0.

Change-Id: If4c82750fcc0aa3a57f243fa2a94691e3150e4a4
/system/core/libsync/tests/sync_test.cpp
9e55879f43b685d07c3c499c21cfee9a2fcd8f33 06-Jun-2014 Riley Andrews <riandrews@google.com> Add gtest conformance tests for libsync. Not complete yet, but substantially more comprehensive than the interactive test that was there before.
Change-Id: I9019b0a8babbc91f78aa850e0e288bbf05f93500
/system/core/libsync/tests/sync_test.cpp