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

Side by Side Diff: tools/android/adb_profile_chrome/ui.py

Issue 310413003: Move adb_profile_chrome under tools/android/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add shebang and exec bit temporarily. Created 6 years, 6 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
OLDNEW
1 # Copyright 2014 The Chromium Authors. All rights reserved. 1 # Copyright 2014 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 select 5 import select
6 import sys 6 import sys
7 7
8 8
9 def PrintMessage(heading, eol='\n'): 9 def PrintMessage(heading, eol='\n'):
10 sys.stdout.write('%s%s' % (heading, eol)) 10 sys.stdout.write('%s%s' % (heading, eol))
11 sys.stdout.flush() 11 sys.stdout.flush()
12 12
13 13
14 def WaitForEnter(timeout): 14 def WaitForEnter(timeout):
15 select.select([sys.stdin], [], [], timeout) 15 select.select([sys.stdin], [], [], timeout)
16 16
17 17
18 def EnableTestMode(): 18 def EnableTestMode():
19 def NoOp(*_, **__): 19 def NoOp(*_, **__):
20 pass 20 pass
21 # pylint: disable=W0601 21 # pylint: disable=W0601
22 global PrintMessage 22 global PrintMessage
23 global WaitForEnter 23 global WaitForEnter
24 PrintMessage = NoOp 24 PrintMessage = NoOp
25 WaitForEnter = NoOp 25 WaitForEnter = NoOp
OLDNEW
« no previous file with comments | « tools/android/adb_profile_chrome/trace_packager_unittest.py ('k') | tools/android/adb_profile_chrome/util.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698