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

Unified Diff: systrace/profile_chrome/agents_unittest.py

Issue 2295913002: Enable some profile_chrome unit tests on Trybots (Closed) Base URL: https://chromium.googlesource.com/external/github.com/catapult-project/catapult.git@master
Patch Set: Disable DDMS test because it is flaky Created 4 years, 3 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: systrace/profile_chrome/agents_unittest.py
diff --git a/systrace/profile_chrome/agents_unittest.py b/systrace/profile_chrome/agents_unittest.py
index 527162cfcf9dab8b3f0e9a46fba65a81f97dfde0..478d229457be11a329a84dc620f0c113da4559f7 100644
--- a/systrace/profile_chrome/agents_unittest.py
+++ b/systrace/profile_chrome/agents_unittest.py
@@ -5,9 +5,9 @@
import unittest
from profile_chrome import profiler
+from profile_chrome import util
from devil.android import device_utils
-from devil.android.sdk import intent
class BaseAgentTest(unittest.TestCase):
@@ -17,8 +17,6 @@ class BaseAgentTest(unittest.TestCase):
self.package_info = profiler.GetSupportedBrowsers()[self.browser]
self.device = devices[0]
- self.device.ForceStop(self.package_info.package)
- self.device.StartActivity(
- intent.Intent(activity=self.package_info.activity,
- package=self.package_info.package),
- blocking=True)
+ curr_browser = util.GetChromeProcessID(self.device, self.package_info)
+ if curr_browser == None:
+ util.StartBrowser(self.device, self.package_info)

Powered by Google App Engine
This is Rietveld 408576698