| 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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 55 | 55 |
| 56 class TestConfigurator : public Configurator { | 56 class TestConfigurator : public Configurator { |
| 57 public: | 57 public: |
| 58 TestConfigurator( | 58 TestConfigurator( |
| 59 const scoped_refptr<base::SequencedTaskRunner>& worker_task_runner, | 59 const scoped_refptr<base::SequencedTaskRunner>& worker_task_runner, |
| 60 const scoped_refptr<base::SingleThreadTaskRunner>& network_task_runner); | 60 const scoped_refptr<base::SingleThreadTaskRunner>& network_task_runner); |
| 61 | 61 |
| 62 // Overrrides for Configurator. | 62 // Overrrides for Configurator. |
| 63 int InitialDelay() const override; | 63 int InitialDelay() const override; |
| 64 int NextCheckDelay() const override; | 64 int NextCheckDelay() const override; |
| 65 int StepDelay() const override; | |
| 66 int OnDemandDelay() const override; | 65 int OnDemandDelay() const override; |
| 67 int UpdateDelay() const override; | 66 int UpdateDelay() const override; |
| 68 std::vector<GURL> UpdateUrl() const override; | 67 std::vector<GURL> UpdateUrl() const override; |
| 69 std::vector<GURL> PingUrl() const override; | 68 std::vector<GURL> PingUrl() const override; |
| 70 std::string GetProdId() const override; | 69 std::string GetProdId() const override; |
| 71 base::Version GetBrowserVersion() const override; | 70 base::Version GetBrowserVersion() const override; |
| 72 std::string GetChannel() const override; | 71 std::string GetChannel() const override; |
| 73 std::string GetBrand() const override; | 72 std::string GetBrand() const override; |
| 74 std::string GetLang() const override; | 73 std::string GetLang() const override; |
| 75 std::string GetOSLongName() const override; | 74 std::string GetOSLongName() const override; |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 112 GURL ping_url_; | 111 GURL ping_url_; |
| 113 | 112 |
| 114 scoped_refptr<net::TestURLRequestContextGetter> context_; | 113 scoped_refptr<net::TestURLRequestContextGetter> context_; |
| 115 | 114 |
| 116 DISALLOW_COPY_AND_ASSIGN(TestConfigurator); | 115 DISALLOW_COPY_AND_ASSIGN(TestConfigurator); |
| 117 }; | 116 }; |
| 118 | 117 |
| 119 } // namespace update_client | 118 } // namespace update_client |
| 120 | 119 |
| 121 #endif // COMPONENTS_UPDATE_CLIENT_TEST_CONFIGURATOR_H_ | 120 #endif // COMPONENTS_UPDATE_CLIENT_TEST_CONFIGURATOR_H_ |
| OLD | NEW |