| 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)
|
|
|