// Path: buruberi-core/src/test/java/is/hello/buruberi/testing/BuruberiTestCase.java
// @RunWith(RobolectricGradleTestRunner.class)
// @Config(constants = BuildConfig.class,
//         sdk = 21,
//         shadows = {
//                 ShadowBluetoothManager.class,
//                 ShadowBluetoothAdapterExt.class,
//                 ShadowBluetoothLeScanner.class,
//                 ShadowBluetoothGatt.class,
//                 ShadowBluetoothDeviceExt.class,
//         })
// public abstract class BuruberiTestCase {
//     protected BuruberiTestCase() {
//         final Context baseContext = RuntimeEnvironment.application.getBaseContext();
//         BuruberiShadows.setUpSystemServices(baseContext);
//     }
// 
//     @Before
//     public void setUp() {
//         ShadowBluetoothAdapterExt shadowBluetoothAdapter = getShadowBluetoothAdapter();
//         shadowBluetoothAdapter.setState(BluetoothAdapter.STATE_ON);
//         shadowBluetoothAdapter.setEnabled(true);
//     }
// 
//     @After
//     public void tearDown() {
//         ShadowBluetoothManager shadowBluetoothManager = getShadowBluetoothManager();
//         shadowBluetoothManager.clearConnectionStates();
//         shadowBluetoothManager.setAdapter(BluetoothAdapter.getDefaultAdapter());
//     }
// 
//     protected Context getContext() {
//         return RuntimeEnvironment.application.getApplicationContext();
//     }
// 
//     protected ShadowBluetoothManager getShadowBluetoothManager() {
//         BluetoothManager bluetoothManager = (BluetoothManager) getContext().getSystemService(Context.BLUETOOTH_SERVICE);
//         return BuruberiShadows.shadowOf(bluetoothManager);
//     }
// 
//     protected ShadowBluetoothAdapterExt getShadowBluetoothAdapter() {
//         return BuruberiShadows.shadowOf(BluetoothAdapter.getDefaultAdapter());
//     }
// }
// 
// Path: buruberi-core/src/main/java/is/hello/buruberi/bluetooth/stacks/util/AdvertisingData.java
// public static final int TYPE_LIST_OF_16_BIT_SERVICE_CLASS_UUIDS = 0x03;


import static org.hamcrest.CoreMatchers.equalTo;
import static org.hamcrest.CoreMatchers.is;
import static org.hamcrest.CoreMatchers.notNullValue;
import static org.junit.Assert.assertThat;
import android.os.Parcel;
import android.os.Parcelable;
import org.hamcrest.BaseMatcher;
import org.hamcrest.Description;
import org.hamcrest.Matcher;
import org.junit.Test;
import java.util.Arrays;
import java.util.Collection;
import java.util.List;
import is.hello.buruberi.testing.BuruberiTestCase;
import static is.hello.buruberi.bluetooth.stacks.util.AdvertisingData.TYPE_LIST_OF_16_BIT_SERVICE_CLASS_UUIDS;
/*
 * Copyright 2015 Hello Inc.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *    http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
*/
package is.hello.buruberi.bluetooth.stacks.util;






public class AdvertisingDataTests extends BuruberiTestCase {
    private static final byte[] TEST_PAYLOAD = {
            // Advertisement contents size
            (byte) 0x03,

            // Advertisement data type
// Path: buruberi-core/src/test/java/is/hello/buruberi/testing/BuruberiTestCase.java
// @RunWith(RobolectricGradleTestRunner.class)
// @Config(constants = BuildConfig.class,
//         sdk = 21,
//         shadows = {
//                 ShadowBluetoothManager.class,
//                 ShadowBluetoothAdapterExt.class,
//                 ShadowBluetoothLeScanner.class,
//                 ShadowBluetoothGatt.class,
//                 ShadowBluetoothDeviceExt.class,
//         })
// public abstract class BuruberiTestCase {
//     protected BuruberiTestCase() {
//         final Context baseContext = RuntimeEnvironment.application.getBaseContext();
//         BuruberiShadows.setUpSystemServices(baseContext);
//     }
// 
//     @Before
//     public void setUp() {
//         ShadowBluetoothAdapterExt shadowBluetoothAdapter = getShadowBluetoothAdapter();
//         shadowBluetoothAdapter.setState(BluetoothAdapter.STATE_ON);
//         shadowBluetoothAdapter.setEnabled(true);
//     }
// 
//     @After
//     public void tearDown() {
//         ShadowBluetoothManager shadowBluetoothManager = getShadowBluetoothManager();
//         shadowBluetoothManager.clearConnectionStates();
//         shadowBluetoothManager.setAdapter(BluetoothAdapter.getDefaultAdapter());
//     }
// 
//     protected Context getContext() {
//         return RuntimeEnvironment.application.getApplicationContext();
//     }
// 
//     protected ShadowBluetoothManager getShadowBluetoothManager() {
//         BluetoothManager bluetoothManager = (BluetoothManager) getContext().getSystemService(Context.BLUETOOTH_SERVICE);
//         return BuruberiShadows.shadowOf(bluetoothManager);
//     }
// 
//     protected ShadowBluetoothAdapterExt getShadowBluetoothAdapter() {
//         return BuruberiShadows.shadowOf(BluetoothAdapter.getDefaultAdapter());
//     }
// }
// 
// Path: buruberi-core/src/main/java/is/hello/buruberi/bluetooth/stacks/util/AdvertisingData.java
// public static final int TYPE_LIST_OF_16_BIT_SERVICE_CLASS_UUIDS = 0x03;


// Path: buruberi-core/src/test/java/is/hello/buruberi/bluetooth/stacks/util/AdvertisingDataTests.java
import static org.hamcrest.CoreMatchers.equalTo;
import static org.hamcrest.CoreMatchers.is;
import static org.hamcrest.CoreMatchers.notNullValue;
import static org.junit.Assert.assertThat;
import android.os.Parcel;
import android.os.Parcelable;
import org.hamcrest.BaseMatcher;
import org.hamcrest.Description;
import org.hamcrest.Matcher;
import org.junit.Test;
import java.util.Arrays;
import java.util.Collection;
import java.util.List;
import is.hello.buruberi.testing.BuruberiTestCase;
import static is.hello.buruberi.bluetooth.stacks.util.AdvertisingData.TYPE_LIST_OF_16_BIT_SERVICE_CLASS_UUIDS;

/*
 * Copyright 2015 Hello Inc.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *    http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
*/
package is.hello.buruberi.bluetooth.stacks.util;






public class AdvertisingDataTests extends BuruberiTestCase {
    private static final byte[] TEST_PAYLOAD = {
            // Advertisement contents size
            (byte) 0x03,

            // Advertisement data type
            (byte) TYPE_LIST_OF_16_BIT_SERVICE_CLASS_UUIDS,