Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(938)

Side by Side Diff: platform_tools/android/apps/visualbench/src/main/java/com/skia/VisualBenchTestActivity.java

Issue 1302103002: VisualBenchTest: Write JSON output (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Add comment Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « platform_tools/android/apps/robotium.cfg ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright 2015 Google Inc. 2 * Copyright 2015 Google Inc.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license that can be 4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file. 5 * found in the LICENSE file.
6 */ 6 */
7 7
8 package com.skia; 8 package com.skia;
9 9
10 import android.app.Instrumentation; 10 import android.app.Instrumentation;
(...skipping 11 matching lines...) Expand all
22 22
23 protected void setUp() throws Exception { 23 protected void setUp() throws Exception {
24 super.setUp(); 24 super.setUp();
25 mInstrumentation = getInstrumentation(); 25 mInstrumentation = getInstrumentation();
26 } 26 }
27 27
28 public void testVisualBench() throws InterruptedException { 28 public void testVisualBench() throws InterruptedException {
29 String pkg = getInstrumentation().getTargetContext().getPackageName(); 29 String pkg = getInstrumentation().getTargetContext().getPackageName();
30 Intent intent = new Intent(getInstrumentation().getTargetContext(), 30 Intent intent = new Intent(getInstrumentation().getTargetContext(),
31 VisualBenchActivity.class); 31 VisualBenchActivity.class);
32 intent.putExtra("cmdLineFlags", ""); 32 intent.putExtra("cmdLineFlags", "--outResultsFile /sdcard/skia_results/v isualbench.json");
33 mActivity = launchActivityWithIntent(pkg, VisualBenchActivity.class, int ent); 33 mActivity = launchActivityWithIntent(pkg, VisualBenchActivity.class, int ent);
34 34
35 assertNotNull("mActivity is null", mActivity); 35 assertNotNull("mActivity is null", mActivity);
36 Thread.sleep(5000); 36 Thread.sleep(5000);
37 while (!mActivity.isDestroyed()) { 37 while (!mActivity.isDestroyed()) {
38 Log.d("skiatest", "Waiting for subprocess to finish."); 38 Log.d("skiatest", "Waiting for subprocess to finish.");
39 Thread.sleep(1000); 39 Thread.sleep(1000);
40 } 40 }
41 } 41 }
42 } 42 }
OLDNEW
« no previous file with comments | « platform_tools/android/apps/robotium.cfg ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698