#include "components/ntp_tiles/metrics.h"
#include <stddef.h>
#include <string>
#include "base/test/metrics/histogram_tester.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace ntp_tiles {
namespace metrics {
namespace {
constexpr int kUnknownTitleSource = …;
constexpr int kManifestTitleSource = …;
constexpr int kMetaTagTitleSource = …;
constexpr int kTitleTagTitleSource = …;
constexpr int kInferredTitleSource = …;
IconType;
ElementsAre;
IsEmpty;
MATCHER_P3(IsBucketBetween, lower_bound, upper_bound, count, "") { … }
class Builder { … };
TEST(RecordPageImpressionTest, ShouldRecordNumberOfTiles) { … }
TEST(RecordTileImpressionTest, ShouldRecordUmaForIcons) { … }
TEST(RecordTileImpressionTest, ShouldRecordImpressionsForTileTitleSource) { … }
TEST(RecordTileImpressionTest, ShouldRecordUmaForIconType) { … }
TEST(RecordTileClickTest, ShouldRecordUmaForIcon) { … }
TEST(RecordTileClickTest, ShouldNotRecordUnknownTileType) { … }
TEST(RecordTileClickTest, ShouldRecordClicksForTileTitleSource) { … }
TEST(RecordTileClickTest, ShouldRecordClicksForIconType) { … }
}
}
}