• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright 2015 The Chromium Authors. All rights reserved.
2# Use of this source code is governed by a BSD-style license that can be
3# found in the LICENSE file.
4
5from profile_chrome import ddms_tracing_agent
6from systrace import decorators
7from systrace.tracing_agents import agents_unittest
8
9
10class DdmsAgentTest(agents_unittest.BaseAgentTest):
11  # TODO(washingtonp): The DDMS test is flaky on the Tryserver, but it
12  # consistently passes on Android M. Need to figure out why the result data
13  # does not start with '*version' and why the test is flaky.
14  @decorators.Disabled
15  def testTracing(self):
16    agent = ddms_tracing_agent.DdmsAgent(self.device, self.package_info)
17
18    try:
19      agent.StartAgentTracing(None)
20    finally:
21      agent.StopAgentTracing()
22
23    result = agent.GetResults()
24    self.assertTrue(result.raw_data.startswith('*version'))
25