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

Unified Diff: systrace/profile_chrome/profiler_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/profiler_unittest.py
diff --git a/systrace/profile_chrome/profiler_unittest.py b/systrace/profile_chrome/profiler_unittest.py
index cffcf5ff3254ab76cf2924ed49342f5c3fdea655..09568f6573fa5355754a20d0b521a23d0b8d344d 100644
--- a/systrace/profile_chrome/profiler_unittest.py
+++ b/systrace/profile_chrome/profiler_unittest.py
@@ -9,6 +9,7 @@ import zipfile
from profile_chrome import profiler
from profile_chrome import ui
+from systrace import decorators
from systrace import trace_result
@@ -56,6 +57,7 @@ class ProfilerTest(unittest.TestCase):
def setUp(self):
ui.EnableTestMode()
+ @decorators.ClientOnlyTest
def testCaptureBasicProfile(self):
agent = FakeAgent()
result = profiler.CaptureProfile(None, [agent], 1)
@@ -68,6 +70,7 @@ class ProfilerTest(unittest.TestCase):
if os.path.exists(result):
os.remove(result)
+ @decorators.ClientOnlyTest
def testCaptureJsonProfile(self):
agent = FakeAgent()
result = profiler.CaptureProfile(None, [agent], 1, write_json=True)
@@ -80,6 +83,7 @@ class ProfilerTest(unittest.TestCase):
if os.path.exists(result):
os.remove(result)
+ @decorators.ClientOnlyTest
def testCaptureMultipleProfiles(self):
agents = [FakeAgent('c1'), FakeAgent('c2')]
result = profiler.CaptureProfile(None, agents, 1, write_json=True)

Powered by Google App Engine
This is Rietveld 408576698