#include "components/metrics/metrics_log_store.h"
#include "components/metrics/metrics_logs_event_manager.h"
#include "components/metrics/metrics_pref_names.h"
#include "components/metrics/test/test_metrics_service_client.h"
#include "components/metrics/unsent_log_store_metrics_impl.h"
#include "components/prefs/pref_registry_simple.h"
#include "components/prefs/testing_pref_service.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace metrics {
namespace {
const char kTestPrefName[] = …;
class TestUnsentLogStore : public UnsentLogStore { … };
class MetricsLogStoreTest : public testing::Test { … };
}
TEST_F(MetricsLogStoreTest, StandardFlow) { … }
TEST_F(MetricsLogStoreTest, StoreAndLoad) { … }
TEST_F(MetricsLogStoreTest, StoreStagedOngoingLog) { … }
TEST_F(MetricsLogStoreTest, StoreStagedInitialLog) { … }
TEST_F(MetricsLogStoreTest, LargeLogDiscarding) { … }
TEST_F(MetricsLogStoreTest, DiscardOrder) { … }
TEST_F(MetricsLogStoreTest, WritesToAlternateOngoingLogStore) { … }
TEST_F(MetricsLogStoreTest, AlternateOngoingLogStoreGetsEventsLogsManager) { … }
TEST_F(MetricsLogStoreTest, StagesInitialOverBothOngoing) { … }
TEST_F(MetricsLogStoreTest, StagesAlternateOverOngoing) { … }
TEST_F(MetricsLogStoreTest,
UnboundAlternateOngoingLogStoreWritesToNativeOngoing) { … }
TEST_F(MetricsLogStoreTest,
StageOngoingLogWhenAlternateOngoingLogStoreIsEmpty) { … }
}