1c0beca55d290fe0b1c96d78cbbcf94b05c23f5a5Peter Qiu//
2c0beca55d290fe0b1c96d78cbbcf94b05c23f5a5Peter Qiu// Copyright (C) 2014 The Android Open Source Project
3c0beca55d290fe0b1c96d78cbbcf94b05c23f5a5Peter Qiu//
4c0beca55d290fe0b1c96d78cbbcf94b05c23f5a5Peter Qiu// Licensed under the Apache License, Version 2.0 (the "License");
5c0beca55d290fe0b1c96d78cbbcf94b05c23f5a5Peter Qiu// you may not use this file except in compliance with the License.
6c0beca55d290fe0b1c96d78cbbcf94b05c23f5a5Peter Qiu// You may obtain a copy of the License at
7c0beca55d290fe0b1c96d78cbbcf94b05c23f5a5Peter Qiu//
8c0beca55d290fe0b1c96d78cbbcf94b05c23f5a5Peter Qiu//      http://www.apache.org/licenses/LICENSE-2.0
9c0beca55d290fe0b1c96d78cbbcf94b05c23f5a5Peter Qiu//
10c0beca55d290fe0b1c96d78cbbcf94b05c23f5a5Peter Qiu// Unless required by applicable law or agreed to in writing, software
11c0beca55d290fe0b1c96d78cbbcf94b05c23f5a5Peter Qiu// distributed under the License is distributed on an "AS IS" BASIS,
12c0beca55d290fe0b1c96d78cbbcf94b05c23f5a5Peter Qiu// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13c0beca55d290fe0b1c96d78cbbcf94b05c23f5a5Peter Qiu// See the License for the specific language governing permissions and
14c0beca55d290fe0b1c96d78cbbcf94b05c23f5a5Peter Qiu// limitations under the License.
15c0beca55d290fe0b1c96d78cbbcf94b05c23f5a5Peter Qiu//
1695afcbb30725d13e05934f9489a3a3187f2287cePrathmesh Prabhu
17c54afe521739065a5d77e7c049acdb5e603f0592Ben Chan#include "shill/cellular/mock_mobile_operator_info.h"
1895afcbb30725d13e05934f9489a3a3187f2287cePrathmesh Prabhu
1995afcbb30725d13e05934f9489a3a3187f2287cePrathmesh Prabhu#include <gmock/gmock.h>
2095afcbb30725d13e05934f9489a3a3187f2287cePrathmesh Prabhu
2195afcbb30725d13e05934f9489a3a3187f2287cePrathmesh Prabhunamespace shill {
2295afcbb30725d13e05934f9489a3a3187f2287cePrathmesh Prabhu
232f6c78991e37f5fa71f2ba4d1669be73f0a6dfd4Paul StewartMockMobileOperatorInfo::MockMobileOperatorInfo(EventDispatcher* dispatcher,
242f6c78991e37f5fa71f2ba4d1669be73f0a6dfd4Paul Stewart                                               const std::string& info_owner)
2570190b3ae0b63aa49e9548a71af2fc1ac80c0ea5Miao-chen Chou    : MobileOperatorInfo(dispatcher, info_owner) {}
2695afcbb30725d13e05934f9489a3a3187f2287cePrathmesh Prabhu
2795afcbb30725d13e05934f9489a3a3187f2287cePrathmesh PrabhuMockMobileOperatorInfo::~MockMobileOperatorInfo() {}
2895afcbb30725d13e05934f9489a3a3187f2287cePrathmesh Prabhu
2995afcbb30725d13e05934f9489a3a3187f2287cePrathmesh Prabhuvoid MockMobileOperatorInfo::SetEmptyDefaultsForProperties() {
3095afcbb30725d13e05934f9489a3a3187f2287cePrathmesh Prabhu  ON_CALL(*this, mccmnc()).WillByDefault(ReturnRef(empty_mccmnc_));
3192df619a98585c7fe7b072fe07f60b43c9ec52ddPrathmesh Prabhu  ON_CALL(*this, olp_list()).WillByDefault(ReturnRef(empty_olp_list_));
32f2288216af22b1be995ec88e48e6531164769f7fPrathmesh Prabhu  ON_CALL(*this, activation_code())
33f2288216af22b1be995ec88e48e6531164769f7fPrathmesh Prabhu      .WillByDefault(ReturnRef(empty_activation_code_));
3495afcbb30725d13e05934f9489a3a3187f2287cePrathmesh Prabhu  ON_CALL(*this, operator_name())
3595afcbb30725d13e05934f9489a3a3187f2287cePrathmesh Prabhu      .WillByDefault(ReturnRef(empty_operator_name_));
366e0a8ef3cacc359b80849047aecba6f1c7007e8aPrathmesh Prabhu  ON_CALL(*this, country())
376e0a8ef3cacc359b80849047aecba6f1c7007e8aPrathmesh Prabhu      .WillByDefault(ReturnRef(empty_country_));
38401a5b930545f17b8f6a7cc5851896bdbf1beb45Prathmesh Prabhu  ON_CALL(*this, uuid()).WillByDefault(ReturnRef(empty_uuid_));
3995afcbb30725d13e05934f9489a3a3187f2287cePrathmesh Prabhu}
4095afcbb30725d13e05934f9489a3a3187f2287cePrathmesh Prabhu
4195afcbb30725d13e05934f9489a3a3187f2287cePrathmesh Prabhu}  // namespace shill
42