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

Side by Side Diff: extensions/browser/api/declarative/test_rules_registry.cc

Issue 1226353004: Generate all extension schema namespaces as "api" and instead vary the generated bundle names. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 5 years, 5 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 6
7 #include "extensions/browser/api/declarative/test_rules_registry.h" 7 #include "extensions/browser/api/declarative/test_rules_registry.h"
8 8
9 namespace extensions { 9 namespace extensions {
10 10
(...skipping 14 matching lines...) Expand all
25 int rules_registry_id) 25 int rules_registry_id)
26 : RulesRegistry(browser_context, 26 : RulesRegistry(browser_context,
27 event_name, 27 event_name,
28 owner_thread, 28 owner_thread,
29 cache_delegate, 29 cache_delegate,
30 rules_registry_id) { 30 rules_registry_id) {
31 } 31 }
32 32
33 std::string TestRulesRegistry::AddRulesImpl( 33 std::string TestRulesRegistry::AddRulesImpl(
34 const std::string& extension_id, 34 const std::string& extension_id,
35 const std::vector<linked_ptr<core_api::events::Rule>>& rules) { 35 const std::vector<linked_ptr<api::events::Rule>>& rules) {
36 return result_; 36 return result_;
37 } 37 }
38 38
39 std::string TestRulesRegistry::RemoveRulesImpl( 39 std::string TestRulesRegistry::RemoveRulesImpl(
40 const std::string& extension_id, 40 const std::string& extension_id,
41 const std::vector<std::string>& rule_identifiers) { 41 const std::vector<std::string>& rule_identifiers) {
42 return result_; 42 return result_;
43 } 43 }
44 44
45 std::string TestRulesRegistry::RemoveAllRulesImpl( 45 std::string TestRulesRegistry::RemoveAllRulesImpl(
46 const std::string& extension_id) { 46 const std::string& extension_id) {
47 return result_; 47 return result_;
48 } 48 }
49 49
50 void TestRulesRegistry::SetResult(const std::string& result) { 50 void TestRulesRegistry::SetResult(const std::string& result) {
51 result_ = result; 51 result_ = result;
52 } 52 }
53 53
54 TestRulesRegistry::~TestRulesRegistry() {} 54 TestRulesRegistry::~TestRulesRegistry() {}
55 55
56 } // namespace extensions 56 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698