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

Unified Diff: tools/telemetry/telemetry/core/platform/profiler/android_systrace_profiler_unittest.py

Issue 457823004: telemetry: Pass systrace categories properly (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased. Created 6 years, 4 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
« no previous file with comments | « tools/telemetry/telemetry/core/platform/profiler/android_systrace_profiler.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/telemetry/telemetry/core/platform/profiler/android_systrace_profiler_unittest.py
diff --git a/tools/telemetry/telemetry/core/platform/profiler/android_systrace_profiler_unittest.py b/tools/telemetry/telemetry/core/platform/profiler/android_systrace_profiler_unittest.py
index a17b650990d9f7245f4451a1b0a452a1ddf70d22..446c8c73424bf75980da09bfea7097c65ad7e7af 100644
--- a/tools/telemetry/telemetry/core/platform/profiler/android_systrace_profiler_unittest.py
+++ b/tools/telemetry/telemetry/core/platform/profiler/android_systrace_profiler_unittest.py
@@ -23,8 +23,9 @@ class TestAndroidSystraceProfiler(tab_test_case.TabTestCase):
os.path.join(out_dir, 'systrace'),
{})
result = profiler.CollectProfile()[0]
- assert zipfile.is_zipfile(result)
+ self.assertTrue(zipfile.is_zipfile(result))
with zipfile.ZipFile(result) as z:
self.assertEquals(len(z.namelist()), 2)
+ self.assertIn('sched_wakeup', z.open('systrace').read())
finally:
shutil.rmtree(out_dir)
« no previous file with comments | « tools/telemetry/telemetry/core/platform/profiler/android_systrace_profiler.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698