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

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

Issue 2162963002: [polymer] Merge of master into polymer10-migration (Closed) Base URL: git@github.com:catapult-project/catapult.git@polymer10-migration
Patch Set: Merge polymer10-migration int polymer10-merge Created 4 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/linux_based_platform_backend_unittest.py
diff --git a/telemetry/telemetry/internal/platform/linux_based_platform_backend_unittest.py b/telemetry/telemetry/internal/platform/linux_based_platform_backend_unittest.py
index b7bc8cf3e0a49d0dab592447b905f3c601e9b2d4..69ddb4870a14e34e2081037db44a280c1c5d28e0 100644
--- a/telemetry/telemetry/internal/platform/linux_based_platform_backend_unittest.py
+++ b/telemetry/telemetry/internal/platform/linux_based_platform_backend_unittest.py
@@ -11,12 +11,12 @@ from telemetry.internal.platform import linux_based_platform_backend
import mock
-class TestBackend(linux_based_platform_backend.LinuxBasedPlatformBackend):
+class TestLinuxBackend(linux_based_platform_backend.LinuxBasedPlatformBackend):
# pylint: disable=abstract-method
def __init__(self):
- super(TestBackend, self).__init__()
+ super(TestLinuxBackend, self).__init__()
self._mock_files = {}
def SetMockFile(self, filename, output):
@@ -40,7 +40,7 @@ class LinuxBasedPlatformBackendTest(unittest.TestCase):
logging.warning('Test not supported')
return
- backend = TestBackend()
+ backend = TestLinuxBackend()
self.SetMockFileInBackend(backend, 'proc_meminfo', '/proc/meminfo')
result = backend.GetSystemCommitCharge()
# 25252140 == MemTotal - MemFree - Buffers - Cached (in kB)
@@ -51,7 +51,7 @@ class LinuxBasedPlatformBackendTest(unittest.TestCase):
logging.warning('Test not supported')
return
- backend = TestBackend()
+ backend = TestLinuxBackend()
self.SetMockFileInBackend(backend, 'proc_meminfo', '/proc/meminfo')
result = backend.GetSystemTotalPhysicalMemory()
# 67479191552 == MemTotal * 1024
@@ -62,7 +62,7 @@ class LinuxBasedPlatformBackendTest(unittest.TestCase):
logging.warning('Test not supported')
return
- backend = TestBackend()
+ backend = TestLinuxBackend()
self.SetMockFileInBackend(backend, 'stat', '/proc/1/stat')
result = backend.GetCpuStats(1)
self.assertEquals(result, {'CpuProcessTime': 22.0})
@@ -93,7 +93,7 @@ jiffies a1111
logging.warning('Test not supported')
return
- backend = TestBackend()
+ backend = TestLinuxBackend()
self.SetMockFileInBackend(backend, 'stat', '/proc/1/stat')
self.SetMockFileInBackend(backend, 'status', '/proc/1/status')
self.SetMockFileInBackend(backend, 'smaps', '/proc/1/smaps')
@@ -109,7 +109,7 @@ jiffies a1111
logging.warning('Test not supported')
return
- backend = TestBackend()
+ backend = TestLinuxBackend()
self.SetMockFileInBackend(backend, 'stat', '/proc/1/stat')
self.SetMockFileInBackend(backend, 'status_nohwm', '/proc/1/status')
self.SetMockFileInBackend(backend, 'smaps', '/proc/1/smaps')

Powered by Google App Engine
This is Rietveld 408576698