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

Unified 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, 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 side-by-side diff with in-line comments
Download patch
Index: tools/chrome_remote_control/chrome_remote_control/android_platform.py
diff --git a/tools/chrome_remote_control/chrome_remote_control/android_platform.py b/tools/chrome_remote_control/chrome_remote_control/android_platform.py
new file mode 100644
index 0000000000000000000000000000000000000000..6e544d72b1c3d0a4bc124cbf5ecbc0cbac40b8fe
--- /dev/null
+++ b/tools/chrome_remote_control/chrome_remote_control/android_platform.py
@@ -0,0 +1,28 @@
+# Copyright (c) 2012 The Chromium Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+import os
+import sys
+
+# Get build/android scripts into our path.
+sys.path.append(
+ os.path.abspath(
+ os.path.join(os.path.dirname(__file__),
+ '../../../build/android')))
+try:
+ from pylib import surface_stats_collector # pylint: disable=F0401
+except Exception:
+ surface_stats_collector = None
+
+
+class AndroidPlatform(object):
+ def __init__(self, adb, window_package, window_activity):
+ super(AndroidPlatform, self).__init__()
+ self._adb = adb
+ self._window_package = window_package
+ self._window_activity = window_activity
+
+ def GetSurfaceCollector(self, trace_tag):
+ return surface_stats_collector.SurfaceStatsCollector(
+ self._adb, self._window_package, self._window_activity, trace_tag)

Powered by Google App Engine
This is Rietveld 408576698