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

Side by Side Diff: extensions/browser/api_unittest.h

Issue 2562733003: Remove duplicated user_prefs::TestingPrefServiceSyncable (Closed)
Patch Set: Fixed usage from .mm files Created 4 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 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 #ifndef EXTENSIONS_BROWSER_API_UNITTEST_H_ 5 #ifndef EXTENSIONS_BROWSER_API_UNITTEST_H_
6 #define EXTENSIONS_BROWSER_API_UNITTEST_H_ 6 #define EXTENSIONS_BROWSER_API_UNITTEST_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <string> 9 #include <string>
10 10
11 #include "base/memory/ref_counted.h" 11 #include "base/memory/ref_counted.h"
12 #include "components/pref_registry/testing_pref_service_syncable.h" 12 #include "components/sync_preferences/testing_pref_service_syncable.h"
13 #include "extensions/browser/extensions_test.h" 13 #include "extensions/browser/extensions_test.h"
14 14
15 namespace base { 15 namespace base {
16 class Value; 16 class Value;
17 class DictionaryValue; 17 class DictionaryValue;
18 class ListValue; 18 class ListValue;
19 } 19 }
20 20
21 namespace content { 21 namespace content {
22 class TestBrowserThreadBundle; 22 class TestBrowserThreadBundle;
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 // This will EXPECT-fail if any result is returned from the function. 80 // This will EXPECT-fail if any result is returned from the function.
81 std::string RunFunctionAndReturnError(UIThreadExtensionFunction* function, 81 std::string RunFunctionAndReturnError(UIThreadExtensionFunction* function,
82 const std::string& args); 82 const std::string& args);
83 83
84 // Run the function and ignore any result. 84 // Run the function and ignore any result.
85 void RunFunction(UIThreadExtensionFunction* function, 85 void RunFunction(UIThreadExtensionFunction* function,
86 const std::string& args); 86 const std::string& args);
87 87
88 private: 88 private:
89 std::unique_ptr<content::TestBrowserThreadBundle> thread_bundle_; 89 std::unique_ptr<content::TestBrowserThreadBundle> thread_bundle_;
90 user_prefs::TestingPrefServiceSyncable testing_pref_service_; 90 sync_preferences::TestingPrefServiceSyncable testing_pref_service_;
91 91
92 // The WebContents used to associate a RenderViewHost with API function calls, 92 // The WebContents used to associate a RenderViewHost with API function calls,
93 // or null. 93 // or null.
94 std::unique_ptr<content::WebContents> contents_; 94 std::unique_ptr<content::WebContents> contents_;
95 95
96 // The Extension used when running API function calls. 96 // The Extension used when running API function calls.
97 scoped_refptr<Extension> extension_; 97 scoped_refptr<Extension> extension_;
98 }; 98 };
99 99
100 } // namespace extensions 100 } // namespace extensions
101 101
102 #endif // EXTENSIONS_BROWSER_API_UNITTEST_H_ 102 #endif // EXTENSIONS_BROWSER_API_UNITTEST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698