diff options
author | skyostil@chromium.org <skyostil@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-06-12 19:52:32 +0000 |
---|---|---|
committer | skyostil@chromium.org <skyostil@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-06-12 19:52:32 +0000 |
commit | 5d42aee40bbf4edff392a5ea6aa9e5334a35d030 (patch) | |
tree | 26126d388b9baaa3518fa67e357aaf546a0d53f1 /tools/android/adb_profile_chrome/controllers_unittest.py | |
parent | a939586048b9a634d05feadb88d68efd98ecdca4 (diff) | |
download | chromium_src-5d42aee40bbf4edff392a5ea6aa9e5334a35d030.zip chromium_src-5d42aee40bbf4edff392a5ea6aa9e5334a35d030.tar.gz chromium_src-5d42aee40bbf4edff392a5ea6aa9e5334a35d030.tar.bz2 |
Move adb_profile_chrome under tools/android/
Move adb_profile_chrome from build/android/ to tools/android/ to make
its purpose clearer.
BUG=375754
TEST=tools/android/adb_profile_chrome/run_tests
Review URL: https://codereview.chromium.org/310413003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@276779 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'tools/android/adb_profile_chrome/controllers_unittest.py')
-rw-r--r-- | tools/android/adb_profile_chrome/controllers_unittest.py | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/tools/android/adb_profile_chrome/controllers_unittest.py b/tools/android/adb_profile_chrome/controllers_unittest.py new file mode 100644 index 0000000..6702c38 --- /dev/null +++ b/tools/android/adb_profile_chrome/controllers_unittest.py @@ -0,0 +1,23 @@ +# Copyright 2014 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 unittest + +from adb_profile_chrome import profiler + +from pylib import android_commands +from pylib.device import device_utils + + +class BaseControllerTest(unittest.TestCase): + def setUp(self): + devices = android_commands.GetAttachedDevices() + self.browser = 'stable' + self.package_info = profiler.GetSupportedBrowsers()[self.browser] + self.device = device_utils.DeviceUtils(devices[0]) + + adb = android_commands.AndroidCommands(devices[0]) + adb.StartActivity(self.package_info.package, + self.package_info.activity, + wait_for_completion=True) |