Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / content / browser / accessibility / accessibility_mode_helper_unittest.cc
blob6bef704a363965291aab703fb6d9354b79a53b93
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"
9 namespace content {
11 TEST(AccessibilityModeHelperTest, TestNoOpRemove) {
12 EXPECT_EQ(AccessibilityModeComplete,
13 RemoveAccessibilityModeFrom(AccessibilityModeComplete,
14 AccessibilityModeOff));
17 TEST(AccessibilityModeHelperTest, TestRemoveSelf) {
18 AccessibilityMode kBaseMode = GetBaseAccessibilityMode();
20 EXPECT_EQ(kBaseMode,
21 RemoveAccessibilityModeFrom(AccessibilityModeComplete,
22 AccessibilityModeComplete));
25 TEST(AccessibilityModeHelperTest, TestAddMode) {
26 EXPECT_EQ(AccessibilityModeComplete,
27 AddAccessibilityModeTo(AccessibilityModeTreeOnly,
28 AccessibilityModeComplete));
31 } // namespace content