chromium/components/sharing_message/sharing_sync_preference_unittest.cc

// Copyright 2019 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "components/sharing_message/sharing_sync_preference.h"

#include <memory>

#include "base/time/time.h"
#include "base/values.h"
#include "components/prefs/scoped_user_pref_update.h"
#include "components/sharing_message/fake_device_info.h"
#include "components/sharing_message/pref_names.h"
#include "components/sharing_message/proto/sharing_message.pb.h"
#include "components/sync/protocol/device_info_specifics.pb.h"
#include "components/sync_device_info/device_info.h"
#include "components/sync_device_info/fake_device_info_sync_service.h"
#include "components/sync_device_info/fake_device_info_tracker.h"
#include "components/sync_device_info/fake_local_device_info_provider.h"
#include "components/sync_preferences/testing_pref_service_syncable.h"
#include "testing/gtest/include/gtest/gtest.h"

namespace {

const char kVapidKeyStr[] =;
const std::vector<uint8_t> kVapidKey =;

const char kDeviceVapidFcmToken[] =;
const char kDeviceVapidAuthToken[] =;
const char kDeviceVapidP256dh[] =;
const char kDeviceSenderIdFcmToken[] =;
const char kDeviceSenderIdAuthToken[] =;
const char kDeviceSenderIdP256dh[] =;

const char kAuthorizedEntity[] =;

const char kSharingInfoEnabledFeatures[] =;

}  // namespace

class SharingSyncPreferenceTest : public testing::Test {};

TEST_F(SharingSyncPreferenceTest, UpdateVapidKeys) {}

TEST_F(SharingSyncPreferenceTest, SyncAndRemoveLocalDevice) {}

TEST_F(SharingSyncPreferenceTest, FCMRegistrationGetSet) {}

TEST_F(SharingSyncPreferenceTest, GetLocalSharingInfoForSync) {}

TEST_F(SharingSyncPreferenceTest, GetLocalSharingInfoForSync_InvalidEnum) {}