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

Unified Diff: telemetry/telemetry/internal/platform/tracing_agent/cpu_tracing_agent_unittest.py

Issue 2453683004: Disable the CPU tracing agent on Windows (Closed)
Patch Set: Disable tests on Windows also Created 4 years, 1 month 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 | « telemetry/telemetry/internal/platform/tracing_agent/cpu_tracing_agent.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: telemetry/telemetry/internal/platform/tracing_agent/cpu_tracing_agent_unittest.py
diff --git a/telemetry/telemetry/internal/platform/tracing_agent/cpu_tracing_agent_unittest.py b/telemetry/telemetry/internal/platform/tracing_agent/cpu_tracing_agent_unittest.py
index 4adf16c72a8067a8bb6ff70c2b41d7fe856b51dd..df51bbba451562c3f4331e813c8fea519c831e7a 100644
--- a/telemetry/telemetry/internal/platform/tracing_agent/cpu_tracing_agent_unittest.py
+++ b/telemetry/telemetry/internal/platform/tracing_agent/cpu_tracing_agent_unittest.py
@@ -40,21 +40,21 @@ class CpuTracingAgentTest(unittest.TestCase):
self._desktop_backend = linux_platform_backend.LinuxPlatformBackend()
self._agent = cpu_tracing_agent.CpuTracingAgent(self._desktop_backend)
- @decorators.Enabled('linux', 'mac', 'win')
+ @decorators.Enabled('linux', 'mac')
def testInit(self):
self.assertTrue(isinstance(self._agent,
tracing_agent.TracingAgent))
self.assertFalse(self._agent._snapshots)
self.assertFalse(self._agent._snapshot_ongoing)
- @decorators.Enabled('linux', 'mac', 'win')
+ @decorators.Enabled('linux', 'mac')
def testIsSupported(self):
self.assertTrue(cpu_tracing_agent.CpuTracingAgent.IsSupported(
self._desktop_backend))
self.assertFalse(cpu_tracing_agent.CpuTracingAgent.IsSupported(
FakeAndroidPlatformBackend()))
- @decorators.Enabled('linux', 'mac', 'win')
+ @decorators.Enabled('linux', 'mac')
def testStartAgentTracing(self):
self.assertFalse(self._agent._snapshot_ongoing)
self.assertFalse(self._agent._snapshots)
@@ -64,7 +64,7 @@ class CpuTracingAgentTest(unittest.TestCase):
self.assertTrue(self._agent._snapshots)
self._agent.StopAgentTracing()
- @decorators.Enabled('linux', 'mac', 'win')
+ @decorators.Enabled('linux', 'mac')
def testStartAgentTracingNotEnabled(self):
self._config.enable_cpu_trace = False
self.assertFalse(self._agent._snapshot_ongoing)
@@ -74,24 +74,24 @@ class CpuTracingAgentTest(unittest.TestCase):
time.sleep(2)
self.assertFalse(self._agent._snapshots)
- @decorators.Enabled('linux', 'mac', 'win')
+ @decorators.Enabled('linux', 'mac')
def testStopAgentTracingBeforeStart(self):
self.assertRaises(AssertionError, self._agent.StopAgentTracing)
- @decorators.Enabled('linux', 'mac', 'win')
+ @decorators.Enabled('linux', 'mac')
def testStopAgentTracing(self):
self._agent.StartAgentTracing(self._config, 0)
self._agent.StopAgentTracing()
self.assertFalse(self._agent._snapshot_ongoing)
- @decorators.Enabled('linux', 'mac', 'win')
+ @decorators.Enabled('linux', 'mac')
def testCollectAgentTraceDataBeforeStop(self):
self._agent.StartAgentTracing(self._config, 0)
self.assertRaises(AssertionError, self._agent.CollectAgentTraceData,
trace_data.TraceDataBuilder())
self._agent.StopAgentTracing()
- @decorators.Enabled('linux', 'mac', 'win')
+ @decorators.Enabled('linux', 'mac')
def testCollectAgentTraceData(self):
builder = trace_data.TraceDataBuilder()
self._agent.StartAgentTracing(self._config, 0)
@@ -101,7 +101,7 @@ class CpuTracingAgentTest(unittest.TestCase):
builder = builder.AsData()
self.assertTrue(builder.HasTraceFor(trace_data.CPU_TRACE_DATA))
- @decorators.Enabled('linux', 'mac', 'win')
+ @decorators.Enabled('linux', 'mac')
def testCollectAgentTraceDataFormat(self):
builder = trace_data.TraceDataBuilder()
self._agent.StartAgentTracing(self._config, 0)
@@ -118,7 +118,7 @@ class CpuTracingAgentTest(unittest.TestCase):
self.assertEquals(set(data[0]['args']['snapshot']['processes'][0].keys()),
set(SNAPSHOT_KEYS))
- @decorators.Enabled('linux', 'mac', 'win')
+ @decorators.Enabled('linux', 'mac')
def testMinimumCpuThreshold(self):
builder = trace_data.TraceDataBuilder()
self._agent.StartAgentTracing(self._config, 0)
« no previous file with comments | « telemetry/telemetry/internal/platform/tracing_agent/cpu_tracing_agent.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698