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

Commit 11f52456 authored by Hyundo Moon's avatar Hyundo Moon
Browse files

Enable mapclient profile when running test

Below two tests are enabled by this change.

Bug: 237467631
Test: atest MapClientStateMachineTest
      atest MapClientTest
Change-Id: I4fc321b77a2909edfdf71b26f5fd5793aa45464c
parent c339f34b
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -29,11 +29,14 @@
        <option name="run-command" value="cmd bluetooth_manager disable" />
        <option name="run-command" value="setprop bluetooth.profile.hfp.hf.enabled true" />
        <option name="run-command" value="setprop bluetooth.profile.pbap.client.enabled true" />
        <option name="run-command" value="setprop bluetooth.profile.map.client.enabled true" />
        <option name="teardown-command" value="cmd bluetooth_manager enable" />
        <option name="teardown-command" value="settings put global ble_scan_always_enabled 1" />
        <option name="teardown-command" value="setprop bluetooth.profile.hfp.hf.enabled false" />
        <option name="teardown-command"
                value="setprop bluetooth.profile.pbap.client.enabled false" />
        <option name="teardown-command"
                value="setprop bluetooth.profile.map.client.enabled false" />
    </target_preparer>
    <target_preparer class="com.android.tradefed.targetprep.FolderSaver">
        <option name="device-path" value="/data/vendor/ssrdump" />
+3 −0
Original line number Diff line number Diff line
@@ -29,10 +29,13 @@
        <option name="run-command" value="cmd bluetooth_manager disable" />
        <option name="run-command" value="setprop bluetooth.profile.hfp.hf.enabled true" />
        <option name="run-command" value="setprop bluetooth.profile.pbap.client.enabled true" />
        <option name="run-command" value="setprop bluetooth.profile.map.client.enabled true" />
        <option name="teardown-command" value="cmd bluetooth_manager enable" />
        <option name="teardown-command" value="settings put global ble_scan_always_enabled 1" />
        <option name="teardown-command"
                value="setprop bluetooth.profile.pbap.client.enabled false" />
        <option name="teardown-command"
                value="setprop bluetooth.profile.map.client.enabled false" />
    </target_preparer>
    <target_preparer class="com.android.tradefed.targetprep.FolderSaver">
        <option name="device-path" value="/data/vendor/ssrdump" />
+27 −0
Original line number Diff line number Diff line
@@ -93,4 +93,31 @@ public class BmessageTest {
        Bmessage message = BmessageParser.createBmessage(NEGATIVE_LENGTH_MESSAGE);
        Assert.assertNull(message);
    }

    @Test
    public void setCharset() {
        Bmessage message = new Bmessage();

        message.setCharset("UTF-8");

        Assert.assertEquals(message.getCharset(), "UTF-8");
    }

    @Test
    public void setEncoding() {
        Bmessage message = new Bmessage();

        message.setEncoding("test_encoding");

        Assert.assertEquals(message.getEncoding(), "test_encoding");
    }

    @Test
    public void setStatus() {
        Bmessage message = new Bmessage();

        message.setStatus(Bmessage.Status.READ);

        Assert.assertEquals(message.getStatus(), Bmessage.Status.READ);
    }
}