OLD | NEW |
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" |
11 #include "base/strings/stringprintf.h" | |
12 #include "base/values.h" | 11 #include "base/values.h" |
13 #include "chrome/browser/extensions/extension_apitest.h" | 12 #include "chrome/browser/extensions/extension_apitest.h" |
14 #include "chrome/common/pref_names.h" | 13 #include "chrome/common/pref_names.h" |
15 #include "components/prefs/pref_service.h" | 14 #include "components/prefs/pref_service.h" |
16 #include "extensions/test/result_catcher.h" | 15 #include "extensions/test/result_catcher.h" |
17 | 16 |
18 // API tests for chrome.accessibilityFeatures API. | 17 // API tests for chrome.accessibilityFeatures API. |
19 // Note that the API is implemented using preference API infrastructure. | 18 // Note that the API is implemented using preference API infrastructure. |
20 // See preference_api.cc for the list of accessibility features exposed by the | 19 // See preference_api.cc for the list of accessibility features exposed by the |
21 // API and the related preferences. | 20 // API and the related preferences. |
(...skipping 248 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
270 InitPrefServiceForTest(GetPrefs(), disabled_features, enabled_features)); | 269 InitPrefServiceForTest(GetPrefs(), disabled_features, enabled_features)); |
271 | 270 |
272 // Catch the second result notification sent by the test extension. | 271 // Catch the second result notification sent by the test extension. |
273 ResultCatcher result_catcher; | 272 ResultCatcher result_catcher; |
274 ASSERT_TRUE(result_catcher.GetNextResult()) << result_catcher.message(); | 273 ASSERT_TRUE(result_catcher.GetNextResult()) << result_catcher.message(); |
275 } | 274 } |
276 | 275 |
277 } // namespace | 276 } // namespace |
278 | 277 |
279 } // namespace extensions | 278 } // namespace extensions |
OLD | NEW |