libsnapshot: tests for public APIs.

Test: libsnapshot_test

Change-Id: I411ae32e77914845ed4037d7e67620598f8218cf
5 files changed