#include "third_party/blink/renderer/core/timing/profiler_group.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/blink/renderer/bindings/core/v8/script_function.h"
#include "third_party/blink/renderer/bindings/core/v8/v8_binding_for_testing.h"
#include "third_party/blink/renderer/bindings/core/v8/v8_profiler_init_options.h"
#include "third_party/blink/renderer/core/timing/profiler.h"
#include "third_party/blink/renderer/platform/testing/task_environment.h"
#include "third_party/blink/renderer/platform/testing/unit_test_helpers.h"
namespace blink {
namespace {
static constexpr int kLargeProfilerCount = …;
static constexpr int kMaxConcurrentProfilerCount = …;
}
class ProfilerGroupTest : public testing::Test { … };
TEST_F(ProfilerGroupTest, StopProfiler) { … }
TEST_F(ProfilerGroupTest, StopProfilerOnGroupDeallocate) { … }
TEST_F(ProfilerGroupTest, CreateProfiler) { … }
TEST_F(ProfilerGroupTest, ClampedSamplingIntervalZero) { … }
TEST_F(ProfilerGroupTest, ClampedSamplingIntervalNext) { … }
TEST_F(ProfilerGroupTest,
V8ProfileLimitThrowsExceptionWhenMaxConcurrentReached) { … }
TEST_F(ProfilerGroupTest, NegativeSamplingInterval) { … }
TEST_F(ProfilerGroupTest, OverflowSamplingInterval) { … }
TEST_F(ProfilerGroupTest, Bug1119865) { … }
TEST_F(ProfilerGroupTest, LeakProfiler) { … }
TEST_F(ProfilerGroupTest, LeakProfilerWithContext) { … }
TEST_F(ProfilerGroupTest, Bug1297283) { … }
}