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

Unified Diff: testing/android/appurify_support/java/src/org/chromium/test/support/ResultsBundleGenerator.java

Issue 1034053002: [Android] Add an out-of-app instrumentation driver APK. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: cjhopman comment Created 5 years, 8 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 side-by-side diff with in-line comments
Download patch
Index: testing/android/appurify_support/java/src/org/chromium/test/support/ResultsBundleGenerator.java
diff --git a/testing/android/appurify_support/java/src/org/chromium/test/support/ResultsBundleGenerator.java b/testing/android/appurify_support/java/src/org/chromium/test/support/ResultsBundleGenerator.java
new file mode 100644
index 0000000000000000000000000000000000000000..c9588d90d4ce9f40fea0c5ccde566306d13edf48
--- /dev/null
+++ b/testing/android/appurify_support/java/src/org/chromium/test/support/ResultsBundleGenerator.java
@@ -0,0 +1,30 @@
+// Copyright 2015 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+package org.chromium.test.support;
+
+import android.os.Bundle;
+
+import java.util.Map;
+
+/**
+ * Creates a results Bundle.
+ */
+public interface ResultsBundleGenerator {
+
+ /** Indicates the state of a test.
+ */
+ static enum TestResult {
+ PASSED, FAILED, ERROR, UNKNOWN
+ }
+
+ /** Creates a bundle of test results from the provided raw results.
+
+ Note: actual bundle content and format may vary.
+
+ @param rawResults A map between test names and test results.
+ */
+ Bundle generate(Map<String, TestResult> rawResults);
+}
+

Powered by Google App Engine
This is Rietveld 408576698