#include "components/segmentation_platform/internal/signals/histogram_signal_handler.h"
#include "base/metrics/histogram_macros.h"
#include "base/metrics/metrics_hashes.h"
#include "base/test/task_environment.h"
#include "components/segmentation_platform/internal/database/mock_signal_database.h"
#include "components/segmentation_platform/internal/database/mock_ukm_database.h"
#include "components/segmentation_platform/public/proto/types.pb.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
SignalType;
_;
Eq;
Invoke;
WithArgs;
namespace segmentation_platform {
namespace {
constexpr char kProfileId[] = …;
constexpr char kExpectedHistogram[] = …;
const uint64_t kExpectedHash = …;
constexpr char kExpectedHistogram2[] = …;
const uint64_t kExpectedHash2 = …;
constexpr char kExpectedHistogram3[] = …;
const uint64_t kExpectedHash3 = …;
MATCHER_P2(SampleEq, type, hash, "") { … }
class MockObserver : public HistogramSignalHandler::Observer { … };
class HistogramSignalHandlerTest : public testing::Test { … };
TEST_F(HistogramSignalHandlerTest, HistogramsAreRecorded) { … }
TEST_F(HistogramSignalHandlerTest, HistogramAsValueAndEnum) { … }
TEST_F(HistogramSignalHandlerTest, DisableMetrics) { … }
TEST_F(HistogramSignalHandlerTest, ObserversNotified) { … }
}
}