1 //
2 // Copyright (C) 2014 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/cellular/mock_mobile_operator_info.h"
18
19 #include <gmock/gmock.h>
20
21 namespace shill {
22
MockMobileOperatorInfo(EventDispatcher * dispatcher,const std::string & info_owner)23 MockMobileOperatorInfo::MockMobileOperatorInfo(EventDispatcher* dispatcher,
24 const std::string& info_owner)
25 : MobileOperatorInfo(dispatcher, info_owner) {}
26
~MockMobileOperatorInfo()27 MockMobileOperatorInfo::~MockMobileOperatorInfo() {}
28
SetEmptyDefaultsForProperties()29 void MockMobileOperatorInfo::SetEmptyDefaultsForProperties() {
30 ON_CALL(*this, mccmnc()).WillByDefault(ReturnRef(empty_mccmnc_));
31 ON_CALL(*this, olp_list()).WillByDefault(ReturnRef(empty_olp_list_));
32 ON_CALL(*this, activation_code())
33 .WillByDefault(ReturnRef(empty_activation_code_));
34 ON_CALL(*this, operator_name())
35 .WillByDefault(ReturnRef(empty_operator_name_));
36 ON_CALL(*this, country())
37 .WillByDefault(ReturnRef(empty_country_));
38 ON_CALL(*this, uuid()).WillByDefault(ReturnRef(empty_uuid_));
39 }
40
41 } // namespace shill
42