From f6d1b3f125b06fcc4847be3cfb35e8ce21905676 Mon Sep 17 00:00:00 2001 From: Guang Zhu Date: Tue, 26 Apr 2011 16:41:13 -0700 Subject: Make DRT pull data over network command format: adb shell am instrument -w -e class \ com.android.dumprendertree.LoadTestsAutoTest#runPageCyclerTest \ -e suite moz \ -e iteration 1 \ -e forward android-browser-test:80/page_cycler/ \ com.android.dumprendertree/.LayoutTestsAutoRunner Change-Id: Ib4e9db28953f6be155517bb4b139e4477305c2c2 --- .../android/dumprendertree/LoadTestsAutoTest.java | 45 ++++++++++++++++++++-- 1 file changed, 41 insertions(+), 4 deletions(-) (limited to 'tests/DumpRenderTree/src/com/android/dumprendertree/LoadTestsAutoTest.java') diff --git a/tests/DumpRenderTree/src/com/android/dumprendertree/LoadTestsAutoTest.java b/tests/DumpRenderTree/src/com/android/dumprendertree/LoadTestsAutoTest.java index 622fb0e..ee5bb5d 100644 --- a/tests/DumpRenderTree/src/com/android/dumprendertree/LoadTestsAutoTest.java +++ b/tests/DumpRenderTree/src/com/android/dumprendertree/LoadTestsAutoTest.java @@ -16,6 +16,9 @@ package com.android.dumprendertree; +import com.android.dumprendertree.forwarder.AdbUtils; +import com.android.dumprendertree.forwarder.ForwardServer; + import android.app.Instrumentation; import android.content.Context; import android.content.Intent; @@ -34,6 +37,8 @@ import java.io.OutputStream; import java.io.PrintStream; import java.util.concurrent.CountDownLatch; import java.util.concurrent.TimeUnit; +import java.util.regex.Matcher; +import java.util.regex.Pattern; public class LoadTestsAutoTest extends ActivityInstrumentationTestCase2 { @@ -41,13 +46,15 @@ public class LoadTestsAutoTest extends ActivityInstrumentationTestCase2