OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_COMPONENT_UPDATER_TEST_COMPONENT_UPDATER_SERVICE_UNITTEST
_H_ | 5 #ifndef CHROME_BROWSER_COMPONENT_UPDATER_TEST_COMPONENT_UPDATER_SERVICE_UNITTEST
_H_ |
6 #define CHROME_BROWSER_COMPONENT_UPDATER_TEST_COMPONENT_UPDATER_SERVICE_UNITTEST
_H_ | 6 #define CHROME_BROWSER_COMPONENT_UPDATER_TEST_COMPONENT_UPDATER_SERVICE_UNITTEST
_H_ |
7 | 7 |
8 #include <list> | 8 #include <list> |
9 #include <map> | 9 #include <map> |
10 #include <string> | 10 #include <string> |
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
121 | 121 |
122 ComponentUpdateService* component_updater(); | 122 ComponentUpdateService* component_updater(); |
123 | 123 |
124 // Makes the full path to a component updater test file. | 124 // Makes the full path to a component updater test file. |
125 const base::FilePath test_file(const char* file); | 125 const base::FilePath test_file(const char* file); |
126 | 126 |
127 TestConfigurator* test_configurator(); | 127 TestConfigurator* test_configurator(); |
128 | 128 |
129 ComponentUpdateService::Status RegisterComponent(CrxComponent* com, | 129 ComponentUpdateService::Status RegisterComponent(CrxComponent* com, |
130 TestComponents component, | 130 TestComponents component, |
131 const base::Version& version, | 131 const Version& version, |
132 TestInstaller* installer); | 132 TestInstaller* installer); |
133 | 133 |
134 protected: | 134 protected: |
135 void RunThreads(); | 135 void RunThreads(); |
136 void RunThreadsUntilIdle(); | 136 void RunThreadsUntilIdle(); |
137 | 137 |
138 scoped_ptr<InterceptorFactory> interceptor_factory_; | 138 scoped_ptr<InterceptorFactory> interceptor_factory_; |
139 URLRequestPostInterceptor* post_interceptor_; // Owned by the factory. | 139 URLRequestPostInterceptor* post_interceptor_; // Owned by the factory. |
140 | 140 |
141 scoped_ptr<GetInterceptor> get_interceptor_; | 141 scoped_ptr<GetInterceptor> get_interceptor_; |
(...skipping 16 matching lines...) Expand all Loading... |
158 | 158 |
159 class OnDemandTester { | 159 class OnDemandTester { |
160 public: | 160 public: |
161 static ComponentUpdateService::Status OnDemand( | 161 static ComponentUpdateService::Status OnDemand( |
162 ComponentUpdateService* cus, const std::string& component_id); | 162 ComponentUpdateService* cus, const std::string& component_id); |
163 }; | 163 }; |
164 | 164 |
165 } // namespace component_updater | 165 } // namespace component_updater |
166 | 166 |
167 #endif // CHROME_BROWSER_COMPONENT_UPDATER_TEST_COMPONENT_UPDATER_SERVICE_UNITT
EST_H_ | 167 #endif // CHROME_BROWSER_COMPONENT_UPDATER_TEST_COMPONENT_UPDATER_SERVICE_UNITT
EST_H_ |
OLD | NEW |