1 // 2 // Copyright (C) 2012 The Android Open Source Project 3 // 4 // Licensed under the Apache License, Version 2.0 (the "License"); 5 // you may not use this file except in compliance with the License. 6 // You may obtain a copy of the License at 7 // 8 // http://www.apache.org/licenses/LICENSE-2.0 9 // 10 // Unless required by applicable law or agreed to in writing, software 11 // distributed under the License is distributed on an "AS IS" BASIS, 12 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 // See the License for the specific language governing permissions and 14 // limitations under the License. 15 // 16 17 #include "shill/wifi/mock_wifi_service.h" 18 19 using std::string; 20 using std::vector; 21 22 namespace shill { 23 24 class ControlInterface; 25 class EventDispatcher; 26 class Manager; 27 28 MockWiFiService::MockWiFiService(ControlInterface* control_interface, 29 EventDispatcher* dispatcher, 30 Metrics* metrics, 31 Manager* manager, 32 WiFiProvider* provider, 33 const vector<uint8_t>& ssid, 34 const string& mode, 35 const string& security, 36 bool hidden_ssid) 37 : WiFiService( 38 control_interface, dispatcher, metrics, manager, provider, ssid, mode, 39 security, hidden_ssid) { 40 ON_CALL(*this, GetSupplicantConfigurationParameters()) 41 .WillByDefault(testing::Return(KeyValueStore())); 42 } 43 44 MockWiFiService::~MockWiFiService() {} 45 46 } // namespace shill 47