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

Unified Diff: tools/telemetry/telemetry/core/platform/profiler/monsoon_unittest.py

Issue 321773002: [PowerProfiler] Make sure correct version of pySerial is imported with monsoon profiler. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added missing license text Created 6 years, 6 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
« no previous file with comments | « no previous file | tools/telemetry/telemetry/core/util.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/telemetry/telemetry/core/platform/profiler/monsoon_unittest.py
diff --git a/tools/telemetry/telemetry/core/timeline/recording_options.py b/tools/telemetry/telemetry/core/platform/profiler/monsoon_unittest.py
similarity index 53%
copy from tools/telemetry/telemetry/core/timeline/recording_options.py
copy to tools/telemetry/telemetry/core/platform/profiler/monsoon_unittest.py
index a8c7e1451bcebd080f58dc10fc171ede504c7792..c14f4b4c01f597712f5ef825b8b45b4c8fd46370 100644
--- a/tools/telemetry/telemetry/core/timeline/recording_options.py
+++ b/tools/telemetry/telemetry/core/platform/profiler/monsoon_unittest.py
@@ -2,8 +2,9 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
+import unittest
-class TimelineRecordingOptions(object):
- def __init__(self):
- self.record_timeline = True
- self.record_network = False
+class MonsoonImportTest(unittest.TestCase):
+ def testPySerialVersion(self):
+ from telemetry.core.platform.profiler import monsoon
+ self.assertEqual(monsoon.serial.VERSION, '2.7')
qsr 2014/06/11 08:21:51 Shouldn't this be in some util_unittest.py ? You s
« no previous file with comments | « no previous file | tools/telemetry/telemetry/core/util.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698