#include "chrome/browser/privacy_budget/encountered_surface_tracker.h"
#include "base/containers/flat_set.h"
#include "base/rand_util.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/blink/public/common/privacy_budget/identifiable_surface.h"
namespace {
uint64_t metric(uint64_t i) { … }
}
TEST(EncounteredSurfaceTrackerTest, Dedup) { … }
TEST(EncounteredSurfaceTrackerTest, NeverDropsNewSurface) { … }
TEST(EncounteredSurfaceTrackerTest, NeverDropsNewSource) { … }
TEST(EncounteredSurfaceTrackerTest, SizeLimitForSources) { … }
TEST(EncounteredSurfaceTrackerTest, SizeLimitForSurfaces) { … }
TEST(EncounteredSurfaceTrackerTest, Reset) { … }
TEST(EncounteredSurfaceTrackerTest, InvalidMetric) { … }