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

Commit 4722251d authored by Guang Zhu's avatar Guang Zhu
Browse files

Removing unused StreamPipe class, also stripping some white spaces

parent 23a4e881
Loading
Loading
Loading
Loading
+14 −39
Original line number Diff line number Diff line
@@ -29,35 +29,10 @@ import android.test.ActivityInstrumentationTestCase2;
import com.android.dumprendertree.TestShellActivity;
import com.android.dumprendertree.TestShellCallback;

import java.io.InputStream;
import java.io.OutputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.PrintStream;

class StreamPipe extends Thread {
    InputStream in;
    OutputStream out;
    
    StreamPipe(InputStream in, OutputStream out) {
        this.in = in;
        this.out = out;
    }
    
    public void run() {
        try {
            byte[] buf = new byte[1024];
            int nofb = this.in.read(buf);
            while (nofb != -1) {
                this.out.write(buf, 0, nofb);
                nofb = this.in.read(buf);
            }          
        } catch (IOException e) {
            e.printStackTrace();
        }
    }
}

public class LoadTestsAutoTest extends ActivityInstrumentationTestCase2<TestShellActivity> {

    private final static String LOGTAG = "LoadTest";