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

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

Merge "Restore GATT unit test" am: 5f552c51 am: 3ed78fc5

am: 5a7efa41

Change-Id: I058167e0f505c832f194f4dc2dc575676e749913
parents 602007cf 5a7efa41
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);
    }

}