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 weakref | 5 import weakref |
6 | 6 |
7 from battor import battor_wrapper | 7 from battor import battor_wrapper |
8 from telemetry.internal import forwarders | 8 from telemetry.internal import forwarders |
9 from telemetry.internal.forwarders import do_nothing_forwarder | 9 from telemetry.internal.forwarders import do_nothing_forwarder |
10 from telemetry.internal.platform import network_controller_backend | 10 from telemetry.internal.platform import network_controller_backend |
(...skipping 248 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
259 On systems with multiple CPUs, this function may run on any CPU. | 259 On systems with multiple CPUs, this function may run on any CPU. |
260 | 260 |
261 Args: | 261 Args: |
262 msr_number: The number of the register to read. | 262 msr_number: The number of the register to read. |
263 start: The least significant bit to read, zero-indexed. | 263 start: The least significant bit to read, zero-indexed. |
264 (Said another way, the number of bits to right-shift the MSR value.) | 264 (Said another way, the number of bits to right-shift the MSR value.) |
265 length: The number of bits to read. MSRs are 64 bits, even on 32-bit CPUs. | 265 length: The number of bits to read. MSRs are 64 bits, even on 32-bit CPUs. |
266 """ | 266 """ |
267 raise NotImplementedError() | 267 raise NotImplementedError() |
268 | 268 |
269 @property | |
270 def supports_test_ca(self): | |
271 """Indicates whether the platform supports installing test CA.""" | |
272 return False | |
273 | |
274 def InstallTestCa(self): | |
275 """Install a test CA on the platform.""" | |
276 raise NotImplementedError() | |
277 | |
278 def RemoveTestCa(self): | |
279 """Remove a previously installed test CA from the platform.""" | |
280 raise NotImplementedError() | |
281 | |
282 def CanTakeScreenshot(self): | 269 def CanTakeScreenshot(self): |
283 return False | 270 return False |
284 | 271 |
285 def TakeScreenshot(self, file_path): | 272 def TakeScreenshot(self, file_path): |
286 raise NotImplementedError | 273 raise NotImplementedError |
287 | 274 |
288 def IsCooperativeShutdownSupported(self): | 275 def IsCooperativeShutdownSupported(self): |
289 """Indicates whether CooperativelyShutdown, below, is supported. | 276 """Indicates whether CooperativelyShutdown, below, is supported. |
290 It is not necessary to implement it on all platforms.""" | 277 It is not necessary to implement it on all platforms.""" |
291 return False | 278 return False |
(...skipping 23 matching lines...) Expand all Loading... |
315 Return: | 302 Return: |
316 Whether the path exists on the target platform. | 303 Whether the path exists on the target platform. |
317 """ | 304 """ |
318 raise NotImplementedError() | 305 raise NotImplementedError() |
319 | 306 |
320 def HasBattOrConnected(self): | 307 def HasBattOrConnected(self): |
321 return battor_wrapper.IsBattOrConnected(self.GetOSName()) | 308 return battor_wrapper.IsBattOrConnected(self.GetOSName()) |
322 | 309 |
323 def WaitForBatteryTemperature(self, temp): | 310 def WaitForBatteryTemperature(self, temp): |
324 pass | 311 pass |
OLD | NEW |