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

Side by Side Diff: extensions/test/test_extensions_client.cc

Issue 293943002: Clean up TestFeaturesNativeHandler to use the ExtensionsClient's JSON feature sources. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 years, 7 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 | Annotate | Revision Log
« no previous file with comments | « extensions/test/test_extensions_client.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "extensions/test/test_extensions_client.h" 5 #include "extensions/test/test_extensions_client.h"
6 6
7 #include "extensions/common/common_manifest_handlers.h" 7 #include "extensions/common/common_manifest_handlers.h"
8 #include "extensions/common/features/base_feature_provider.h" 8 #include "extensions/common/features/feature_provider.h"
9 #include "extensions/common/features/json_feature_provider_source.h"
9 #include "extensions/common/manifest_handler.h" 10 #include "extensions/common/manifest_handler.h"
11 #include "extensions/common/url_pattern_set.h"
10 #include "extensions/test/test_permission_message_provider.h" 12 #include "extensions/test/test_permission_message_provider.h"
11 #include "extensions/test/test_permissions_provider.h"
12 13
13 namespace extensions { 14 namespace extensions {
14 15
15 TestExtensionsClient::TestExtensionsClient() { 16 TestExtensionsClient::TestExtensionsClient() {
16 } 17 }
17 18
18 TestExtensionsClient::~TestExtensionsClient() { 19 TestExtensionsClient::~TestExtensionsClient() {
19 } 20 }
20 21
21 void TestExtensionsClient::Initialize() { 22 void TestExtensionsClient::Initialize() {
(...skipping 10 matching lines...) Expand all
32 static TestPermissionMessageProvider provider; 33 static TestPermissionMessageProvider provider;
33 return provider; 34 return provider;
34 } 35 }
35 36
36 // TODO(yoz): Implement something reasonable here. 37 // TODO(yoz): Implement something reasonable here.
37 scoped_ptr<FeatureProvider> TestExtensionsClient::CreateFeatureProvider( 38 scoped_ptr<FeatureProvider> TestExtensionsClient::CreateFeatureProvider(
38 const std::string& name) const { 39 const std::string& name) const {
39 return scoped_ptr<FeatureProvider>(); 40 return scoped_ptr<FeatureProvider>();
40 } 41 }
41 42
43 // TODO(yoz): Implement something reasonable here.
44 scoped_ptr<JSONFeatureProviderSource>
45 TestExtensionsClient::CreateFeatureProviderSource(
46 const std::string& name) const {
47 return scoped_ptr<JSONFeatureProviderSource>();
48 }
49
42 void TestExtensionsClient::FilterHostPermissions( 50 void TestExtensionsClient::FilterHostPermissions(
43 const URLPatternSet& hosts, 51 const URLPatternSet& hosts,
44 URLPatternSet* new_hosts, 52 URLPatternSet* new_hosts,
45 std::set<PermissionMessage>* messages) const { 53 std::set<PermissionMessage>* messages) const {
46 } 54 }
47 55
48 void TestExtensionsClient::SetScriptingWhitelist( 56 void TestExtensionsClient::SetScriptingWhitelist(
49 const ExtensionsClient::ScriptingWhitelist& whitelist) { 57 const ExtensionsClient::ScriptingWhitelist& whitelist) {
50 scripting_whitelist_ = whitelist; 58 scripting_whitelist_ = whitelist;
51 } 59 }
(...skipping 23 matching lines...) Expand all
75 base::StringPiece TestExtensionsClient::GetAPISchema( 83 base::StringPiece TestExtensionsClient::GetAPISchema(
76 const std::string& name) const { 84 const std::string& name) const {
77 return base::StringPiece(); 85 return base::StringPiece();
78 } 86 }
79 87
80 bool TestExtensionsClient::ShouldSuppressFatalErrors() const { 88 bool TestExtensionsClient::ShouldSuppressFatalErrors() const {
81 return true; 89 return true;
82 } 90 }
83 91
84 } // namespace extensions 92 } // namespace extensions
OLDNEW
« no previous file with comments | « extensions/test/test_extensions_client.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698