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

Side by Side Diff: chrome/utility/wifi/wifi_service_mock.cc

Issue 27722003: Windows-specific implementation of Networking Private API. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Specify wlanapi.lib in chrome.gyp instead of #pragma comment. Created 7 years, 2 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 // 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 "chrome/utility/wifi/wifi_service.h" 5 #include "chrome/utility/wifi/wifi_service.h"
6 #include "base/message_loop/message_loop.h" 6 #include "base/message_loop/message_loop.h"
7 #include "components/onc/onc_constants.h" 7 #include "components/onc/onc_constants.h"
8 8
9 namespace wifi { 9 namespace wifi {
10 10
(...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after
202 WiFiService::NetworkGuidList changed_networks(1, network_guid); 202 WiFiService::NetworkGuidList changed_networks(1, network_guid);
203 networks_changed_observer_.Run(changed_networks); 203 networks_changed_observer_.Run(changed_networks);
204 } 204 }
205 205
206 NetworkList networks_; 206 NetworkList networks_;
207 NetworkGuidListCallback networks_changed_observer_; 207 NetworkGuidListCallback networks_changed_observer_;
208 NetworkGuidListCallback network_list_changed_observer_; 208 NetworkGuidListCallback network_list_changed_observer_;
209 }; 209 };
210 210
211 WiFiService* WiFiService::CreateServiceMock() { return new WiFiServiceMock(); } 211 WiFiService* WiFiService::CreateServiceMock() { return new WiFiServiceMock(); }
212
213 // TODO(mef): Figure out a better platform switching. For now all platform
214 // except Windows use Mock implementation.
215 #if !defined(OS_WIN)
212 WiFiService* WiFiService::CreateService() { return new WiFiServiceMock(); } 216 WiFiService* WiFiService::CreateService() { return new WiFiServiceMock(); }
217 #endif
213 218
214 } // namespace wifi 219 } // namespace wifi
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698