1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "content/browser/accessibility/accessibility_mode_helper.h"
6 #include "content/common/view_message_enums.h"
7 #include "testing/gtest/include/gtest/gtest.h"
11 TEST(AccessibilityModeHelperTest
, TestNoOpRemove
) {
12 EXPECT_EQ(AccessibilityModeComplete
,
13 RemoveAccessibilityModeFrom(AccessibilityModeComplete
,
14 AccessibilityModeOff
));
17 TEST(AccessibilityModeHelperTest
, TestRemoveSelf
) {
18 AccessibilityMode kBaseMode
= GetBaseAccessibilityMode();
21 RemoveAccessibilityModeFrom(AccessibilityModeComplete
,
22 AccessibilityModeComplete
));
25 TEST(AccessibilityModeHelperTest
, TestAddMode
) {
26 EXPECT_EQ(AccessibilityModeComplete
,
27 AddAccessibilityModeTo(AccessibilityModeTreeOnly
,
28 AccessibilityModeComplete
));
31 } // namespace content