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

Side by Side Diff: content/browser/accessibility/dump_accessibility_tree_browsertest.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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/command_line.h" 9 #include "base/command_line.h"
10 #include "base/file_util.h" 10 #include "base/file_util.h"
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 // Enable <dialog>, which is used in some tests. 128 // Enable <dialog>, which is used in some tests.
129 CommandLine::ForCurrentProcess()->AppendSwitch( 129 CommandLine::ForCurrentProcess()->AppendSwitch(
130 switches::kEnableExperimentalWebPlatformFeatures); 130 switches::kEnableExperimentalWebPlatformFeatures);
131 } 131 }
132 132
133 void RunTest(const base::FilePath::CharType* file_path); 133 void RunTest(const base::FilePath::CharType* file_path);
134 }; 134 };
135 135
136 void DumpAccessibilityTreeTest::RunTest( 136 void DumpAccessibilityTreeTest::RunTest(
137 const base::FilePath::CharType* file_path) { 137 const base::FilePath::CharType* file_path) {
138 NavigateToURL(shell(), GURL(kAboutBlankURL)); 138 NavigateToURL(shell(), GURL(url::kAboutBlankURL));
139 139
140 // Setup test paths. 140 // Setup test paths.
141 base::FilePath dir_test_data; 141 base::FilePath dir_test_data;
142 ASSERT_TRUE(PathService::Get(DIR_TEST_DATA, &dir_test_data)); 142 ASSERT_TRUE(PathService::Get(DIR_TEST_DATA, &dir_test_data));
143 base::FilePath test_path( 143 base::FilePath test_path(
144 dir_test_data.Append(FILE_PATH_LITERAL("accessibility"))); 144 dir_test_data.Append(FILE_PATH_LITERAL("accessibility")));
145 ASSERT_TRUE(base::PathExists(test_path)) 145 ASSERT_TRUE(base::PathExists(test_path))
146 << test_path.LossyDisplayName(); 146 << test_path.LossyDisplayName();
147 147
148 base::FilePath html_file = test_path.Append(base::FilePath(file_path)); 148 base::FilePath html_file = test_path.Append(base::FilePath(file_path));
(...skipping 378 matching lines...) Expand 10 before | Expand all | Expand 10 after
527 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityWbr) { 527 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityWbr) {
528 RunTest(FILE_PATH_LITERAL("wbr.html")); 528 RunTest(FILE_PATH_LITERAL("wbr.html"));
529 } 529 }
530 530
531 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, 531 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest,
532 AccessibilityAriaActivedescendant) { 532 AccessibilityAriaActivedescendant) {
533 RunTest(FILE_PATH_LITERAL("aria-activedescendant.html")); 533 RunTest(FILE_PATH_LITERAL("aria-activedescendant.html"));
534 } 534 }
535 535
536 } // namespace content 536 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/accessibility/android_hit_testing_browsertest.cc ('k') | content/browser/browser_url_handler_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698