Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(97)

Side by Side Diff: content/browser/accessibility/android_granularity_movement_browsertest.cc

Issue 2000403003: [forbots] IWYU for ax_enums.h Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include <set> 5 #include <set>
6 #include <string> 6 #include <string>
7 #include <vector> 7 #include <vector>
8 8
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/strings/string16.h" 10 #include "base/strings/string16.h"
11 #include "base/strings/string_util.h" 11 #include "base/strings/string_util.h"
12 #include "base/strings/utf_string_conversions.h" 12 #include "base/strings/utf_string_conversions.h"
13 #include "content/browser/accessibility/browser_accessibility_android.h" 13 #include "content/browser/accessibility/browser_accessibility_android.h"
14 #include "content/browser/accessibility/browser_accessibility_manager_android.h" 14 #include "content/browser/accessibility/browser_accessibility_manager_android.h"
15 #include "content/browser/web_contents/web_contents_impl.h" 15 #include "content/browser/web_contents/web_contents_impl.h"
16 #include "content/public/browser/web_contents.h" 16 #include "content/public/browser/web_contents.h"
17 #include "content/public/common/url_constants.h" 17 #include "content/public/common/url_constants.h"
18 #include "content/public/test/content_browser_test.h" 18 #include "content/public/test/content_browser_test.h"
19 #include "content/public/test/content_browser_test_utils.h" 19 #include "content/public/test/content_browser_test_utils.h"
20 #include "content/shell/browser/shell.h" 20 #include "content/shell/browser/shell.h"
21 #include "content/test/accessibility_browser_test_utils.h" 21 #include "content/test/accessibility_browser_test_utils.h"
22 #include "testing/gtest/include/gtest/gtest.h" 22 #include "testing/gtest/include/gtest/gtest.h"
23 #include "ui/accessibility/ax_enums.h"
23 24
24 namespace content { 25 namespace content {
25 26
26 const int GRANULARITY_CHARACTER = 27 const int GRANULARITY_CHARACTER =
27 ANDROID_ACCESSIBILITY_NODE_INFO_MOVEMENT_GRANULARITY_CHARACTER; 28 ANDROID_ACCESSIBILITY_NODE_INFO_MOVEMENT_GRANULARITY_CHARACTER;
28 const int GRANULARITY_WORD = 29 const int GRANULARITY_WORD =
29 ANDROID_ACCESSIBILITY_NODE_INFO_MOVEMENT_GRANULARITY_WORD; 30 ANDROID_ACCESSIBILITY_NODE_INFO_MOVEMENT_GRANULARITY_WORD;
30 const int GRANULARITY_LINE = 31 const int GRANULARITY_LINE =
31 ANDROID_ACCESSIBILITY_NODE_INFO_MOVEMENT_GRANULARITY_LINE; 32 ANDROID_ACCESSIBILITY_NODE_INFO_MOVEMENT_GRANULARITY_LINE;
32 33
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after
202 BrowserAccessibility* root = LoadUrlAndGetAccessibilityRoot(url); 203 BrowserAccessibility* root = LoadUrlAndGetAccessibilityRoot(url);
203 ASSERT_EQ(1U, root->PlatformChildCount()); 204 ASSERT_EQ(1U, root->PlatformChildCount());
204 BrowserAccessibility* pre = root->PlatformGetChild(0); 205 BrowserAccessibility* pre = root->PlatformGetChild(0);
205 ASSERT_EQ(0U, pre->PlatformChildCount()); 206 ASSERT_EQ(0U, pre->PlatformChildCount());
206 207
207 ASSERT_EQ(base::ASCIIToUTF16("'One,', 'two,', 'three!'"), 208 ASSERT_EQ(base::ASCIIToUTF16("'One,', 'two,', 'three!'"),
208 TraverseNodeAtGranularity(pre, GRANULARITY_LINE)); 209 TraverseNodeAtGranularity(pre, GRANULARITY_LINE));
209 } 210 }
210 211
211 } // namespace content 212 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698