| OLD | NEW |
| 1 # Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2011 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 | 5 |
| 6 import logging | 6 import logging |
| 7 import os | 7 import os |
| 8 import pexpect | 8 import pexpect |
| 9 import shutil | 9 import shutil |
| 10 import sys | 10 import sys |
| (...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 147 # Whenever we generate a stripped binary, copy to the symbols dir. If we | 147 # Whenever we generate a stripped binary, copy to the symbols dir. If we |
| 148 # aren't stripping a new binary, assume it's there. | 148 # aren't stripping a new binary, assume it's there. |
| 149 if self.symbols_dir: | 149 if self.symbols_dir: |
| 150 if not os.path.exists(self.symbols_dir): | 150 if not os.path.exists(self.symbols_dir): |
| 151 os.makedirs(self.symbols_dir) | 151 os.makedirs(self.symbols_dir) |
| 152 shutil.copy(self.test_suite, self.symbols_dir) | 152 shutil.copy(self.test_suite, self.symbols_dir) |
| 153 strip = os.environ['STRIP'] | 153 strip = os.environ['STRIP'] |
| 154 cmd_helper.RunCmd([strip, self.test_suite, '-o', target_name]) | 154 cmd_helper.RunCmd([strip, self.test_suite, '-o', target_name]) |
| 155 test_binary = '/data/local/' + self.test_suite_basename | 155 test_binary = '/data/local/' + self.test_suite_basename |
| 156 self.adb.PushIfNeeded(target_name, test_binary) | 156 self.adb.PushIfNeeded(target_name, test_binary) |
| 157 |
| 158 if self.test_suite_basename == 'ui_unittests': |
| 159 self.adb.PushIfNeeded(self.test_suite_dirname + '/chrome.pak', |
| 160 '/data/local/tmp/paks/chrome.pak') |
| 161 self.adb.PushIfNeeded(self.test_suite_dirname + '/locales/en-US.pak', |
| 162 '/data/local/tmp/paks/en-US.pak') |
| OLD | NEW |