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

Side by Side Diff: components/wifi/fake_wifi_service.cc

Issue 64683014: Mac OS X-specific implementation of Networking Private API. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Made networkingPrivateApi available on OS X. Created 7 years, 1 month 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
« no previous file with comments | « components/wifi.gypi ('k') | components/wifi/wifi_service.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « components/wifi.gypi ('k') | components/wifi/wifi_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698