#include "ui/accessibility/ax_language_detection.h"
#include <stddef.h>
#include <stdint.h>
#include <memory>
#include "base/command_line.h"
#include "base/test/metrics/histogram_tester.h"
#include "base/test/scoped_feature_list.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "ui/accessibility/accessibility_features.h"
#include "ui/accessibility/accessibility_switches.h"
#include "ui/accessibility/ax_enums.mojom.h"
#include "ui/accessibility/ax_node.h"
#include "ui/accessibility/ax_tree.h"
namespace ui {
const std::string kTextEnglish = …;
const std::string kTextFrench = …;
const std::string kTextGerman = …;
const std::string kTextSpanish = …;
class AXLanguageDetectionTestFixture : public testing::Test { … };
class AXLanguageDetectionTestStaticContent
: public AXLanguageDetectionTestFixture { … };
class AXLanguageDetectionTestDynamicContent
: public AXLanguageDetectionTestStaticContent { … };
TEST_F(AXLanguageDetectionTestFixture, StaticContentFeatureFlag) { … }
TEST_F(AXLanguageDetectionTestFixture, DynamicContentFeatureFlag) { … }
TEST_F(AXLanguageDetectionTestFixture, FeatureFlag) { … }
TEST(AXLanguageDetectionTest, LangAttrInheritanceFeatureFlagOff) { … }
TEST(AXLanguageDetectionTest, LangAttrInheritanceFeatureFlagOn) { … }
TEST_F(AXLanguageDetectionTestStaticContent, GetLanguageBoringTree) { … }
TEST_F(AXLanguageDetectionTestStaticContent, Basic) { … }
TEST_F(AXLanguageDetectionTestStaticContent, MetricCollection) { … }
TEST_F(AXLanguageDetectionTestStaticContent, DetectOnly) { … }
TEST_F(AXLanguageDetectionTestStaticContent, kLanguageUntouched) { … }
TEST_F(AXLanguageDetectionTestFixture, ObserverRegistrationObeysFlag) { … }
TEST_F(AXLanguageDetectionTestFixture, ObserverRegistrationObeysFeatureFlag) { … }
TEST_F(AXLanguageDetectionTestDynamicContent, Basic) { … }
TEST_F(AXLanguageDetectionTestDynamicContent, MetricCollection) { … }
TEST_F(AXLanguageDetectionTestDynamicContent, MultipleUpdates) { … }
TEST_F(AXLanguageDetectionTestDynamicContent, NewRoot) { … }
TEST_F(AXLanguageDetectionTestDynamicContent, ChainOfNewNodes) { … }
TEST(AXLanguageDetectionTest, AXLanguageInfoStatsBasic) { … }
TEST(AXLanguageDetectionTest, ShortLanguageDetectorLabeledTest) { … }
TEST(AXLanguageDetectionTest, ShortLanguageDetectorCharacterTest) { … }
TEST(AXLanguageDetectionTest, ShortLanguageDetectorMultipleLanguagesTest) { … }
TEST(AXLanguageDetectionTest, DetectLanguagesForRoleTest) { … }
}