| OLD | NEW |
| 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() |
| OLD | NEW |