| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 "components/wifi/wifi_service.h" | 5 #include "components/wifi/wifi_service.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/message_loop/message_loop.h" | 8 #include "base/message_loop/message_loop.h" |
| 9 #include "components/onc/onc_constants.h" | 9 #include "components/onc/onc_constants.h" |
| 10 | 10 |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 49 networks_.push_back(network_properties); | 49 networks_.push_back(network_properties); |
| 50 } | 50 } |
| 51 { | 51 { |
| 52 WiFiService::NetworkProperties network_properties; | 52 WiFiService::NetworkProperties network_properties; |
| 53 network_properties.connection_state = | 53 network_properties.connection_state = |
| 54 onc::connection_state::kNotConnected; | 54 onc::connection_state::kNotConnected; |
| 55 network_properties.guid = "stub_wifi2"; | 55 network_properties.guid = "stub_wifi2"; |
| 56 network_properties.name = "wifi2_PSK"; | 56 network_properties.name = "wifi2_PSK"; |
| 57 network_properties.type = onc::network_type::kWiFi; | 57 network_properties.type = onc::network_type::kWiFi; |
| 58 network_properties.frequency = 5000; | 58 network_properties.frequency = 5000; |
| 59 network_properties.frequency_list.push_back(2400); | 59 network_properties.frequency_set.insert(2400); |
| 60 network_properties.frequency_list.push_back(5000); | 60 network_properties.frequency_set.insert(5000); |
| 61 network_properties.ssid = "wifi2_PSK"; | 61 network_properties.ssid = "wifi2_PSK"; |
| 62 network_properties.security = onc::wifi::kWPA_PSK; | 62 network_properties.security = onc::wifi::kWPA_PSK; |
| 63 network_properties.signal_strength = 80; | 63 network_properties.signal_strength = 80; |
| 64 networks_.push_back(network_properties); | 64 networks_.push_back(network_properties); |
| 65 } | 65 } |
| 66 { | 66 { |
| 67 WiFiService::NetworkProperties network_properties; | 67 WiFiService::NetworkProperties network_properties; |
| 68 network_properties.connection_state = | 68 network_properties.connection_state = |
| 69 onc::connection_state::kNotConnected; | 69 onc::connection_state::kNotConnected; |
| 70 network_properties.guid = "stub_cellular1"; | 70 network_properties.guid = "stub_cellular1"; |
| (...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 203 | 203 |
| 204 NetworkList networks_; | 204 NetworkList networks_; |
| 205 scoped_refptr<base::MessageLoopProxy> message_loop_proxy_; | 205 scoped_refptr<base::MessageLoopProxy> message_loop_proxy_; |
| 206 NetworkGuidListCallback networks_changed_observer_; | 206 NetworkGuidListCallback networks_changed_observer_; |
| 207 NetworkGuidListCallback network_list_changed_observer_; | 207 NetworkGuidListCallback network_list_changed_observer_; |
| 208 }; | 208 }; |
| 209 | 209 |
| 210 WiFiService* WiFiService::CreateForTest() { return new FakeWiFiService(); } | 210 WiFiService* WiFiService::CreateForTest() { return new FakeWiFiService(); } |
| 211 | 211 |
| 212 } // namespace wifi | 212 } // namespace wifi |
| OLD | NEW |