#include "base/test/metrics/histogram_tester.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/blink/public/common/scheme_registry.h"
#include "third_party/blink/public/mojom/use_counter/metrics/css_property_id.mojom-blink.h"
#include "third_party/blink/renderer/core/css/css_property_names.h"
#include "third_party/blink/renderer/core/css/properties/css_property.h"
#include "third_party/blink/renderer/core/dom/shadow_root.h"
#include "third_party/blink/renderer/core/frame/deprecation/deprecation.h"
#include "third_party/blink/renderer/core/frame/local_dom_window.h"
#include "third_party/blink/renderer/core/frame/local_frame.h"
#include "third_party/blink/renderer/core/html/html_html_element.h"
#include "third_party/blink/renderer/core/loader/document_loader.h"
#include "third_party/blink/renderer/core/loader/empty_clients.h"
#include "third_party/blink/renderer/core/page/page.h"
#include "third_party/blink/renderer/core/testing/dummy_page_holder.h"
#include "third_party/blink/renderer/platform/instrumentation/use_counter.h"
#include "third_party/blink/renderer/platform/runtime_enabled_features.h"
#include "third_party/blink/renderer/platform/testing/task_environment.h"
#include "third_party/blink/renderer/platform/testing/url_test_helpers.h"
#include "third_party/blink/renderer/platform/weborigin/kurl.h"
#include "third_party/blink/renderer/platform/weborigin/scheme_registry.h"
#include "third_party/blink/renderer/platform/wtf/text/string_builder.h"
namespace {
const char kExtensionFeaturesHistogramName[] = …;
const char kExtensionUrl[] = …;
int GetPageVisitsBucketforHistogram(const std::string& histogram_name) { … }
}
namespace blink {
WebFeature;
class UseCounterImplTest : public testing::Test { … };
class UseCounterImplBrowserReportTest
: public UseCounterImplTest,
public ::testing::WithParamInterface< const char*> { … };
INSTANTIATE_TEST_SUITE_P(…);
TEST_P(UseCounterImplBrowserReportTest, ReportOnlyHTTPFamily) { … }
TEST_F(UseCounterImplTest, RecordingExtensions) { … }
TEST_F(UseCounterImplTest, CSSSelectorPseudoWhere) { … }
TEST_F(UseCounterImplTest, CSSSelectorPseudoAnyLink) { … }
TEST_F(UseCounterImplTest, CSSSelectorPseudoWebkitAnyLink) { … }
TEST_F(UseCounterImplTest, CSSTypedOMStylePropertyMap) { … }
TEST_F(UseCounterImplTest, CSSSelectorPseudoIs) { … }
TEST_F(UseCounterImplTest, CSSSelectorPseudoDir) { … }
TEST_F(UseCounterImplTest, CSSSelectorNthChildOfSelector) { … }
TEST_F(UseCounterImplTest, CSSGridLayoutPercentageColumnIndefiniteWidth) { … }
TEST_F(UseCounterImplTest, CSSFlexibleBox) { … }
TEST_F(UseCounterImplTest, CSSFlexibleBoxInline) { … }
TEST_F(UseCounterImplTest, CSSFlexibleBoxButton) { … }
TEST_F(UseCounterImplTest, HTMLRootContained) { … }
TEST_F(UseCounterImplTest, HTMLBodyContained) { … }
class DeprecationTest : public testing::Test { … };
TEST_F(DeprecationTest, InspectorDisablesDeprecation) { … }
TEST_F(UseCounterImplTest, CSSUnknownNamespacePrefixInSelector) { … }
TEST_F(UseCounterImplTest, CSSSelectorHostContextInLiveProfile) { … }
TEST_F(UseCounterImplTest, CSSSelectorHostContextInSnapshotProfile) { … }
TEST_F(UseCounterImplTest, UniqueCSSSampleIds) { … }
TEST_F(UseCounterImplTest, MaximumCSSSampleId) { … }
TEST_F(UseCounterImplTest, CSSMarkerPseudoElementUA) { … }
TEST_F(UseCounterImplTest, CSSMarkerPseudoElementAuthor) { … }
TEST_F(UseCounterImplTest, BackgroundClip) { … }
TEST_F(UseCounterImplTest, H1UserAgentFontSizeInSectionApplied) { … }
}