chromium/components/sync/service/passphrase_type_metrics_provider_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/sync/service/passphrase_type_metrics_provider.h"

#include <memory>
#include <vector>

#include "base/functional/bind.h"
#include "base/test/metrics/histogram_tester.h"
#include "components/sync/base/passphrase_enums.h"
#include "components/sync/test/mock_sync_service.h"
#include "components/sync/test/sync_user_settings_mock.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"

namespace syncer {

namespace {

const char kMetricWithoutCaching[] =;
const char kMetricWithCaching[] =;

Return;

class PassphraseTypeMetricsProviderTest : public testing::Test {};

// Corresponds to the case where profiles were not initialized yet, and
// consequently there is no SyncService.
TEST_F(PassphraseTypeMetricsProviderTest, NoSyncService) {}

// The sync engine wasn't initialized yet, but will eventually be. This test
// captures the difference between Sync.PassphraseType2 (should record kUnknown)
// and Sync.PassphraseType4 (should check the cached passphrase type and
// record the correct value).
TEST_F(PassphraseTypeMetricsProviderTest, TransportInitializing) {}

TEST_F(PassphraseTypeMetricsProviderTest, ShouldRecordMultipleSyncingProfiles) {}

TEST_F(PassphraseTypeMetricsProviderTest,
       ShouldRecordKeystorePassphraseWithMultipleProfiles) {}

TEST_F(PassphraseTypeMetricsProviderTest, ShouldRecordImplicitPassphrase) {}

TEST_F(PassphraseTypeMetricsProviderTest, ShouldRecordKeystorePassphrase) {}

TEST_F(PassphraseTypeMetricsProviderTest,
       ShouldRecordFrozenImplicitPassphrase) {}

TEST_F(PassphraseTypeMetricsProviderTest, ShouldRecordCustomPassphrase) {}

TEST_F(PassphraseTypeMetricsProviderTest, ShouldRecordTrustedVaultPassphrase) {}

}  // namespace

}  // namespace syncer