| OLD | NEW |
| 1 # Copyright 2015 The Chromium Authors. All rights reserved. | 1 # Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 import collections | 5 import collections |
| 6 import copy | 6 import copy |
| 7 import logging | 7 import logging |
| 8 import os | 8 import os |
| 9 import pickle | 9 import pickle |
| 10 import re | 10 import re |
| (...skipping 368 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 379 constants.GetOutDirectory(), constants.SDK_BUILD_APKS_DIR, | 379 constants.GetOutDirectory(), constants.SDK_BUILD_APKS_DIR, |
| 380 'OnDeviceInstrumentationDriver.apk') | 380 'OnDeviceInstrumentationDriver.apk') |
| 381 if os.path.exists(self._driver_apk): | 381 if os.path.exists(self._driver_apk): |
| 382 driver_apk = apk_helper.ApkHelper(self._driver_apk) | 382 driver_apk = apk_helper.ApkHelper(self._driver_apk) |
| 383 self._driver_package = driver_apk.GetPackageName() | 383 self._driver_package = driver_apk.GetPackageName() |
| 384 self._driver_name = driver_apk.GetInstrumentationName() | 384 self._driver_name = driver_apk.GetInstrumentationName() |
| 385 else: | 385 else: |
| 386 self._driver_apk = None | 386 self._driver_apk = None |
| 387 | 387 |
| 388 def _initializeTestControlAttributes(self, args): | 388 def _initializeTestControlAttributes(self, args): |
| 389 self._screenshot_dir = args.screenshot_dir | |
| 390 self._timeout_scale = args.timeout_scale or 1 | 389 self._timeout_scale = args.timeout_scale or 1 |
| 391 | 390 |
| 392 @property | 391 @property |
| 393 def additional_apks(self): | 392 def additional_apks(self): |
| 394 return self._additional_apks | 393 return self._additional_apks |
| 395 | 394 |
| 396 @property | 395 @property |
| 397 def apk_under_test(self): | 396 def apk_under_test(self): |
| 398 return self._apk_under_test | 397 return self._apk_under_test |
| 399 | 398 |
| (...skipping 15 matching lines...) Expand all Loading... |
| 415 | 414 |
| 416 @property | 415 @property |
| 417 def driver_name(self): | 416 def driver_name(self): |
| 418 return self._driver_name | 417 return self._driver_name |
| 419 | 418 |
| 420 @property | 419 @property |
| 421 def package_info(self): | 420 def package_info(self): |
| 422 return self._package_info | 421 return self._package_info |
| 423 | 422 |
| 424 @property | 423 @property |
| 425 def screenshot_dir(self): | |
| 426 return self._screenshot_dir | |
| 427 | |
| 428 @property | |
| 429 def suite(self): | 424 def suite(self): |
| 430 return self._suite | 425 return self._suite |
| 431 | 426 |
| 432 @property | 427 @property |
| 433 def test_apk(self): | 428 def test_apk(self): |
| 434 return self._test_apk | 429 return self._test_apk |
| 435 | 430 |
| 436 @property | 431 @property |
| 437 def test_apk_incremental_install_script(self): | 432 def test_apk_incremental_install_script(self): |
| 438 return self._test_apk_incremental_install_script | 433 return self._test_apk_incremental_install_script |
| (...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 661 def GenerateTestResults( | 656 def GenerateTestResults( |
| 662 result_code, result_bundle, statuses, start_ms, duration_ms): | 657 result_code, result_bundle, statuses, start_ms, duration_ms): |
| 663 return GenerateTestResults(result_code, result_bundle, statuses, | 658 return GenerateTestResults(result_code, result_bundle, statuses, |
| 664 start_ms, duration_ms) | 659 start_ms, duration_ms) |
| 665 | 660 |
| 666 #override | 661 #override |
| 667 def TearDown(self): | 662 def TearDown(self): |
| 668 if self._isolate_delegate: | 663 if self._isolate_delegate: |
| 669 self._isolate_delegate.Clear() | 664 self._isolate_delegate.Clear() |
| 670 | 665 |
| OLD | NEW |