#include "components/sharing_message/sharing_utils.h"
#include "base/test/scoped_feature_list.h"
#include "components/sharing_message/fake_device_info.h"
#include "components/sharing_message/features.h"
#include "components/sharing_message/proto/sharing_message.pb.h"
#include "components/sharing_message/sharing_constants.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 "testing/gtest/include/gtest/gtest.h"
namespace {
const char kDeviceGuid[] = …;
const char kDeviceName[] = …;
const char kVapidFCMToken[] = …;
const char kVapidP256dh[] = …;
const char kVapidAuthSecret[] = …;
const char kSenderIdFCMToken[] = …;
const char kSenderIdP256dh[] = …;
const char kSenderIdAuthSecret[] = …;
class SharingUtilsTest : public testing::Test { … };
}
TEST_F(SharingUtilsTest, SyncEnabled_FullySynced) { … }
TEST_F(SharingUtilsTest, SyncDisabled_FullySynced_MissingDataTypes) { … }
TEST_F(SharingUtilsTest, SyncEnabled_SigninOnly) { … }
TEST_F(SharingUtilsTest, SyncDisabled_SigninOnly_MissingDataTypes) { … }
TEST_F(SharingUtilsTest, SyncDisabled_Disabled) { … }
TEST_F(SharingUtilsTest, SyncDisabled_Configuring) { … }
TEST_F(SharingUtilsTest, GetFCMChannel) { … }
TEST_F(SharingUtilsTest, GetDevicePlatform) { … }