chromium/components/consent_auditor/consent_auditor_impl_unittest.cc

// Copyright 2018 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/consent_auditor/consent_auditor_impl.h"

#include <array>
#include <memory>
#include <string>
#include <utility>
#include <vector>

#include "base/hash/sha1.h"
#include "base/memory/raw_ptr.h"
#include "base/memory/weak_ptr.h"
#include "base/test/simple_test_clock.h"
#include "base/time/time.h"
#include "components/sync/protocol/user_consent_specifics.pb.h"
#include "components/sync/test/fake_data_type_controller_delegate.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"

ArcPlayTermsOfServiceConsent;
AssistantActivityControlConsent;
SyncConsent;
UserConsentSpecifics;
UserConsentTypes;
ElementsAreArray;

namespace consent_auditor {

namespace {

// Fake product locate for testing.
constexpr char kCurrentAppLocale[] =;

// Fake message ids.
constexpr std::array<int, 3> kDescriptionMessageIds =;
constexpr int kConfirmationMessageId =;

class FakeConsentSyncBridge : public ConsentSyncBridge {};

}  // namespace

class ConsentAuditorImplTest : public testing::Test {};

TEST_F(ConsentAuditorImplTest, RecordGaiaConsentAsUserConsent) {}

TEST_F(ConsentAuditorImplTest, RecordArcPlayConsentRevocation) {}

TEST_F(ConsentAuditorImplTest, RecordArcPlayConsent) {}

TEST_F(ConsentAuditorImplTest, ShouldReturnSyncDelegateWhenBridgePresent) {}

TEST_F(ConsentAuditorImplTest, RecordAssistantActivityControlConsent) {}

}  // namespace consent_auditor