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

Side by Side Diff: chrome/browser/chromeos/extensions/accessibility_features_apitest.cc

Issue 1551753002: Build third-party code with -Wall, build chromium_code with -Wextra on Linux (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: thestig Created 4 years, 11 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 <stddef.h> 5 #include <stddef.h>
6 6
7 #include <string> 7 #include <string>
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/json/json_writer.h" 10 #include "base/json/json_writer.h"
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 if (GetParam()) 62 if (GetParam())
63 return kTestExtensionPathMofifyPermission; 63 return kTestExtensionPathMofifyPermission;
64 return kTestExtensionPathReadPermission; 64 return kTestExtensionPathReadPermission;
65 } 65 }
66 66
67 // Whether a parameterized test should have been able to modify accessibility 67 // Whether a parameterized test should have been able to modify accessibility
68 // preferences (i.e. whether the test extension had modify permission). 68 // preferences (i.e. whether the test extension had modify permission).
69 bool ShouldModifyingFeatureSucceed() const { return GetParam(); } 69 bool ShouldModifyingFeatureSucceed() const { return GetParam(); }
70 70
71 // Returns preference path for accessibility features as defined by the API. 71 // Returns preference path for accessibility features as defined by the API.
72 const char* const GetPrefForFeature(const std::string& feature) { 72 const char* GetPrefForFeature(const std::string& feature) {
73 if (feature == "spokenFeedback") 73 if (feature == "spokenFeedback")
74 return prefs::kAccessibilitySpokenFeedbackEnabled; 74 return prefs::kAccessibilitySpokenFeedbackEnabled;
75 if (feature == "largeCursor") 75 if (feature == "largeCursor")
76 return prefs::kAccessibilityLargeCursorEnabled; 76 return prefs::kAccessibilityLargeCursorEnabled;
77 if (feature == "stickyKeys") 77 if (feature == "stickyKeys")
78 return prefs::kAccessibilityStickyKeysEnabled; 78 return prefs::kAccessibilityStickyKeysEnabled;
79 if (feature == "highContrast") 79 if (feature == "highContrast")
80 return prefs::kAccessibilityHighContrastEnabled; 80 return prefs::kAccessibilityHighContrastEnabled;
81 if (feature == "screenMagnifier") 81 if (feature == "screenMagnifier")
82 return prefs::kAccessibilityScreenMagnifierEnabled; 82 return prefs::kAccessibilityScreenMagnifierEnabled;
(...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after
270 InitPrefServiceForTest(GetPrefs(), disabled_features, enabled_features)); 270 InitPrefServiceForTest(GetPrefs(), disabled_features, enabled_features));
271 271
272 // Catch the second result notification sent by the test extension. 272 // Catch the second result notification sent by the test extension.
273 ResultCatcher result_catcher; 273 ResultCatcher result_catcher;
274 ASSERT_TRUE(result_catcher.GetNextResult()) << result_catcher.message(); 274 ASSERT_TRUE(result_catcher.GetNextResult()) << result_catcher.message();
275 } 275 }
276 276
277 } // namespace 277 } // namespace
278 278
279 } // namespace extensions 279 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698