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

Side by Side Diff: systrace/profile_chrome/chrome_startup_tracing_agent_unittest.py

Issue 2276263003: Pass in custom options to Systrace agents (Closed) Base URL: https://chromium.googlesource.com/external/github.com/catapult-project/catapult.git@master
Patch Set: Rebase Created 4 years, 3 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 unified diff | Download patch
OLDNEW
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 9
10 10
11 class ChromeAgentTest(agents_unittest.BaseAgentTest): 11 class ChromeAgentTest(agents_unittest.BaseAgentTest):
12 def testTracing(self): 12 def testTracing(self):
13 agent = chrome_startup_tracing_agent.ChromeStartupTracingAgent( 13 agent = chrome_startup_tracing_agent.ChromeStartupTracingAgent(
14 self.device, self.package_info, False, 'https://www.google.com') 14 self.device, self.package_info, False, 'https://www.google.com')
15 15
16 try: 16 try:
17 agent.StartAgentTracing(None, None) 17 agent.StartAgentTracing(None)
18 finally: 18 finally:
19 agent.StopAgentTracing() 19 agent.StopAgentTracing()
20 20
21 result = agent.GetResults() 21 result = agent.GetResults()
22 json.loads(result.raw_data) 22 json.loads(result.raw_data)
OLDNEW
« no previous file with comments | « systrace/profile_chrome/chrome_startup_tracing_agent.py ('k') | systrace/profile_chrome/chrome_tracing_agent.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698