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

Unified 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: Renamed feature platforms to 'win' and 'mac' to match Platforms from model.py 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/utility/wifi/wifi_service.h ('k') | chrome/utility/wifi/wifi_service_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/utility/wifi/wifi_service_mock.cc
diff --git a/chrome/utility/wifi/wifi_service_mock.cc b/chrome/utility/wifi/wifi_service_mock.cc
index aa4bec5d3c10da299e2fdc58ec07156c554327d6..e6165b7619527f3a5e0609cbedda755914d0cc34 100644
--- a/chrome/utility/wifi/wifi_service_mock.cc
+++ b/chrome/utility/wifi/wifi_service_mock.cc
@@ -77,6 +77,12 @@ class WiFiServiceMock : public WiFiService {
}
}
+ virtual bool Initialize() OVERRIDE {
+ return true;
+ }
+
+ virtual void UnInitialize() OVERRIDE {}
+
virtual void GetProperties(const std::string& network_guid,
const NetworkPropertiesCallback& callback,
const ErrorCallback& error_callback) OVERRIDE {
@@ -209,6 +215,11 @@ class WiFiServiceMock : public WiFiService {
};
WiFiService* WiFiService::CreateServiceMock() { return new WiFiServiceMock(); }
+
+// TODO(mef): Figure out a better platform switching. For now all platform
+// except Windows use Mock implementation.
+#if !defined(OS_WIN)
WiFiService* WiFiService::CreateService() { return new WiFiServiceMock(); }
+#endif
} // namespace wifi
« no previous file with comments | « chrome/utility/wifi/wifi_service.h ('k') | chrome/utility/wifi/wifi_service_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698