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

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

Issue 23604005: [Telemetry] Implement dirty profile generation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@generate_profile
Patch Set: Rebase against trunk Created 7 years, 4 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
index 3dcab2e6a2a64145af9e8f178fd3bb3b3b6e4cf9..764e2f229f6552b8a0aae75694c9de01ae840393 100644
--- a/tools/telemetry/telemetry/core/profile_types_unittest.py
+++ b/tools/telemetry/telemetry/core/profile_types_unittest.py
@@ -1,11 +1,10 @@
# 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 os
import unittest
from telemetry.core import profile_types
-from telemetry.core import util
+
class ProfileTypesTest(unittest.TestCase):
def testGetProfileTypes(self):
@@ -16,17 +15,3 @@ class ProfileTypesTest(unittest.TestCase):
def testGetProfileDir(self):
self.assertFalse(profile_types.GetProfileDir('typical_user') is None)
-
- def testGetProfileCreatorTypes(self):
- profile_creators_dir = os.path.join(
- util.GetUnittestDataDir(), 'discoverable_classes')
- base_dir = util.GetUnittestDataDir()
-
- profile_types.FindProfileCreators(profile_creators_dir, base_dir)
- types = profile_types.GetProfileTypes()
- self.assertTrue(len(types) > 0)
- self.assertTrue('dummy_profile' in types)
-
- dummy_profile_creator = profile_types.GetProfileCreator('dummy_profile')
- self.assertTrue(dummy_profile_creator.__name__ == 'DummyProfileCreator')
- profile_types.ClearProfieCreatorsForTests()

Powered by Google App Engine
This is Rietveld 408576698