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

Unified Diff: telemetry/telemetry/internal/platform/cros_platform_backend_unittest.py

Issue 2988553002: Fixed errors related to bad-continuation pt.11 (Closed)
Patch Set: Fix additional errors Created 3 years, 5 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 side-by-side diff with in-line comments
Download patch
Index: telemetry/telemetry/internal/platform/cros_platform_backend_unittest.py
diff --git a/telemetry/telemetry/internal/platform/cros_platform_backend_unittest.py b/telemetry/telemetry/internal/platform/cros_platform_backend_unittest.py
index d6c8ac734066d26de8917a69fc086328ae5fb06b..473d5c22754e2007649892f77f0089b622591402 100644
--- a/telemetry/telemetry/internal/platform/cros_platform_backend_unittest.py
+++ b/telemetry/telemetry/internal/platform/cros_platform_backend_unittest.py
@@ -9,24 +9,26 @@ from telemetry.internal.platform import cros_platform_backend
class CrosPlatformBackendTest(unittest.TestCase):
initial_cstate = {
- 'cpu0': 'POLL\nC1\nC2\nC3\n0\n138356189\n102416540\n'
- '17158209182\n0\n1\n500\n1000\n1403211341',
- 'cpu1': 'POLL\nC1\nC2\nC3\n0\n107318149\n81786238\n'
- '17348563431\n0\n1\n500\n1000\n1403211341'
+ 'cpu0':
+ 'POLL\nC1\nC2\nC3\n0\n138356189\n102416540\n'
+ '17158209182\n0\n1\n500\n1000\n1403211341',
+ 'cpu1':
+ 'POLL\nC1\nC2\nC3\n0\n107318149\n81786238\n'
+ '17348563431\n0\n1\n500\n1000\n1403211341'
}
expected_cstate = {
- 'cpu0': {
- 'C0': 1403193942018089,
- 'C1': 138356189,
- 'C2': 102416540,
- 'C3': 17158209182
- },
- 'cpu1': {
- 'C0': 1403193803332182,
- 'C1': 107318149,
- 'C2': 81786238,
- 'C3': 17348563431
- }
+ 'cpu0': {
+ 'C0': 1403193942018089,
+ 'C1': 138356189,
+ 'C2': 102416540,
+ 'C3': 17158209182
+ },
+ 'cpu1': {
+ 'C0': 1403193803332182,
+ 'C1': 107318149,
+ 'C2': 81786238,
+ 'C3': 17348563431
+ }
}
def testCrosParseCpuStates(self):
# Use mock start and end times to allow for the test to calculate C0.

Powered by Google App Engine
This is Rietveld 408576698