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