chromium/chrome/browser/metrics/startup_metrics_browsertest.cc

// Copyright 2017 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include <vector>

#include "base/metrics/histogram_base.h"
#include "base/metrics/histogram_samples.h"
#include "base/metrics/statistics_recorder.h"
#include "base/run_loop.h"
#include "base/test/bind.h"
#include "build/branding_buildflags.h"
#include "build/build_config.h"
#include "chrome/test/base/platform_browser_test.h"
#include "components/startup_metric_utils/browser/startup_metric_utils.h"
#include "content/public/test/browser_test.h"

#if BUILDFLAG(IS_ANDROID)
#include "base/android/build_info.h"
#endif

StartupMetricsTest;

namespace {

constexpr const char* kStartupMetrics[] =;

void AddProcessCreateMetrics(std::vector<const char*>& v) {}

}  // namespace

// Verify that startup histograms are logged on browser startup.
// TODO(crbug.com/40919406): Re-enable this test
// TODO(b/321634178): Disable the test on Lacros due to flakiness.
#if (BUILDFLAG(IS_WIN) && defined(ARCH_CPU_X86_64)) || \
    BUILDFLAG(IS_CHROMEOS_LACROS)
#define MAYBE_ReportsValues
#else
#define MAYBE_ReportsValues
#endif
IN_PROC_BROWSER_TEST_F(StartupMetricsTest, MAYBE_ReportsValues) {}