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

Commit c94cd522 authored by Ajay Panicker's avatar Ajay Panicker Committed by android-build-merger
Browse files

Merge "Restore GATT unit test"

am: 3382edb1

Change-Id: Id3c8c60627643f889b2447d2e7ee3b5cdd074a87
parents c15e54a5 3382edb1
Loading
Loading
Loading
Loading
+22 −0
Original line number Diff line number Diff line

package com.android.bluetooth.gatt;

import android.test.AndroidTestCase;
import android.test.suitebuilder.annotation.SmallTest;

import com.android.bluetooth.gatt.GattService;

/**
 * Test cases for {@link GattService}.
 */
public class GattServiceTest extends AndroidTestCase {

    @SmallTest
    public void testParseBatchTimestamp() {
        GattService service = new GattService();
        long timestampNanos = service.parseTimestampNanos(new byte[] {
                -54, 7 });
        assertEquals(99700000000L, timestampNanos);
    }

}