Loading tests/DumpRenderTree/src/com/android/dumprendertree/LoadTestsAutoTest.java +14 −39 Original line number Diff line number Diff line Loading @@ -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"; Loading Loading
tests/DumpRenderTree/src/com/android/dumprendertree/LoadTestsAutoTest.java +14 −39 Original line number Diff line number Diff line Loading @@ -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"; Loading