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

Unified Diff: tools/telemetry/telemetry/core/browser_unittest.py

Issue 176863005: Add is_tracing to browser. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 9 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: tools/telemetry/telemetry/core/browser_unittest.py
diff --git a/tools/telemetry/telemetry/core/browser_unittest.py b/tools/telemetry/telemetry/core/browser_unittest.py
index f1c1b4b5417cdd71e2c0e39c9d847531a8394310..38f061ac3c60a5ae68755423f358e8c0cdd55443 100644
--- a/tools/telemetry/telemetry/core/browser_unittest.py
+++ b/tools/telemetry/telemetry/core/browser_unittest.py
@@ -170,3 +170,13 @@ class BrowserTest(unittest.TestCase):
def testGetSystemTotalMemory(self):
b = self.CreateBrowser()
self.assertTrue(b.memory_stats['SystemTotalPhysicalMemory'] > 0)
+
+ def testIsTracingRunning(self):
+ b = self.CreateBrowser()
+ if not b.supports_tracing:
+ return
+ self.assertFalse(b.is_tracing_running)
+ b.StartTracing()
+ self.assertTrue(b.is_tracing_running)
+ b.StopTracing()
+ self.assertFalse(b.is_tracing_running)
« no previous file with comments | « tools/telemetry/telemetry/core/browser.py ('k') | tools/telemetry/telemetry/core/platform/android_platform_backend.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698