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

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

Issue 1505903002: Don't require expectations file for DumpAccessibility tests. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add one auralinux expectation Created 5 years 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 (c) 2015 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2015 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/browser/accessibility/accessibility_tree_formatter.h" 5 #include "content/browser/accessibility/accessibility_tree_formatter.h"
6 6
7 #include <atk/atk.h> 7 #include <atk/atk.h>
8 8
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/strings/string_number_conversions.h" 10 #include "base/strings/string_number_conversions.h"
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 WriteAttribute(false, base::StringPrintf("id=%d", id_value), &line); 72 WriteAttribute(false, base::StringPrintf("id=%d", id_value), &line);
73 73
74 return line + base::ASCIIToUTF16("\n"); 74 return line + base::ASCIIToUTF16("\n");
75 } 75 }
76 76
77 void AccessibilityTreeFormatter::Initialize() { 77 void AccessibilityTreeFormatter::Initialize() {
78 } 78 }
79 79
80 // static 80 // static
81 const base::FilePath::StringType 81 const base::FilePath::StringType
82 AccessibilityTreeFormatter::GetActualFileSuffix() {
83 return FILE_PATH_LITERAL("-actual-auralinux.txt");
84 }
85
86 // static
87 const base::FilePath::StringType
88 AccessibilityTreeFormatter::GetExpectedFileSuffix() { 82 AccessibilityTreeFormatter::GetExpectedFileSuffix() {
89 return FILE_PATH_LITERAL("-expected-auralinux.txt"); 83 return FILE_PATH_LITERAL("-expected-auralinux.txt");
90 } 84 }
91 85
92 // static 86 // static
93 const std::string AccessibilityTreeFormatter::GetAllowEmptyString() { 87 const std::string AccessibilityTreeFormatter::GetAllowEmptyString() {
94 return "@AURALINUX-ALLOW-EMPTY:"; 88 return "@AURALINUX-ALLOW-EMPTY:";
95 } 89 }
96 90
97 // static 91 // static
98 const std::string AccessibilityTreeFormatter::GetAllowString() { 92 const std::string AccessibilityTreeFormatter::GetAllowString() {
99 return "@AURALINUX-ALLOW:"; 93 return "@AURALINUX-ALLOW:";
100 } 94 }
101 95
102 // static 96 // static
103 const std::string AccessibilityTreeFormatter::GetDenyString() { 97 const std::string AccessibilityTreeFormatter::GetDenyString() {
104 return "@AURALINUX-DENY:"; 98 return "@AURALINUX-DENY:";
105 } 99 }
106 } 100 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698