| OLD | NEW |
| 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/files/file_util.h" | 10 #include "base/files/file_util.h" |
| (...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 139 } else if (StartsWithASCII(line, deny_str, true)) { | 139 } else if (StartsWithASCII(line, deny_str, true)) { |
| 140 filters->push_back(Filter(base::UTF8ToUTF16( | 140 filters->push_back(Filter(base::UTF8ToUTF16( |
| 141 line.substr(deny_str.size())), | 141 line.substr(deny_str.size())), |
| 142 Filter::DENY)); | 142 Filter::DENY)); |
| 143 } else if (StartsWithASCII(line, wait_str, true)) { | 143 } else if (StartsWithASCII(line, wait_str, true)) { |
| 144 *wait_for = line.substr(wait_str.size()); | 144 *wait_for = line.substr(wait_str.size()); |
| 145 } | 145 } |
| 146 } | 146 } |
| 147 } | 147 } |
| 148 | 148 |
| 149 virtual void SetUpCommandLine(base::CommandLine* command_line) OVERRIDE { | 149 virtual void SetUpCommandLine(base::CommandLine* command_line) override { |
| 150 ContentBrowserTest::SetUpCommandLine(command_line); | 150 ContentBrowserTest::SetUpCommandLine(command_line); |
| 151 // Enable <dialog>, which is used in some tests. | 151 // Enable <dialog>, which is used in some tests. |
| 152 base::CommandLine::ForCurrentProcess()->AppendSwitch( | 152 base::CommandLine::ForCurrentProcess()->AppendSwitch( |
| 153 switches::kEnableExperimentalWebPlatformFeatures); | 153 switches::kEnableExperimentalWebPlatformFeatures); |
| 154 } | 154 } |
| 155 | 155 |
| 156 void RunTest(const base::FilePath::CharType* file_path); | 156 void RunTest(const base::FilePath::CharType* file_path); |
| 157 }; | 157 }; |
| 158 | 158 |
| 159 void DumpAccessibilityTreeTest::RunTest( | 159 void DumpAccessibilityTreeTest::RunTest( |
| (...skipping 598 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 758 | 758 |
| 759 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityUl) { | 759 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityUl) { |
| 760 RunTest(FILE_PATH_LITERAL("ul.html")); | 760 RunTest(FILE_PATH_LITERAL("ul.html")); |
| 761 } | 761 } |
| 762 | 762 |
| 763 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityWbr) { | 763 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityWbr) { |
| 764 RunTest(FILE_PATH_LITERAL("wbr.html")); | 764 RunTest(FILE_PATH_LITERAL("wbr.html")); |
| 765 } | 765 } |
| 766 | 766 |
| 767 } // namespace content | 767 } // namespace content |
| OLD | NEW |