Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 # Copyright 2013 The Chromium Authors. All rights reserved. | 1 # Copyright 2013 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 logging | 5 import logging |
| 6 import subprocess | 6 import subprocess |
| 7 | 7 |
| 8 from telemetry.core import exceptions | 8 from telemetry.core import exceptions |
| 9 from telemetry.internal.platform import android_platform_backend as \ | 9 from telemetry.internal.platform import android_platform_backend as \ |
| 10 android_platform_backend_module | 10 android_platform_backend_module |
| (...skipping 249 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 260 | 260 |
| 261 self._StopBrowser() | 261 self._StopBrowser() |
| 262 | 262 |
| 263 self.platform_backend.StopForwardingHost(self._port) | 263 self.platform_backend.StopForwardingHost(self._port) |
| 264 | 264 |
| 265 if self._output_profile_path: | 265 if self._output_profile_path: |
| 266 self.platform_backend.PullProfile( | 266 self.platform_backend.PullProfile( |
| 267 self._backend_settings.package, self._output_profile_path) | 267 self._backend_settings.package, self._output_profile_path) |
| 268 | 268 |
| 269 def IsBrowserRunning(self): | 269 def IsBrowserRunning(self): |
| 270 return self.platform_backend.IsAppRunning(self._backend_settings.package) | 270 return self.platform_backend.IsAppRunning( |
| 271 '%s$' % (self._backend_settings.package)) | |
|
perezju
2017/09/19 12:57:01
I don't think this will work. The process name is
bokan
2017/09/25 19:53:32
D'oh! Sorry, you're right, I missed what `-F` does
| |
| 271 | 272 |
| 272 def GetStandardOutput(self): | 273 def GetStandardOutput(self): |
| 273 return self.platform_backend.GetStandardOutput() | 274 return self.platform_backend.GetStandardOutput() |
| 274 | 275 |
| 275 def GetStackTrace(self): | 276 def GetStackTrace(self): |
| 276 return self.platform_backend.GetStackTrace() | 277 return self.platform_backend.GetStackTrace() |
| 277 | 278 |
| 278 def GetMostRecentMinidumpPath(self): | 279 def GetMostRecentMinidumpPath(self): |
| 279 return None | 280 return None |
| 280 | 281 |
| 281 def GetAllMinidumpPaths(self): | 282 def GetAllMinidumpPaths(self): |
| 282 return None | 283 return None |
| 283 | 284 |
| 284 def GetAllUnsymbolizedMinidumpPaths(self): | 285 def GetAllUnsymbolizedMinidumpPaths(self): |
| 285 return None | 286 return None |
| 286 | 287 |
| 287 def SymbolizeMinidump(self, minidump_path): | 288 def SymbolizeMinidump(self, minidump_path): |
| 288 return None | 289 return None |
| OLD | NEW |