1 2 package com.android.bluetooth.gatt; 3 4 import android.test.AndroidTestCase; 5 import android.test.suitebuilder.annotation.SmallTest; 6 7 import com.android.bluetooth.gatt.GattService; 8 9 /** 10 * Test cases for {@link GattService}. 11 */ 12 public class GattServiceTest extends AndroidTestCase { 13 14 @SmallTest testParseBatchTimestamp()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