#include "third_party/blink/renderer/core/timing/performance.h"
#include <algorithm>
#include "base/ranges/algorithm.h"
#include "base/test/metrics/histogram_tester.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/blink/public/platform/task_type.h"
#include "third_party/blink/renderer/bindings/core/v8/v8_binding_for_testing.h"
#include "third_party/blink/renderer/bindings/core/v8/v8_performance_observer_callback.h"
#include "third_party/blink/renderer/bindings/core/v8/v8_performance_observer_init.h"
#include "third_party/blink/renderer/core/execution_context/execution_context.h"
#include "third_party/blink/renderer/core/frame/local_dom_window.h"
#include "third_party/blink/renderer/core/performance_entry_names.h"
#include "third_party/blink/renderer/core/testing/null_execution_context.h"
#include "third_party/blink/renderer/core/testing/page_test_base.h"
#include "third_party/blink/renderer/core/timing/back_forward_cache_restoration.h"
#include "third_party/blink/renderer/core/timing/performance_long_task_timing.h"
#include "third_party/blink/renderer/core/timing/performance_observer.h"
#include "third_party/blink/renderer/core/timing/window_performance.h"
#include "third_party/blink/renderer/platform/loader/fetch/resource_response.h"
namespace blink {
namespace {
constexpr int kTimeOrigin = …;
constexpr int kEvent1Time = …;
constexpr int kEvent1PageshowStart = …;
constexpr int kEvent1PageshowEnd = …;
constexpr int kEvent2Time = …;
constexpr int kEvent2PageshowStart = …;
constexpr int kEvent2PageshowEnd = …;
}
class LocalDOMWindow;
class TestPerformance : public Performance { … };
class PerformanceTest : public PageTestBase { … };
TEST_F(PerformanceTest, Register) { … }
TEST_F(PerformanceTest, Activate) { … }
TEST_F(PerformanceTest, AddLongTaskTiming) { … }
TEST_F(PerformanceTest, BackForwardCacheRestoration) { … }
TEST_F(PerformanceTest, InsertEntryOnEmptyBuffer) { … }
TEST_F(PerformanceTest, InsertEntryOnExistingBuffer) { … }
TEST_F(PerformanceTest, InsertEntryToFrontOfBuffer) { … }
TEST_F(PerformanceTest, MergePerformanceEntryVectorsTest) { … }
}