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

Side by Side Diff: build/android/pylib/android_commands.py

Issue 26212003: android: Fix importing pexpect on Mac (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 2 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « build/android/adb_profile_chrome.py ('k') | build/android/pylib/perf/test_runner.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2012 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 """Provides an interface to communicate with the device via the adb command. 5 """Provides an interface to communicate with the device via the adb command.
6 6
7 Assumes adb binary is currently on system path. 7 Assumes adb binary is currently on system path.
8 """ 8 """
9 9
10 import collections 10 import collections
11 import datetime 11 import datetime
12 import logging 12 import logging
13 import os 13 import os
14 import re 14 import re
15 import shlex 15 import shlex
16 import subprocess 16 import subprocess
17 import sys 17 import sys
18 import tempfile 18 import tempfile
19 import time 19 import time
20 20
21 import cmd_helper 21 import cmd_helper
22 import constants 22 import constants
23 import io_stats_parser 23 import io_stats_parser
24 try: 24 try:
25 import pexpect 25 from pylib import pexpect
26 except: 26 except:
27 pexpect = None 27 pexpect = None
28 28
29 sys.path.append(os.path.join( 29 sys.path.append(os.path.join(
30 constants.DIR_SOURCE_ROOT, 'third_party', 'android_testrunner')) 30 constants.DIR_SOURCE_ROOT, 'third_party', 'android_testrunner'))
31 import adb_interface 31 import adb_interface
32 import am_instrument_parser 32 import am_instrument_parser
33 import errors 33 import errors
34 34
35 35
(...skipping 1589 matching lines...) Expand 10 before | Expand all | Expand 10 after
1625 """ 1625 """
1626 def __init__(self, output): 1626 def __init__(self, output):
1627 self._output = output 1627 self._output = output
1628 1628
1629 def write(self, data): 1629 def write(self, data):
1630 data = data.replace('\r\r\n', '\n') 1630 data = data.replace('\r\r\n', '\n')
1631 self._output.write(data) 1631 self._output.write(data)
1632 1632
1633 def flush(self): 1633 def flush(self):
1634 self._output.flush() 1634 self._output.flush()
OLDNEW
« no previous file with comments | « build/android/adb_profile_chrome.py ('k') | build/android/pylib/perf/test_runner.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698