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

Commit 4a6f0447 authored by Guang Zhu's avatar Guang Zhu Committed by Android (Google) Code Review
Browse files

Merge "Use port 18000 instead of 8000 for layout tests"

parents d06fa51b e2b9d7f2
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -141,7 +141,7 @@ public class FsUtils {
            } else if (!path.startsWith(HTTP_LOCAL_TESTS_PREFIX)
                    && !path.startsWith(HTTP_MEDIA_TESTS_PREFIX)
                    && !path.startsWith(HTTP_WML_TESTS_PREFIX)) {
                url = "http://127.0.0.1:8000/" + path.substring(HTTP_TESTS_PREFIX.length());
                url = "http://127.0.0.1:18000/" + path.substring(HTTP_TESTS_PREFIX.length());
            } else {
                url = "file://" + path;
            }
+7 −7
Original line number Diff line number Diff line
@@ -26,7 +26,7 @@ import android.util.Log;

public class ForwardService {

    private ForwardServer fs8000, fs8080, fs8443;
    private ForwardServer fs18000, fs8080, fs8443;

    private static ForwardService inst;

@@ -40,7 +40,7 @@ public class ForwardService {
    private ForwardService() {
        int addr = getForwardHostAddr();
        if (addr != -1) {
            fs8000 = new ForwardServer(8000, addr, 8000);
            fs18000 = new ForwardServer(18000, addr, 8000);
            fs8080 = new ForwardServer(8080, addr, 8080);
            fs8443 = new ForwardServer(8443, addr, 8443);
        }
@@ -55,8 +55,8 @@ public class ForwardService {

    public void startForwardService() {
        try {
            if (fs8000 != null)
                fs8000.start();
            if (fs18000 != null)
                fs18000.start();
            if (fs8080 != null)
                fs8080.start();
            if (fs8443 != null)
@@ -68,9 +68,9 @@ public class ForwardService {
    }

    public void stopForwardService() {
        if (fs8000 != null) {
            fs8000.stop();
            fs8000 = null;
        if (fs18000 != null) {
            fs18000.stop();
            fs18000 = null;
        }
        if (fs8080 != null) {
            fs8080.stop();