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

Side by Side Diff: content/test/accessibility_browser_test_utils.cc

Issue 325443002: Move about://-related constants from //content to //url (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Android ifx Created 6 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 | Annotate | Revision Log
« no previous file with comments | « content/shell/renderer/webkit_test_runner.cc ('k') | extensions/renderer/script_context.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 "content/test/accessibility_browser_test_utils.h" 5 #include "content/test/accessibility_browser_test_utils.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "base/strings/string_util.h" 9 #include "base/strings/string_util.h"
10 #include "base/strings/utf_string_conversions.h" 10 #include "base/strings/utf_string_conversions.h"
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 73
74 bool AccessibilityNotificationWaiter::IsAboutBlank() { 74 bool AccessibilityNotificationWaiter::IsAboutBlank() {
75 // Skip any accessibility notifications related to "about:blank", 75 // Skip any accessibility notifications related to "about:blank",
76 // to avoid a possible race condition between the test beginning 76 // to avoid a possible race condition between the test beginning
77 // listening for accessibility events and "about:blank" loading. 77 // listening for accessibility events and "about:blank" loading.
78 const ui::AXNodeData& root = GetAXTree().GetRoot()->data(); 78 const ui::AXNodeData& root = GetAXTree().GetRoot()->data();
79 for (size_t i = 0; i < root.string_attributes.size(); ++i) { 79 for (size_t i = 0; i < root.string_attributes.size(); ++i) {
80 if (root.string_attributes[i].first != ui::AX_ATTR_DOC_URL) 80 if (root.string_attributes[i].first != ui::AX_ATTR_DOC_URL)
81 continue; 81 continue;
82 const std::string& doc_url = root.string_attributes[i].second; 82 const std::string& doc_url = root.string_attributes[i].second;
83 return doc_url == kAboutBlankURL; 83 return doc_url == url::kAboutBlankURL;
84 } 84 }
85 return false; 85 return false;
86 } 86 }
87 87
88 } // namespace content 88 } // namespace content
OLDNEW
« no previous file with comments | « content/shell/renderer/webkit_test_runner.cc ('k') | extensions/renderer/script_context.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698