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

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

Issue 1658793002: Update chrome for new prefs location. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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"
11 #include "base/prefs/pref_service.h"
12 #include "base/strings/stringprintf.h" 11 #include "base/strings/stringprintf.h"
13 #include "base/values.h" 12 #include "base/values.h"
14 #include "chrome/browser/extensions/extension_apitest.h" 13 #include "chrome/browser/extensions/extension_apitest.h"
15 #include "chrome/common/pref_names.h" 14 #include "chrome/common/pref_names.h"
15 #include "components/prefs/pref_service.h"
16 #include "extensions/test/result_catcher.h" 16 #include "extensions/test/result_catcher.h"
17 17
18 // API tests for chrome.accessibilityFeatures API. 18 // API tests for chrome.accessibilityFeatures API.
19 // Note that the API is implemented using preference API infrastructure. 19 // Note that the API is implemented using preference API infrastructure.
20 // See preference_api.cc for the list of accessibility features exposed by the 20 // See preference_api.cc for the list of accessibility features exposed by the
21 // API and the related preferences. 21 // API and the related preferences.
22 22
23 namespace extensions { 23 namespace extensions {
24 24
25 namespace { 25 namespace {
(...skipping 244 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