chromium/components/enterprise/browser/identifiers/profile_id_service_unittest.cc

// Copyright 2022 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/enterprise/browser/identifiers/profile_id_service.h"

#include <utility>

#include "base/base64url.h"
#include "base/hash/sha1.h"
#include "base/memory/raw_ptr.h"
#include "base/test/metrics/histogram_tester.h"
#include "components/enterprise/browser/identifiers/identifiers_prefs.h"
#include "components/enterprise/browser/identifiers/mock_profile_id_delegate.h"
#include "components/prefs/testing_pref_service.h"
#include "testing/gtest/include/gtest/gtest.h"

Return;

namespace enterprise {

namespace {

constexpr char kFakeProfileGUID[] =;
constexpr char kFakeDeviceId[] =;
constexpr char kProfildeIdErrorHistogramName[] =;
constexpr char kProfildeIdStatusHistogramName[] =;

}  // namespace

MockProfileIdDelegate;

class ProfileIdServiceTest : public testing::Test {};

// Tests that no profile ID is retrieved if the profile GUID is empty.
TEST_F(ProfileIdServiceTest, GetProfileId_Failure_NoProfileGuid) {}

// Tests that no profile ID is retrieved if the device ID is empty.
TEST_F(ProfileIdServiceTest, GetProfileId_Failure_NoDeviceId) {}

// Tests a successful profile ID generation.
TEST_F(ProfileIdServiceTest, GetProfileId_Success) {}

}  // namespace enterprise