Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(9)

Side by Side Diff: components/update_client/test_configurator.h

Issue 1740333002: Allow fallback from https to http for component update checks. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 bool UseBackgroundDownloader() const override; 76 bool UseBackgroundDownloader() const override;
77 bool UseCupSigning() const override; 77 bool UseCupSigning() const override;
78 scoped_refptr<base::SequencedTaskRunner> GetSequencedTaskRunner() 78 scoped_refptr<base::SequencedTaskRunner> GetSequencedTaskRunner()
79 const override; 79 const override;
80 80
81 void SetBrand(const std::string& brand); 81 void SetBrand(const std::string& brand);
82 void SetOnDemandTime(int seconds); 82 void SetOnDemandTime(int seconds);
83 void SetInitialDelay(int seconds); 83 void SetInitialDelay(int seconds);
84 void SetDownloadPreference(const std::string& download_preference); 84 void SetDownloadPreference(const std::string& download_preference);
85 void SetUseCupSigning(bool use_cup_signing); 85 void SetUseCupSigning(bool use_cup_signing);
86 void SetUpdateCheckUrl(const GURL& url);
87 void SetPingUrl(const GURL& url);
86 88
87 private: 89 private:
88 friend class base::RefCountedThreadSafe<TestConfigurator>; 90 friend class base::RefCountedThreadSafe<TestConfigurator>;
89 91
90 ~TestConfigurator() override; 92 ~TestConfigurator() override;
91 93
92 scoped_refptr<base::SequencedTaskRunner> worker_task_runner_; 94 scoped_refptr<base::SequencedTaskRunner> worker_task_runner_;
93 95
94 std::string brand_; 96 std::string brand_;
95 int initial_time_; 97 int initial_time_;
96 int ondemand_time_; 98 int ondemand_time_;
97 std::string download_preference_; 99 std::string download_preference_;
98 bool use_cup_signing_; 100 bool use_cup_signing_;
101 GURL update_check_url_;
102 GURL ping_url_;
99 103
100 scoped_refptr<net::TestURLRequestContextGetter> context_; 104 scoped_refptr<net::TestURLRequestContextGetter> context_;
101 105
102 DISALLOW_COPY_AND_ASSIGN(TestConfigurator); 106 DISALLOW_COPY_AND_ASSIGN(TestConfigurator);
103 }; 107 };
104 108
105 } // namespace update_client 109 } // namespace update_client
106 110
107 #endif // COMPONENTS_UPDATE_CLIENT_TEST_CONFIGURATOR_H_ 111 #endif // COMPONENTS_UPDATE_CLIENT_TEST_CONFIGURATOR_H_
OLDNEW
« no previous file with comments | « components/update_client/request_sender_unittest.cc ('k') | components/update_client/test_configurator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698