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

Side by Side Diff: chrome/test/functional/chromeos_wifi.py

Issue 6732040: PyAuto automation hooks: blocking wifi connect, disconnect, and network scan. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Changes per comments. Created 9 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 #!/usr/bin/python 1 #!/usr/bin/python
2 # Copyright (c) 2011 The Chromium Authors. All rights reserved. 2 # Copyright (c) 2011 The Chromium Authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that can be 3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file. 4 # found in the LICENSE file.
5 5
6 import logging 6 import logging
7 7
8 import pyauto_functional 8 import pyauto_functional
9 import chromeos_network # pyauto_functional must come before chromeos_network 9 import chromeos_network # pyauto_functional must come before chromeos_network
10 10
11 11
12 class ChromeosWifi(chromeos_network.PyNetworkUITest): 12 class ChromeosWifi(chromeos_network.PyNetworkUITest):
13 """Tests for ChromeOS wifi.""" 13 """Tests for ChromeOS wifi."""
14 14
15 def testNetworkInfo(self): 15 def testNetworkInfo(self):
16 """Get basic info on networks.""" 16 """Get basic info on networks."""
17 result = self.GetNetworkInfo() 17 result = self.GetNetworkInfo()
18 self.assertTrue(result) 18 self.assertTrue(result)
19 logging.debug(result) 19 logging.debug(result)
20 20
21 def testNetworkScan(self):
22 """Basic check to ensure that a network scan doesn't throw errors."""
23 self.NetworkScan()
24
21 25
22 if __name__ == '__main__': 26 if __name__ == '__main__':
23 pyauto_functional.Main() 27 pyauto_functional.Main()
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698