OLD | NEW |
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 Loading... |
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 |
OLD | NEW |