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 #ifndef CHROME_BROWSER_EXTENSIONS_TEST_EXTENSION_SYSTEM_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_TEST_EXTENSION_SYSTEM_H_ |
6 #define CHROME_BROWSER_EXTENSIONS_TEST_EXTENSION_SYSTEM_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_TEST_EXTENSION_SYSTEM_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 | 9 |
10 #include "extensions/browser/extension_system.h" | 10 #include "extensions/browser/extension_system.h" |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
58 SharedUserScriptMaster* shared_user_script_master() override; | 58 SharedUserScriptMaster* shared_user_script_master() override; |
59 StateStore* state_store() override; | 59 StateStore* state_store() override; |
60 StateStore* rules_store() override; | 60 StateStore* rules_store() override; |
61 scoped_refptr<ValueStoreFactory> store_factory() override; | 61 scoped_refptr<ValueStoreFactory> store_factory() override; |
62 TestingValueStore* value_store(); | 62 TestingValueStore* value_store(); |
63 InfoMap* info_map() override; | 63 InfoMap* info_map() override; |
64 QuotaService* quota_service() override; | 64 QuotaService* quota_service() override; |
65 AppSorting* app_sorting() override; | 65 AppSorting* app_sorting() override; |
66 const OneShotEvent& ready() const override; | 66 const OneShotEvent& ready() const override; |
67 ContentVerifier* content_verifier() override; | 67 ContentVerifier* content_verifier() override; |
| 68 declarative_net_request::RulesMonitor* rules_monitor() override; |
68 std::unique_ptr<ExtensionSet> GetDependentExtensions( | 69 std::unique_ptr<ExtensionSet> GetDependentExtensions( |
69 const Extension* extension) override; | 70 const Extension* extension) override; |
70 void InstallUpdate(const std::string& extension_id, | 71 void InstallUpdate(const std::string& extension_id, |
71 const base::FilePath& temp_dir) override; | 72 const base::FilePath& temp_dir) override; |
72 | 73 |
73 // Note that you probably want to use base::RunLoop().RunUntilIdle() right | 74 // Note that you probably want to use base::RunLoop().RunUntilIdle() right |
74 // after this to run all the accumulated tasks. | 75 // after this to run all the accumulated tasks. |
75 void SetReady() { ready_.Signal(); } | 76 void SetReady() { ready_.Signal(); } |
76 | 77 |
77 // Factory method for tests to use with SetTestingProfile. | 78 // Factory method for tests to use with SetTestingProfile. |
(...skipping 19 matching lines...) Expand all Loading... |
97 OneShotEvent ready_; | 98 OneShotEvent ready_; |
98 | 99 |
99 #if defined(OS_CHROMEOS) | 100 #if defined(OS_CHROMEOS) |
100 std::unique_ptr<chromeos::ScopedTestUserManager> test_user_manager_; | 101 std::unique_ptr<chromeos::ScopedTestUserManager> test_user_manager_; |
101 #endif | 102 #endif |
102 }; | 103 }; |
103 | 104 |
104 } // namespace extensions | 105 } // namespace extensions |
105 | 106 |
106 #endif // CHROME_BROWSER_EXTENSIONS_TEST_EXTENSION_SYSTEM_H_ | 107 #endif // CHROME_BROWSER_EXTENSIONS_TEST_EXTENSION_SYSTEM_H_ |
OLD | NEW |