OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "chrome/browser/chromeos/cros/network_library.h" | 5 #include "chrome/browser/chromeos/cros/network_library.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <map> | 8 #include <map> |
9 #include <set> | 9 #include <set> |
10 | 10 |
(...skipping 5626 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5637 | 5637 |
5638 WifiNetwork* wifi2 = new WifiNetwork("fw2"); | 5638 WifiNetwork* wifi2 = new WifiNetwork("fw2"); |
5639 wifi2->set_name("Fake WiFi"); | 5639 wifi2->set_name("Fake WiFi"); |
5640 wifi2->set_strength(70); | 5640 wifi2->set_strength(70); |
5641 wifi2->set_connected(false); | 5641 wifi2->set_connected(false); |
5642 wifi2->set_encryption(SECURITY_NONE); | 5642 wifi2->set_encryption(SECURITY_NONE); |
5643 wifi2->set_profile_type(PROFILE_SHARED); | 5643 wifi2->set_profile_type(PROFILE_SHARED); |
5644 AddNetwork(wifi2); | 5644 AddNetwork(wifi2); |
5645 | 5645 |
5646 WifiNetwork* wifi3 = new WifiNetwork("fw3"); | 5646 WifiNetwork* wifi3 = new WifiNetwork("fw3"); |
5647 wifi3->set_name("Fake WiFi Encrypted"); | 5647 wifi3->set_name("Fake WiFi Encrypted with a long name"); |
5648 wifi3->set_strength(60); | 5648 wifi3->set_strength(60); |
5649 wifi3->set_connected(false); | 5649 wifi3->set_connected(false); |
5650 wifi3->set_encryption(SECURITY_WEP); | 5650 wifi3->set_encryption(SECURITY_WEP); |
5651 wifi3->set_passphrase_required(true); | 5651 wifi3->set_passphrase_required(true); |
5652 wifi3->set_profile_type(PROFILE_USER); | 5652 wifi3->set_profile_type(PROFILE_USER); |
5653 AddNetwork(wifi3); | 5653 AddNetwork(wifi3); |
5654 | 5654 |
5655 WifiNetwork* wifi4 = new WifiNetwork("fw4"); | 5655 WifiNetwork* wifi4 = new WifiNetwork("fw4"); |
5656 wifi4->set_name("Fake WiFi 802.1x"); | 5656 wifi4->set_name("Fake WiFi 802.1x"); |
5657 wifi4->set_strength(50); | 5657 wifi4->set_strength(50); |
(...skipping 215 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5873 return network_library; | 5873 return network_library; |
5874 } | 5874 } |
5875 | 5875 |
5876 ///////////////////////////////////////////////////////////////////////////// | 5876 ///////////////////////////////////////////////////////////////////////////// |
5877 | 5877 |
5878 } // namespace chromeos | 5878 } // namespace chromeos |
5879 | 5879 |
5880 // Allows InvokeLater without adding refcounting. This class is a Singleton and | 5880 // Allows InvokeLater without adding refcounting. This class is a Singleton and |
5881 // won't be deleted until it's last InvokeLater is run. | 5881 // won't be deleted until it's last InvokeLater is run. |
5882 DISABLE_RUNNABLE_METHOD_REFCOUNT(chromeos::NetworkLibraryImplBase); | 5882 DISABLE_RUNNABLE_METHOD_REFCOUNT(chromeos::NetworkLibraryImplBase); |
OLD | NEW |