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

Unified Diff: chrome/test/functional/chromeos_wifi_sanity.py

Issue 23503040: Remove all NetworkLibrary dependencies from AutomationTestingProvider (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 7 years, 3 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 | « chrome/test/functional/PYAUTO_TESTS ('k') | chrome/test/pyautolib/chromeos_network.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/functional/chromeos_wifi_sanity.py
diff --git a/chrome/test/functional/chromeos_wifi_sanity.py b/chrome/test/functional/chromeos_wifi_sanity.py
deleted file mode 100755
index ebebc25844083e14ca449a6fed20933ce6eee97f..0000000000000000000000000000000000000000
--- a/chrome/test/functional/chromeos_wifi_sanity.py
+++ /dev/null
@@ -1,52 +0,0 @@
-#!/usr/bin/env python
-# Copyright (c) 2011 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 logging
-
-import pyauto_functional
-import chromeos_network # pyauto_functional must come before chromeos_network
-
-
-class ChromeosWifiSanity(chromeos_network.PyNetworkUITest):
- """Tests for ChromeOS network related functions."""
-
- def testToggleNetworkDevice(self):
- """Sanity check to make sure wifi can be disabled and reenabled."""
- self.ToggleNetworkDevice('wifi', False)
- self.assertFalse(self.GetNetworkInfo()['wifi_enabled'],
- 'Disabled wifi but it is still enabled.')
- self.assertFalse('wifi_networks' in self.GetNetworkInfo(), 'GetNetworkInfo '
- 'returned a wifi_networks dict, but wifi is disabled.')
- self.ToggleNetworkDevice("wifi", True)
- self.assertTrue(self.GetNetworkInfo()['wifi_enabled'],
- 'Enabled wifi but it is still disabled.')
- self.assertTrue('wifi_networks' in self.GetNetworkInfo(), 'GetNetworkInfo '
- 'did not return a wifi_networks dict.')
-
- def testConnectToHiddenWiFiNonExistent(self):
- """Connecting to a non-existent network should fail.
-
- Assume network 'ThisIsANonExistentNetwork' is not a valid ssid within
- the vicinity of where this test is run.
- """
- ssid = 'ThisIsANonExistentNetwork'
- error = self.ConnectToHiddenWifiNetwork(ssid, 'SECURITY_NONE')
- self.assertTrue(error is not None, msg='Device connected to a non-existent '
- 'network "%s".' % ssid)
- self.assertTrue(error != '', msg='Device had a connection error but no '
- 'error message.')
-
- def testForgetWifiNetwork(self):
- """Basic test to verify there are no problems calling ForgetWifiNetwork."""
- self.ForgetAllRememberedNetworks()
- # This call should have no problems regardless of whether or not
- # the network exists.
- self.ForgetWifiNetwork('')
- self.assertFalse(self.GetNetworkInfo()['remembered_wifi'], 'All '
- 'remembered wifi networks should have been removed')
-
-
-if __name__ == '__main__':
- pyauto_functional.Main()
« no previous file with comments | « chrome/test/functional/PYAUTO_TESTS ('k') | chrome/test/pyautolib/chromeos_network.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698