chromium/components/translate/core/browser/translate_metrics_logger_impl_unittest.cc

// Copyright 2020 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/translate/core/browser/translate_metrics_logger_impl.h"

#include <memory>
#include <vector>

#include "base/logging.h"
#include "base/metrics/metrics_hashes.h"
#include "base/test/metrics/histogram_tester.h"
#include "base/test/simple_test_tick_clock.h"
#include "base/test/task_environment.h"
#include "base/time/time.h"
#include "components/language/core/browser/language_prefs.h"
#include "components/sync_preferences/testing_pref_service_syncable.h"
#include "components/ukm/test_ukm_recorder.h"
#include "services/metrics/public/cpp/metrics_utils.h"
#include "services/metrics/public/cpp/ukm_builders.h"
#include "testing/gtest/include/gtest/gtest.h"

namespace translate {
namespace testing {

namespace {

const char* kAllUkmMetricNames[] =;

}  // namespace

class TranslateMetricsLoggerImplTest : public ::testing::Test {};

TEST_F(TranslateMetricsLoggerImplTest, RecordUkmMetrics) {}

TEST_F(TranslateMetricsLoggerImplTest, MultipleRecordMetrics) {}

TEST_F(TranslateMetricsLoggerImplTest, LogRankerMetrics) {}

TEST_F(TranslateMetricsLoggerImplTest, LogTriggerDecision) {}

TEST_F(TranslateMetricsLoggerImplTest, LogHrefTriggerDecision) {}

TEST_F(TranslateMetricsLoggerImplTest, LogHrefOverrideTriggerDecision) {}

TEST_F(TranslateMetricsLoggerImplTest,
       LogAutotranslateToPredefinedTargetOverrideTriggerDecision) {}

TEST_F(TranslateMetricsLoggerImplTest, LogTranslationAndReversion) {}

TEST_F(TranslateMetricsLoggerImplTest, LogAutoTranslationSuccess) {}

TEST_F(TranslateMetricsLoggerImplTest, LogAutoTranslationFailed) {}

TEST_F(TranslateMetricsLoggerImplTest, LogAutoTranslationSuccessThenRevert) {}

TEST_F(TranslateMetricsLoggerImplTest, LogTranslationLanguages) {}

TEST_F(TranslateMetricsLoggerImplTest, LogTranslateErrors) {}

TEST_F(TranslateMetricsLoggerImplTest, LogTranslateState) {}

TEST_F(TranslateMetricsLoggerImplTest, TrackTimeTranslatedAndNotTranslated) {}

TEST_F(TranslateMetricsLoggerImplTest,
       TrackTimeTranslatedAndNotTranslated_LongTranslation) {}

TEST_F(TranslateMetricsLoggerImplTest, LogSourceLanguage) {}

TEST_F(TranslateMetricsLoggerImplTest, LogTargetLanguage) {}

TEST_F(TranslateMetricsLoggerImplTest, LogMaxTimeToTranslate) {}

TEST_F(TranslateMetricsLoggerImplTest, LogUIInteraction) {}

TEST_F(TranslateMetricsLoggerImplTest, LogApplicationStartMetrics) {}

}  // namespace testing

}  // namespace translate