#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 { … };
TEST_F(PassphraseTypeMetricsProviderTest, NoSyncService) { … }
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) { … }
}
}