#include "components/send_tab_to_self/target_device_info.h"
#include "base/test/scoped_feature_list.h"
#include "components/send_tab_to_self/features.h"
#include "components/sync/protocol/device_info_specifics.pb.h"
#include "components/sync/protocol/sync_enums.pb.h"
#include "components/sync/test/test_sync_service.h"
#include "components/sync_device_info/device_info.h"
#include "components/sync_device_info/device_info_util.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace send_tab_to_self {
namespace {
class TargetDeviceInfoTest : public testing::Test { … };
static std::unique_ptr<syncer::DeviceInfo> CreateFakeDeviceInfo(
const std::string& id,
const std::string& name,
sync_pb::SyncEnums_DeviceType device_type,
syncer::DeviceInfo::OsType os_type,
syncer::DeviceInfo::FormFactor form_factor,
const std::string& manufacturer_name,
const std::string& model_name) { … }
}
TEST_F(TargetDeviceInfoTest, GetSharingDeviceNames_AppleDevices_SigninOnly) { … }
TEST_F(TargetDeviceInfoTest, GetSharingDeviceNames_AppleDevices_FullySynced) { … }
TEST_F(TargetDeviceInfoTest, GetSharingDeviceNames_ChromeOSDevices) { … }
TEST_F(TargetDeviceInfoTest, GetSharingDeviceNames_AndroidPhones) { … }
TEST_F(TargetDeviceInfoTest, GetSharingDeviceNames_AndroidTablets) { … }
TEST_F(TargetDeviceInfoTest, GetSharingDeviceNames_Windows_SigninOnly) { … }
TEST_F(TargetDeviceInfoTest, GetSharingDeviceNames_Windows_FullySynced) { … }
TEST_F(TargetDeviceInfoTest, GetSharingDeviceNames_Linux_SigninOnly) { … }
TEST_F(TargetDeviceInfoTest, GetSharingDeviceNames_Linux_FullySynced) { … }
TEST_F(TargetDeviceInfoTest, CheckManufacturerNameCapitalization) { … }
}