| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_TEST_CONFIGURATOR_H_ | 5 #ifndef CHROME_BROWSER_COMPONENT_UPDATER_TEST_TEST_CONFIGURATOR_H_ |
| 6 #define CHROME_BROWSER_COMPONENT_UPDATER_TEST_TEST_CONFIGURATOR_H_ | 6 #define CHROME_BROWSER_COMPONENT_UPDATER_TEST_TEST_CONFIGURATOR_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <utility> | 9 #include <utility> |
| 10 | 10 |
| (...skipping 19 matching lines...) Expand all Loading... |
| 30 | 30 |
| 31 // Overrrides for Configurator. | 31 // Overrrides for Configurator. |
| 32 virtual int InitialDelay() const OVERRIDE; | 32 virtual int InitialDelay() const OVERRIDE; |
| 33 virtual int NextCheckDelay() OVERRIDE; | 33 virtual int NextCheckDelay() OVERRIDE; |
| 34 virtual int StepDelay() const OVERRIDE; | 34 virtual int StepDelay() const OVERRIDE; |
| 35 virtual int StepDelayMedium() OVERRIDE; | 35 virtual int StepDelayMedium() OVERRIDE; |
| 36 virtual int MinimumReCheckWait() const OVERRIDE; | 36 virtual int MinimumReCheckWait() const OVERRIDE; |
| 37 virtual int OnDemandDelay() const OVERRIDE; | 37 virtual int OnDemandDelay() const OVERRIDE; |
| 38 virtual GURL UpdateUrl() const OVERRIDE; | 38 virtual GURL UpdateUrl() const OVERRIDE; |
| 39 virtual GURL PingUrl() const OVERRIDE; | 39 virtual GURL PingUrl() const OVERRIDE; |
| 40 virtual base::Version GetBrowserVersion() const OVERRIDE; |
| 41 virtual std::string GetChannel() const OVERRIDE; |
| 42 virtual std::string GetLang() const OVERRIDE; |
| 43 virtual std::string GetOSLongName() const OVERRIDE; |
| 40 virtual std::string ExtraRequestParams() const OVERRIDE; | 44 virtual std::string ExtraRequestParams() const OVERRIDE; |
| 41 virtual size_t UrlSizeLimit() const OVERRIDE; | 45 virtual size_t UrlSizeLimit() const OVERRIDE; |
| 42 virtual net::URLRequestContextGetter* RequestContext() const OVERRIDE; | 46 virtual net::URLRequestContextGetter* RequestContext() const OVERRIDE; |
| 43 virtual bool InProcess() const OVERRIDE; | 47 virtual bool InProcess() const OVERRIDE; |
| 44 virtual bool DeltasEnabled() const OVERRIDE; | 48 virtual bool DeltasEnabled() const OVERRIDE; |
| 45 virtual bool UseBackgroundDownloader() const OVERRIDE; | 49 virtual bool UseBackgroundDownloader() const OVERRIDE; |
| 46 | 50 |
| 47 typedef std::pair<CrxComponent*, int> CheckAtLoopCount; | 51 typedef std::pair<CrxComponent*, int> CheckAtLoopCount; |
| 48 void SetLoopCount(int times); | 52 void SetLoopCount(int times); |
| 49 void SetRecheckTime(int seconds); | 53 void SetRecheckTime(int seconds); |
| 50 void SetOnDemandTime(int seconds); | 54 void SetOnDemandTime(int seconds); |
| 51 void SetQuitClosure(const base::Closure& quit_closure); | 55 void SetQuitClosure(const base::Closure& quit_closure); |
| 52 void SetInitialDelay(int seconds); | 56 void SetInitialDelay(int seconds); |
| 53 | 57 |
| 54 private: | 58 private: |
| 55 int initial_time_; | 59 int initial_time_; |
| 56 int times_; | 60 int times_; |
| 57 int recheck_time_; | 61 int recheck_time_; |
| 58 int ondemand_time_; | 62 int ondemand_time_; |
| 59 | 63 |
| 60 scoped_refptr<net::TestURLRequestContextGetter> context_; | 64 scoped_refptr<net::TestURLRequestContextGetter> context_; |
| 61 base::Closure quit_closure_; | 65 base::Closure quit_closure_; |
| 62 | 66 |
| 63 DISALLOW_COPY_AND_ASSIGN(TestConfigurator); | 67 DISALLOW_COPY_AND_ASSIGN(TestConfigurator); |
| 64 }; | 68 }; |
| 65 | 69 |
| 66 } // namespace component_updater | 70 } // namespace component_updater |
| 67 | 71 |
| 68 #endif // CHROME_BROWSER_COMPONENT_UPDATER_TEST_TEST_CONFIGURATOR_H_ | 72 #endif // CHROME_BROWSER_COMPONENT_UPDATER_TEST_TEST_CONFIGURATOR_H_ |
| OLD | NEW |