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

Unified Diff: build/android/pylib/base/test_dispatcher_unittest.py

Issue 235943002: [Android] Fix UIAutomator, Linker, and downstream tests. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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
« no previous file with comments | « no previous file | build/android/pylib/forwarder.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/android/pylib/base/test_dispatcher_unittest.py
diff --git a/build/android/pylib/base/test_dispatcher_unittest.py b/build/android/pylib/base/test_dispatcher_unittest.py
index 1409b5bbc8cc04da526456ddd39ba670c7a371be..1206a93cee1394618115ebf014da3ce5e1bc0584 100644
--- a/build/android/pylib/base/test_dispatcher_unittest.py
+++ b/build/android/pylib/base/test_dispatcher_unittest.py
@@ -30,7 +30,7 @@ class TestException(Exception):
class MockRunner(object):
"""A mock TestRunner."""
def __init__(self, device='0', shard_index=0):
- self.device = device
+ self.device_serial = device
self.shard_index = shard_index
self.setups = 0
self.teardowns = 0
@@ -133,7 +133,7 @@ class TestThreadGroupFunctions(unittest.TestCase):
runners = test_dispatcher._CreateRunners(MockRunner, ['0', '1'])
for runner in runners:
self.assertEqual(runner.setups, 1)
- self.assertEqual(set([r.device for r in runners]),
+ self.assertEqual(set([r.device_serial for r in runners]),
set(['0', '1']))
self.assertEqual(set([r.shard_index for r in runners]),
set([0, 1]))
« no previous file with comments | « no previous file | build/android/pylib/forwarder.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698