| 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 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 std::string GetDownloadPreference() const override; |
| 72 net::URLRequestContextGetter* RequestContext() const override; | 72 net::URLRequestContextGetter* RequestContext() const override; |
| 73 scoped_refptr<OutOfProcessPatcher> CreateOutOfProcessPatcher() const override; | 73 scoped_refptr<OutOfProcessPatcher> CreateOutOfProcessPatcher() const override; |
| 74 bool DeltasEnabled() const override; | 74 bool DeltasEnabled() const override; |
| 75 bool UseBackgroundDownloader() const override; | 75 bool UseBackgroundDownloader() const override; |
| 76 bool UseCupSigning() const override; |
| 76 scoped_refptr<base::SequencedTaskRunner> GetSequencedTaskRunner() | 77 scoped_refptr<base::SequencedTaskRunner> GetSequencedTaskRunner() |
| 77 const override; | 78 const override; |
| 78 | 79 |
| 79 void SetOnDemandTime(int seconds); | 80 void SetOnDemandTime(int seconds); |
| 80 void SetInitialDelay(int seconds); | 81 void SetInitialDelay(int seconds); |
| 81 void SetDownloadPreference(const std::string& download_preference); | 82 void SetDownloadPreference(const std::string& download_preference); |
| 83 void SetUseCupSigning(bool use_cup_signing); |
| 82 | 84 |
| 83 private: | 85 private: |
| 84 friend class base::RefCountedThreadSafe<TestConfigurator>; | 86 friend class base::RefCountedThreadSafe<TestConfigurator>; |
| 85 | 87 |
| 86 ~TestConfigurator() override; | 88 ~TestConfigurator() override; |
| 87 | 89 |
| 88 scoped_refptr<base::SequencedTaskRunner> worker_task_runner_; | 90 scoped_refptr<base::SequencedTaskRunner> worker_task_runner_; |
| 89 | 91 |
| 90 int initial_time_; | 92 int initial_time_; |
| 91 int ondemand_time_; | 93 int ondemand_time_; |
| 92 std::string download_preference_; | 94 std::string download_preference_; |
| 95 bool use_cup_signing_; |
| 93 | 96 |
| 94 scoped_refptr<net::TestURLRequestContextGetter> context_; | 97 scoped_refptr<net::TestURLRequestContextGetter> context_; |
| 95 | 98 |
| 96 DISALLOW_COPY_AND_ASSIGN(TestConfigurator); | 99 DISALLOW_COPY_AND_ASSIGN(TestConfigurator); |
| 97 }; | 100 }; |
| 98 | 101 |
| 99 } // namespace update_client | 102 } // namespace update_client |
| 100 | 103 |
| 101 #endif // COMPONENTS_UPDATE_CLIENT_TEST_CONFIGURATOR_H_ | 104 #endif // COMPONENTS_UPDATE_CLIENT_TEST_CONFIGURATOR_H_ |
| OLD | NEW |