#include "chrome/browser/metrics/power/power_metrics.h"
#include "base/strings/strcat.h"
#include "base/test/metrics/histogram_tester.h"
#include "build/build_config.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace {
struct HistogramSampleExpectation { … };
void ExpectHistogramSamples(
base::HistogramTester* histogram_tester,
const std::vector<const char*>& suffixes,
const std::vector<HistogramSampleExpectation>& expectations) { … }
}
TEST(PowerMetricsTest, ReportAggregatedProcessMetricsHistograms) { … }
TEST(PowerMetricsTest, CalculateDischargeRateMilliwatts_mWh) { … }
TEST(PowerMetricsTest, CalculateDischargeRateMilliwatts_mAh) { … }