| 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 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 79 bool EnabledCupSigning() const override; | 79 bool EnabledCupSigning() const override; |
| 80 scoped_refptr<base::SequencedTaskRunner> GetSequencedTaskRunner() | 80 scoped_refptr<base::SequencedTaskRunner> GetSequencedTaskRunner() |
| 81 const override; | 81 const override; |
| 82 PrefService* GetPrefService() const override; | 82 PrefService* GetPrefService() const override; |
| 83 | 83 |
| 84 void SetBrand(const std::string& brand); | 84 void SetBrand(const std::string& brand); |
| 85 void SetOnDemandTime(int seconds); | 85 void SetOnDemandTime(int seconds); |
| 86 void SetInitialDelay(int seconds); | 86 void SetInitialDelay(int seconds); |
| 87 void SetDownloadPreference(const std::string& download_preference); | 87 void SetDownloadPreference(const std::string& download_preference); |
| 88 void SetEnabledCupSigning(bool use_cup_signing); | 88 void SetEnabledCupSigning(bool use_cup_signing); |
| 89 void SetEnabledComponentUpdates(bool enabled_component_updates); |
| 89 void SetUpdateCheckUrl(const GURL& url); | 90 void SetUpdateCheckUrl(const GURL& url); |
| 90 void SetPingUrl(const GURL& url); | 91 void SetPingUrl(const GURL& url); |
| 91 | 92 |
| 92 private: | 93 private: |
| 93 friend class base::RefCountedThreadSafe<TestConfigurator>; | 94 friend class base::RefCountedThreadSafe<TestConfigurator>; |
| 94 | 95 |
| 95 ~TestConfigurator() override; | 96 ~TestConfigurator() override; |
| 96 | 97 |
| 97 scoped_refptr<base::SequencedTaskRunner> worker_task_runner_; | 98 scoped_refptr<base::SequencedTaskRunner> worker_task_runner_; |
| 98 | 99 |
| 99 std::string brand_; | 100 std::string brand_; |
| 100 int initial_time_; | 101 int initial_time_; |
| 101 int ondemand_time_; | 102 int ondemand_time_; |
| 102 std::string download_preference_; | 103 std::string download_preference_; |
| 103 bool use_cup_signing_; | 104 bool enabled_cup_signing_; |
| 105 bool enabled_component_updates_; |
| 104 GURL update_check_url_; | 106 GURL update_check_url_; |
| 105 GURL ping_url_; | 107 GURL ping_url_; |
| 106 | 108 |
| 107 scoped_refptr<net::TestURLRequestContextGetter> context_; | 109 scoped_refptr<net::TestURLRequestContextGetter> context_; |
| 108 | 110 |
| 109 DISALLOW_COPY_AND_ASSIGN(TestConfigurator); | 111 DISALLOW_COPY_AND_ASSIGN(TestConfigurator); |
| 110 }; | 112 }; |
| 111 | 113 |
| 112 } // namespace update_client | 114 } // namespace update_client |
| 113 | 115 |
| 114 #endif // COMPONENTS_UPDATE_CLIENT_TEST_CONFIGURATOR_H_ | 116 #endif // COMPONENTS_UPDATE_CLIENT_TEST_CONFIGURATOR_H_ |
| OLD | NEW |