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

Unified Diff: build/android/test_result.py

Issue 10310046: Detect crashes while running native tests in APK. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Addressed comments and rebase Created 8 years, 7 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
« no previous file with comments | « build/android/test_package.py ('k') | testing/android/native_test_launcher.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/android/test_result.py
diff --git a/build/android/test_result.py b/build/android/test_result.py
index dfafca7007fd84c71023419b5bff98c1bafff847..7d9b21600c44cb1a34f49b7ceb7fa561d07674cc 100644
--- a/build/android/test_result.py
+++ b/build/android/test_result.py
@@ -61,10 +61,12 @@ class TestResults(object):
self.overall_fail = False
@staticmethod
- def FromOkAndFailed(ok, failed, timed_out, overall_fail):
+ def FromRun(ok=None, failed=None, crashed=None, timed_out=False,
+ overall_fail=False):
ret = TestResults()
- ret.ok = ok
- ret.failed = failed
+ ret.ok = ok or []
+ ret.failed = failed or []
+ ret.crashed = crashed or []
ret.timed_out = timed_out
ret.overall_fail = overall_fail
return ret
« no previous file with comments | « build/android/test_package.py ('k') | testing/android/native_test_launcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698