blob: 0b69a71170efc23f745c497d267f18ca8ab4e16e [file] [log] [blame]
// Copyright 2018 The Chromium OS Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "shill/cellular/mock_mobile_operator_info.h"
#include <gmock/gmock.h>
using testing::Return;
using testing::ReturnRef;
namespace shill {
MockMobileOperatorInfo::MockMobileOperatorInfo(EventDispatcher* dispatcher,
const std::string& info_owner)
: MobileOperatorInfo(dispatcher, info_owner) {
ON_CALL(*this, IsMobileNetworkOperatorKnown()).WillByDefault(Return(false));
ON_CALL(*this, mccmnc()).WillByDefault(ReturnRef(empty_mccmnc_));
ON_CALL(*this, apn_list()).WillByDefault(ReturnRef(empty_apn_list_));
ON_CALL(*this, olp_list()).WillByDefault(ReturnRef(empty_olp_list_));
ON_CALL(*this, activation_code())
.WillByDefault(ReturnRef(empty_activation_code_));
ON_CALL(*this, operator_name())
.WillByDefault(ReturnRef(empty_operator_name_));
ON_CALL(*this, country()).WillByDefault(ReturnRef(empty_country_));
ON_CALL(*this, uuid()).WillByDefault(ReturnRef(empty_uuid_));
}
MockMobileOperatorInfo::~MockMobileOperatorInfo() = default;
} // namespace shill