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

Unified Diff: chrome/test/functional/ap_lab/ap_configurator_factory.py

Issue 222873002: Remove pyauto tests. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: sync Created 6 years, 9 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: chrome/test/functional/ap_lab/ap_configurator_factory.py
===================================================================
--- chrome/test/functional/ap_lab/ap_configurator_factory.py (revision 261231)
+++ chrome/test/functional/ap_lab/ap_configurator_factory.py (working copy)
@@ -1,39 +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 os
-
-import dlink_ap_configurator
-import linksys_ap_configurator
-
-import pyauto_ap_configurator # must preceed pyauto
-import pyauto
-
-
-class APConfiguratorFactory(object):
- """Class that instantiates all available APConfigurators."""
-
- def __init__(self, pyauto_instance, config_dict_file_path=None):
- if not config_dict_file_path:
- # Load the default dictionary file
- config_dict_file_path = os.path.join(pyauto_instance.DataDir(),
- 'pyauto_private', 'chromeos',
- 'network', 'wifi_compat_config')
- assert os.path.exists(config_dict_file_path), ('%s missing' %
- config_dict_file_path)
- ap_dict = pyauto_instance.EvalDataFrom(config_dict_file_path)
- self.ap_list = []
- self.ap_list.append(linksys_ap_configurator.LinksysAPConfigurator(
- pyauto_instance, ap_dict['LinksysAPConfigurator']))
- self.ap_list.append(dlink_ap_configurator.DLinkAPConfigurator(
- pyauto_instance, ap_dict['DLinkAPConfigurator']))
-
- def GetAPConfigurators(self):
- return self.ap_list
-
- def GetAPConfiguratorByShortName(self, name):
- for ap in self.ap_list:
- if ap.GetRouterShortName() == name:
- return ap
- return None
« no previous file with comments | « chrome/test/functional/ap_lab/ap_configurator.py ('k') | chrome/test/functional/ap_lab/ap_configurator_test.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698