| OLD | NEW |
| 1 # Copyright 2015 The Chromium Authors. All rights reserved. | 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 | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 import json | 5 import json |
| 6 | 6 |
| 7 from profile_chrome import chrome_startup_tracing_agent | 7 from profile_chrome import chrome_startup_tracing_agent |
| 8 from profile_chrome import agents_unittest | 8 from profile_chrome import agents_unittest |
| 9 from systrace import decorators |
| 9 | 10 |
| 10 | 11 |
| 11 class ChromeAgentTest(agents_unittest.BaseAgentTest): | 12 class ChromeAgentTest(agents_unittest.BaseAgentTest): |
| 13 @decorators.NeverRunTest |
| 12 def testTracing(self): | 14 def testTracing(self): |
| 13 agent = chrome_startup_tracing_agent.ChromeStartupTracingAgent( | 15 agent = chrome_startup_tracing_agent.ChromeStartupTracingAgent( |
| 14 self.device, self.package_info, False, 'https://www.google.com') | 16 self.device, self.package_info, False, 'https://www.google.com') |
| 15 | 17 |
| 16 try: | 18 try: |
| 17 agent.StartAgentTracing(None) | 19 agent.StartAgentTracing(None) |
| 18 finally: | 20 finally: |
| 19 agent.StopAgentTracing() | 21 agent.StopAgentTracing() |
| 20 | 22 |
| 21 result = agent.GetResults() | 23 result = agent.GetResults() |
| 22 json.loads(result.raw_data) | 24 json.loads(result.raw_data) |
| OLD | NEW |