Loading tests/src/com/android/bluetooth/gatt/GattServiceTest.java 0 → 100644 +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); } } Loading
tests/src/com/android/bluetooth/gatt/GattServiceTest.java 0 → 100644 +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); } }