#ifdef UNSAFE_BUFFERS_BUILD
#pragma allow_unsafe_buffers
#endif
#include "cc/metrics/events_metrics_manager.h"
#include <utility>
#include <vector>
#include "base/functional/bind.h"
#include "base/test/simple_test_tick_clock.h"
#include "cc/metrics/event_metrics.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "ui/events/types/event_type.h"
#include "ui/events/types/scroll_input_type.h"
namespace cc {
namespace {
MATCHER(UniquePtrMatches, negation ? "do not match" : "match") { … }
EventsMetricsManager::ScopedMonitor::DoneCallback CreateSimpleDoneCallback(
std::unique_ptr<EventMetrics> metrics) { … }
}
#define EXPECT_SCOPED(statements) …
IsEmpty;
Message;
UnorderedPointwise;
class EventsMetricsManagerTest : public testing::Test { … };
TEST_F(EventsMetricsManagerTest, EventsMetricsSaved) { … }
TEST_F(EventsMetricsManagerTest, NestedEventsMetrics) { … }
}