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

Unified Diff: tools/telemetry/telemetry/internal/util/command_line_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/util/command_line_unittest.py
diff --git a/tools/telemetry/telemetry/internal/util/command_line_unittest.py b/tools/telemetry/telemetry/internal/util/command_line_unittest.py
deleted file mode 100644
index 22e96556f4345a448e5fe02378d227d3d85eebe4..0000000000000000000000000000000000000000
--- a/tools/telemetry/telemetry/internal/util/command_line_unittest.py
+++ /dev/null
@@ -1,47 +0,0 @@
-# Copyright 2015 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.util import command_line
-
-
-class BenchmarkFoo(object):
- """ Benchmark Foo for testing."""
- @classmethod
- def Name(cls):
- return 'FooBenchmark'
-
-
-class BenchmarkBar(object):
- """ Benchmark Bar for testing long description line."""
- @classmethod
- def Name(cls):
- return 'BarBenchmarkkkkk'
-
-
-class UnusualBenchmark(object):
- @classmethod
- def Name(cls):
- return 'I have a very unusual name'
-
-
-class CommandLineUnittest(unittest.TestCase):
- def testGetMostLikelyMatchedObject(self):
- # Test moved from telemetry/benchmark_runner_unittest.py
- all_benchmarks = [BenchmarkFoo, BenchmarkBar, UnusualBenchmark]
- self.assertEquals(
- [BenchmarkFoo, BenchmarkBar],
- command_line.GetMostLikelyMatchedObject(
- all_benchmarks, 'BenchmarkFooz', name_func=lambda x: x.Name()))
-
- self.assertEquals(
- [BenchmarkBar, BenchmarkFoo],
- command_line.GetMostLikelyMatchedObject(
- all_benchmarks, 'BarBenchmark', name_func=lambda x: x.Name()))
-
- self.assertEquals(
- [UnusualBenchmark],
- command_line.GetMostLikelyMatchedObject(
- all_benchmarks, 'unusual', name_func=lambda x: x.Name()))

Powered by Google App Engine
This is Rietveld 408576698