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

Commit 3f083009 authored by Felipe Leme's avatar Felipe Leme
Browse files

Removed temporary method from HsumBootUserInitializerDesignateMainUserOnBootTest.

Also renamed some CFG methods so lines using them fit 100 chars.

Bug: 402486365
Test: atest FrameworksMockingServicesTests:HsumBootUserInitializerDesignateMainUserOnBootTest FrameworksMockingServicesTests:HsumBootUserInitializerTest
Flag: TEST_ONLY

Change-Id: I866d20b9356976e922168e41968a1a8dd56189f8
parent 8c0b45ad
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -132,7 +132,7 @@ abstract class AbstractHsumBootUserInitializerConstructorHelpersTestCase {
        return value;
    }

    protected static boolean CFG_DESIGNATE_MAIN(boolean value) {
    protected static boolean CFG_DESIGNATE(boolean value) {
        return value;
    }

@@ -140,7 +140,8 @@ abstract class AbstractHsumBootUserInitializerConstructorHelpersTestCase {
        return value;
    }

    protected static boolean CFG_CREATE_INITIAL(boolean value) {
    // NOTE: called CREAT on purpose as lines fit. After all, there's a creat() method on UNIX...
    protected static boolean CFG_CREAT_INITIAL(boolean value) {
        return value;
    }

+2 −2
Original line number Diff line number Diff line
@@ -37,8 +37,8 @@ public final class HsumBootUserInitializerCreateInitialUserOnBootTest
    @Parameters(name = "{index}: cfgCreateIU={0},result={1}")
    public static Collection<Object[]> junitParametersPassedToConstructor() {
        return Arrays.asList(new Object[][] {
            { CFG_CREATE_INITIAL(false), RESULT(false) },
            { CFG_CREATE_INITIAL(true), RESULT(true) }
            { CFG_CREAT_INITIAL(false), RESULT(false) },
            { CFG_CREAT_INITIAL(true), RESULT(true) }
        });
    }

+16 −363

File changed.

Preview size limit exceeded, changes collapsed.

+0 −40

File changed.

Preview size limit exceeded, changes collapsed.