This source file includes following definitions.
- TEST
- TEST
- TEST
#include "content/browser/accessibility/accessibility_mode_helper.h"
#include "content/common/view_message_enums.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace content {
TEST(AccessibilityModeHelperTest, TestNoOpRemove) {
EXPECT_EQ(AccessibilityModeComplete,
RemoveAccessibilityModeFrom(AccessibilityModeComplete,
AccessibilityModeOff));
}
TEST(AccessibilityModeHelperTest, TestRemoveSelf) {
EXPECT_EQ(AccessibilityModeOff,
RemoveAccessibilityModeFrom(AccessibilityModeComplete,
AccessibilityModeComplete));
EXPECT_EQ(
AccessibilityModeOff,
RemoveAccessibilityModeFrom(AccessibilityModeEditableTextOnly,
AccessibilityModeEditableTextOnly));
}
TEST(AccessibilityModeHelperTest, TestAddMode) {
EXPECT_EQ(
AccessibilityModeComplete,
AddAccessibilityModeTo(AccessibilityModeEditableTextOnly,
AccessibilityModeComplete));
EXPECT_EQ(
AccessibilityModeComplete,
AddAccessibilityModeTo(AccessibilityModeEditableTextOnly,
AccessibilityModeTreeOnly));
}
}