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

Side by Side Diff: tools/chrome_remote_control/chrome_remote_control/android_platform.py

Issue 11187036: Android: start upstreaming some of our perf tests. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Revert adb_commands Created 8 years, 1 month 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
(Empty)
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
3 # found in the LICENSE file.
4
5 import os
6 import sys
7
8 # Get build/android scripts into our path.
9 sys.path.append(
10 os.path.abspath(
11 os.path.join(os.path.dirname(__file__),
12 '../../../build/android')))
13 try:
14 from pylib import surface_stats_collector # pylint: disable=F0401
15 except Exception:
16 surface_stats_collector = None
17
18
19 class AndroidPlatform(object):
20 def __init__(self, adb, window_package, window_activity):
21 super(AndroidPlatform, self).__init__()
22 self._adb = adb
23 self._window_package = window_package
24 self._window_activity = window_activity
25
26 def GetSurfaceCollector(self, trace_tag):
27 return surface_stats_collector.SurfaceStatsCollector(
28 self._adb, self._window_package, self._window_activity, trace_tag)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698