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

Unified Diff: tools/chrome_remote_control/chrome_remote_control/page_test.py

Issue 11361165: [chrome_remote_control] Rename chrome_remote_control to telemetry. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 1 month 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/chrome_remote_control/chrome_remote_control/page_test.py
diff --git a/tools/chrome_remote_control/chrome_remote_control/page_test.py b/tools/chrome_remote_control/chrome_remote_control/page_test.py
deleted file mode 100644
index 2d4d24fd97c3b1a19e3634133523b2da57fd9db8..0000000000000000000000000000000000000000
--- a/tools/chrome_remote_control/chrome_remote_control/page_test.py
+++ /dev/null
@@ -1,50 +0,0 @@
-# Copyright (c) 2012 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.
-class Failure(Exception):
- """Exception that can be thrown from MultiPageBenchmark to indicate an
- undesired but designed-for problem."""
- pass
-
-class PageTestResults(object):
- def __init__(self):
- self.page_failures = []
-
- def AddFailure(self, page, message, details):
- self.page_failures.append({'page': page,
- 'message': message,
- 'details': details})
-
-class PageTest(object):
- """A class styled on unittest.TestCase for creating page-specific tests."""
-
- def __init__(self, test_method_name):
- self.options = None
- try:
- self._test_method = getattr(self, test_method_name)
- except AttributeError:
- raise ValueError, 'No such method %s.%s' % (
- self.__class_, test_method_name) # pylint: disable=E1101
-
- def AddOptions(self, parser):
- """Override to expose command-line options for this benchmark.
-
- The provided parser is an optparse.OptionParser instance and accepts all
- normal results. The parsed options are available in MeasurePage as
- self.options."""
- pass
-
- def CustomizeBrowserOptions(self, options):
- """Override to add test-specific options to the BrowserOptions object"""
- pass
-
- def SetUpBrowser(self, browser):
- """Override to customize the browser right after it has launched."""
- pass
-
- def Run(self, options, page, tab, results):
- self.options = options
- try:
- self._test_method(page, tab, results)
- finally:
- self.options = None

Powered by Google App Engine
This is Rietveld 408576698