blob: 384081465b213a453697e1606bb7f8ebaea7e9dd [file] [log] [blame]
// Copyright 2015 The Chromium 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 "chromecast/base/cast_sys_info_dummy.h"
namespace chromecast {
CastSysInfoDummy::CastSysInfoDummy()
: build_type_(BUILD_ENG),
serial_number_("dummy.serial.number"),
product_name_("cast_shell"),
device_model_("dummy model"),
board_name_("dummy board"),
manufacturer_("google"),
system_build_number_(__DATE__ " - " __TIME__),
factory_country_("US"),
factory_locale_list_({"en-US"}) {
}
CastSysInfoDummy::~CastSysInfoDummy() {
}
CastSysInfo::BuildType CastSysInfoDummy::GetBuildType() {
return build_type_;
}
std::string CastSysInfoDummy::GetSystemReleaseChannel() {
return system_release_channel_;
}
std::string CastSysInfoDummy::GetSerialNumber() {
return serial_number_;
}
std::string CastSysInfoDummy::GetProductName() {
return product_name_;
}
std::string CastSysInfoDummy::GetDeviceModel() {
return device_model_;
}
std::string CastSysInfoDummy::GetBoardName() {
return board_name_;
}
std::string CastSysInfoDummy::GetBoardRevision() {
return board_revision_;
}
std::string CastSysInfoDummy::GetManufacturer() {
return manufacturer_;
}
std::string CastSysInfoDummy::GetSystemBuildNumber() {
return system_build_number_;
}
std::string CastSysInfoDummy::GetFactoryCountry() {
return factory_country_;
}
std::vector<std::string> CastSysInfoDummy::GetFactoryLocaleList() {
return factory_locale_list_;
}
std::string CastSysInfoDummy::GetWifiInterface() {
return wifi_interface_;
}
std::string CastSysInfoDummy::GetApInterface() {
return ap_interface_;
}
void CastSysInfoDummy::SetBuildTypeForTesting(
CastSysInfo::BuildType build_type) {
build_type_ = build_type;
}
void CastSysInfoDummy::SetSystemReleaseChannelForTesting(
const std::string& system_release_channel) {
system_release_channel_ = system_release_channel;
}
void CastSysInfoDummy::SetSerialNumberForTesting(
const std::string& serial_number) {
serial_number_ = serial_number;
}
void CastSysInfoDummy::SetProductNameForTesting(
const std::string& product_name) {
product_name_ = product_name;
}
void CastSysInfoDummy::SetDeviceModelForTesting(
const std::string& device_model) {
device_model_ = device_model;
}
void CastSysInfoDummy::SetBoardNameForTesting(const std::string& board_name) {
board_name_ = board_name;
}
void CastSysInfoDummy::SetBoardRevisionForTesting(
const std::string& board_revision) {
board_revision_ = board_revision;
}
void CastSysInfoDummy::SetManufacturerForTesting(
const std::string& manufacturer) {
manufacturer_ = manufacturer;
}
void CastSysInfoDummy::SetSystemBuildNumberForTesting(
const std::string& system_build_number) {
system_build_number_ = system_build_number;
}
void CastSysInfoDummy::SetFactoryCountryForTesting(
const std::string& factory_country) {
factory_country_ = factory_country;
}
void CastSysInfoDummy::SetFactoryLocaleListForTesting(
const std::vector<std::string>& factory_locale_list) {
factory_locale_list_ = factory_locale_list;
}
void CastSysInfoDummy::SetWifiInterfaceForTesting(
const std::string& wifi_interface) {
wifi_interface_ = wifi_interface;
}
void CastSysInfoDummy::SetApInterfaceForTesting(
const std::string& ap_interface) {
ap_interface_ = ap_interface;
}
} // namespace chromecast