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

Unified Diff: tools/telemetry/telemetry/core/profile_types_unittest.py

Issue 14359012: Telemetry: Add option to create a dirty profile as part of a test run (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Small fix to unit tests Created 7 years, 7 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/core/profile_types_unittest.py
diff --git a/tools/telemetry/telemetry/core/profile_types_unittest.py b/tools/telemetry/telemetry/core/profile_types_unittest.py
new file mode 100644
index 0000000000000000000000000000000000000000..e06f354772ace1e1d912f85a2a050778e1ad0435
--- /dev/null
+++ b/tools/telemetry/telemetry/core/profile_types_unittest.py
@@ -0,0 +1,16 @@
+# Copyright (c) 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.core import profile_types
+
+class ProfileTypesTest(unittest.TestCase):
+ def testGetProfileTypes(self):
+ types = profile_types.GetProfileTypes()
+
+ self.assertTrue('clean' in types)
+ self.assertTrue(len(types) > 0)
+
+ def testGetProfileDir(self):
+ self.assertFalse(profile_types.GetProfileDir('typical_user') is None)
« no previous file with comments | « tools/telemetry/telemetry/core/profile_types.py ('k') | tools/telemetry/telemetry/page/page_measurement_runner.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698