| 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 COMPONENTS_UPDATE_CLIENT_TEST_CONFIGURATOR_H_ | 5 #ifndef COMPONENTS_UPDATE_CLIENT_TEST_CONFIGURATOR_H_ |
| 6 #define COMPONENTS_UPDATE_CLIENT_TEST_CONFIGURATOR_H_ | 6 #define COMPONENTS_UPDATE_CLIENT_TEST_CONFIGURATOR_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <string> | 10 #include <string> |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 61 int StepDelay() const override; | 61 int StepDelay() const override; |
| 62 int OnDemandDelay() const override; | 62 int OnDemandDelay() const override; |
| 63 int UpdateDelay() const override; | 63 int UpdateDelay() const override; |
| 64 std::vector<GURL> UpdateUrl() const override; | 64 std::vector<GURL> UpdateUrl() const override; |
| 65 std::vector<GURL> PingUrl() const override; | 65 std::vector<GURL> PingUrl() const override; |
| 66 base::Version GetBrowserVersion() const override; | 66 base::Version GetBrowserVersion() const override; |
| 67 std::string GetChannel() const override; | 67 std::string GetChannel() const override; |
| 68 std::string GetLang() const override; | 68 std::string GetLang() const override; |
| 69 std::string GetOSLongName() const override; | 69 std::string GetOSLongName() const override; |
| 70 std::string ExtraRequestParams() const override; | 70 std::string ExtraRequestParams() const override; |
| 71 std::string GetDownloadPreference() const override; |
| 71 net::URLRequestContextGetter* RequestContext() const override; | 72 net::URLRequestContextGetter* RequestContext() const override; |
| 72 scoped_refptr<OutOfProcessPatcher> CreateOutOfProcessPatcher() const override; | 73 scoped_refptr<OutOfProcessPatcher> CreateOutOfProcessPatcher() const override; |
| 73 bool DeltasEnabled() const override; | 74 bool DeltasEnabled() const override; |
| 74 bool UseBackgroundDownloader() const override; | 75 bool UseBackgroundDownloader() const override; |
| 75 scoped_refptr<base::SequencedTaskRunner> GetSequencedTaskRunner() | 76 scoped_refptr<base::SequencedTaskRunner> GetSequencedTaskRunner() |
| 76 const override; | 77 const override; |
| 77 | 78 |
| 78 void SetOnDemandTime(int seconds); | 79 void SetOnDemandTime(int seconds); |
| 79 void SetInitialDelay(int seconds); | 80 void SetInitialDelay(int seconds); |
| 81 void SetDownloadPreference(const std::string& download_preference); |
| 80 | 82 |
| 81 private: | 83 private: |
| 82 friend class base::RefCountedThreadSafe<TestConfigurator>; | 84 friend class base::RefCountedThreadSafe<TestConfigurator>; |
| 83 | 85 |
| 84 ~TestConfigurator() override; | 86 ~TestConfigurator() override; |
| 85 | 87 |
| 86 scoped_refptr<base::SequencedTaskRunner> worker_task_runner_; | 88 scoped_refptr<base::SequencedTaskRunner> worker_task_runner_; |
| 87 | 89 |
| 88 int initial_time_; | 90 int initial_time_; |
| 89 int ondemand_time_; | 91 int ondemand_time_; |
| 92 std::string download_preference_; |
| 90 | 93 |
| 91 scoped_refptr<net::TestURLRequestContextGetter> context_; | 94 scoped_refptr<net::TestURLRequestContextGetter> context_; |
| 92 | 95 |
| 93 DISALLOW_COPY_AND_ASSIGN(TestConfigurator); | 96 DISALLOW_COPY_AND_ASSIGN(TestConfigurator); |
| 94 }; | 97 }; |
| 95 | 98 |
| 96 } // namespace update_client | 99 } // namespace update_client |
| 97 | 100 |
| 98 #endif // COMPONENTS_UPDATE_CLIENT_TEST_CONFIGURATOR_H_ | 101 #endif // COMPONENTS_UPDATE_CLIENT_TEST_CONFIGURATOR_H_ |
| OLD | NEW |