| 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 <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 53 | 53 |
| 54 // Makes the full path to a component updater test file. | 54 // Makes the full path to a component updater test file. |
| 55 const base::FilePath test_file(const char* file); | 55 const base::FilePath test_file(const char* file); |
| 56 | 56 |
| 57 update_client::TestConfigurator* test_configurator(); | 57 update_client::TestConfigurator* test_configurator(); |
| 58 | 58 |
| 59 ComponentUpdateService::Status RegisterComponent( | 59 ComponentUpdateService::Status RegisterComponent( |
| 60 update_client::CrxComponent* com, | 60 update_client::CrxComponent* com, |
| 61 TestComponents component, | 61 TestComponents component, |
| 62 const Version& version, | 62 const Version& version, |
| 63 update_client::TestInstaller* installer); | 63 const scoped_refptr<update_client::TestInstaller>& installer); |
| 64 | 64 |
| 65 protected: | 65 protected: |
| 66 void RunThreads(); | 66 void RunThreads(); |
| 67 void RunThreadsUntilIdle(); | 67 void RunThreadsUntilIdle(); |
| 68 | 68 |
| 69 scoped_ptr<update_client::InterceptorFactory> interceptor_factory_; | 69 scoped_ptr<update_client::InterceptorFactory> interceptor_factory_; |
| 70 | 70 |
| 71 // Owned by the factory. | 71 // Owned by the factory. |
| 72 update_client::URLRequestPostInterceptor* post_interceptor_; | 72 update_client::URLRequestPostInterceptor* post_interceptor_; |
| 73 | 73 |
| (...skipping 18 matching lines...) Expand all Loading... |
| 92 class OnDemandTester { | 92 class OnDemandTester { |
| 93 public: | 93 public: |
| 94 static ComponentUpdateService::Status OnDemand( | 94 static ComponentUpdateService::Status OnDemand( |
| 95 ComponentUpdateService* cus, | 95 ComponentUpdateService* cus, |
| 96 const std::string& component_id); | 96 const std::string& component_id); |
| 97 }; | 97 }; |
| 98 | 98 |
| 99 } // namespace component_updater | 99 } // namespace component_updater |
| 100 | 100 |
| 101 #endif // CHROME_BROWSER_COMPONENT_UPDATER_TEST_COMPONENT_UPDATER_SERVICE_UNITT
EST_H_ | 101 #endif // CHROME_BROWSER_COMPONENT_UPDATER_TEST_COMPONENT_UPDATER_SERVICE_UNITT
EST_H_ |
| OLD | NEW |