1 2package com.android.bluetooth.gatt; 3 4import android.test.AndroidTestCase; 5import android.test.suitebuilder.annotation.SmallTest; 6 7import com.android.bluetooth.gatt.GattService; 8 9/** 10 * Test cases for {@link GattService}. 11 */ 12public class GattServiceTest extends AndroidTestCase { 13 14 @SmallTest 15 public void testParseBatchTimestamp() { 16 GattService service = new GattService(); 17 long timestampNanos = service.parseTimestampNanos(new byte[] { 18 -54, 7 }); 19 assertEquals(99700000000L, timestampNanos); 20 } 21 22} 23