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

Unified Diff: tools/telemetry/telemetry/tab_test_case.py

Issue 12278015: [Telemetry] Reorganize everything. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Re-add shebangs. Created 7 years, 10 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 | « tools/telemetry/telemetry/tab_list_backend.py ('k') | tools/telemetry/telemetry/tab_unittest.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/telemetry/telemetry/tab_test_case.py
diff --git a/tools/telemetry/telemetry/tab_test_case.py b/tools/telemetry/telemetry/tab_test_case.py
deleted file mode 100644
index c890ca854f93b9cfced173af60d83b3c042dc51b..0000000000000000000000000000000000000000
--- a/tools/telemetry/telemetry/tab_test_case.py
+++ /dev/null
@@ -1,43 +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.
-import unittest
-
-from telemetry import browser_finder
-from telemetry import options_for_unittests
-
-class TabTestCase(unittest.TestCase):
- def __init__(self, *args):
- self._extra_browser_args = []
- super(TabTestCase, self).__init__(*args)
-
- def setUp(self):
- self._browser = None
- self._tab = None
- options = options_for_unittests.GetCopy()
-
- self.CustomizeBrowserOptions(options)
-
- if self._extra_browser_args:
- for arg in self._extra_browser_args:
- options.extra_browser_args.append(arg)
-
- browser_to_create = browser_finder.FindBrowser(options)
- if not browser_to_create:
- raise Exception('No browser found, cannot continue test.')
- try:
- self._browser = browser_to_create.Create()
- self._tab = self._browser.tabs[0]
- except:
- self.tearDown()
- raise
-
- def tearDown(self):
- if self._tab:
- self._tab.Disconnect()
- if self._browser:
- self._browser.Close()
-
- def CustomizeBrowserOptions(self, options):
- """Override to add test-specific options to the BrowserOptions object"""
- pass
« no previous file with comments | « tools/telemetry/telemetry/tab_list_backend.py ('k') | tools/telemetry/telemetry/tab_unittest.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698