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

Unified Diff: tools/telemetry/telemetry/internal/platform/gpu_device_unittest.py

Issue 1647513002: Delete tools/telemetry. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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: tools/telemetry/telemetry/internal/platform/gpu_device_unittest.py
diff --git a/tools/telemetry/telemetry/internal/platform/gpu_device_unittest.py b/tools/telemetry/telemetry/internal/platform/gpu_device_unittest.py
deleted file mode 100644
index d4ba3849ed98001cf648a25e0eecaf00cfaac4ac..0000000000000000000000000000000000000000
--- a/tools/telemetry/telemetry/internal/platform/gpu_device_unittest.py
+++ /dev/null
@@ -1,46 +0,0 @@
-# Copyright 2013 The Chromium Authors. All rights reserved.
-# Use of this source code is governed by a BSD-style license that can be
-# found in the LICENSE file.
-import unittest
-
-from telemetry.internal.platform import gpu_device
-
-
-class TestGPUDevice(unittest.TestCase):
-
- def testConstruction(self):
- device = gpu_device.GPUDevice(1000, 2000, 'test_vendor', 'test_device')
- self.assertEquals(device.vendor_id, 1000)
- self.assertEquals(device.device_id, 2000)
- self.assertEquals(device.vendor_string, 'test_vendor')
- self.assertEquals(device.device_string, 'test_device')
-
- def testFromDict(self):
- dictionary = {'vendor_id': 3000,
- 'device_id': 4000,
- 'vendor_string': 'test_vendor_2',
- 'device_string': 'test_device_2'}
- device = gpu_device.GPUDevice.FromDict(dictionary)
- self.assertEquals(device.vendor_id, 3000)
- self.assertEquals(device.device_id, 4000)
- self.assertEquals(device.vendor_string, 'test_vendor_2')
- self.assertEquals(device.device_string, 'test_device_2')
-
- def testMissingAttrsFromDict(self):
- data = {
- 'vendor_id': 1,
- 'device_id': 2,
- 'vendor_string': 'a',
- 'device_string': 'b'
- }
-
- for k in data:
- data_copy = data.copy()
- del data_copy[k]
- try:
- gpu_device.GPUDevice.FromDict(data_copy)
- self.fail('Should raise exception if attribute "%s" is missing' % k)
- except AssertionError:
- raise
- except KeyError:
- pass
« no previous file with comments | « tools/telemetry/telemetry/internal/platform/gpu_device.py ('k') | tools/telemetry/telemetry/internal/platform/gpu_info.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698