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

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

Issue 2199423002: Mechanical change in the component updater Configurator. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 years, 4 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
« no previous file with comments | « components/update_client/configurator.h ('k') | components/update_client/test_configurator.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 std::vector<GURL> PingUrl() const override; 66 std::vector<GURL> PingUrl() const override;
67 base::Version GetBrowserVersion() const override; 67 base::Version GetBrowserVersion() const override;
68 std::string GetChannel() const override; 68 std::string GetChannel() const override;
69 std::string GetBrand() const override; 69 std::string GetBrand() const override;
70 std::string GetLang() const override; 70 std::string GetLang() const override;
71 std::string GetOSLongName() const override; 71 std::string GetOSLongName() const override;
72 std::string ExtraRequestParams() const override; 72 std::string ExtraRequestParams() const override;
73 std::string GetDownloadPreference() const override; 73 std::string GetDownloadPreference() const override;
74 net::URLRequestContextGetter* RequestContext() const override; 74 net::URLRequestContextGetter* RequestContext() const override;
75 scoped_refptr<OutOfProcessPatcher> CreateOutOfProcessPatcher() const override; 75 scoped_refptr<OutOfProcessPatcher> CreateOutOfProcessPatcher() const override;
76 bool DeltasEnabled() const override; 76 bool EnabledDeltas() const override;
77 bool UseBackgroundDownloader() const override; 77 bool EnabledComponentUpdates() const override;
78 bool UseCupSigning() const override; 78 bool EnabledBackgroundDownloader() const override;
79 bool EnabledCupSigning() const override;
79 scoped_refptr<base::SequencedTaskRunner> GetSequencedTaskRunner() 80 scoped_refptr<base::SequencedTaskRunner> GetSequencedTaskRunner()
80 const override; 81 const override;
81 PrefService* GetPrefService() const override; 82 PrefService* GetPrefService() const override;
82 83
83 void SetBrand(const std::string& brand); 84 void SetBrand(const std::string& brand);
84 void SetOnDemandTime(int seconds); 85 void SetOnDemandTime(int seconds);
85 void SetInitialDelay(int seconds); 86 void SetInitialDelay(int seconds);
86 void SetDownloadPreference(const std::string& download_preference); 87 void SetDownloadPreference(const std::string& download_preference);
87 void SetUseCupSigning(bool use_cup_signing); 88 void SetEnabledCupSigning(bool use_cup_signing);
88 void SetUpdateCheckUrl(const GURL& url); 89 void SetUpdateCheckUrl(const GURL& url);
89 void SetPingUrl(const GURL& url); 90 void SetPingUrl(const GURL& url);
90 91
91 private: 92 private:
92 friend class base::RefCountedThreadSafe<TestConfigurator>; 93 friend class base::RefCountedThreadSafe<TestConfigurator>;
93 94
94 ~TestConfigurator() override; 95 ~TestConfigurator() override;
95 96
96 scoped_refptr<base::SequencedTaskRunner> worker_task_runner_; 97 scoped_refptr<base::SequencedTaskRunner> worker_task_runner_;
97 98
98 std::string brand_; 99 std::string brand_;
99 int initial_time_; 100 int initial_time_;
100 int ondemand_time_; 101 int ondemand_time_;
101 std::string download_preference_; 102 std::string download_preference_;
102 bool use_cup_signing_; 103 bool use_cup_signing_;
103 GURL update_check_url_; 104 GURL update_check_url_;
104 GURL ping_url_; 105 GURL ping_url_;
105 106
106 scoped_refptr<net::TestURLRequestContextGetter> context_; 107 scoped_refptr<net::TestURLRequestContextGetter> context_;
107 108
108 DISALLOW_COPY_AND_ASSIGN(TestConfigurator); 109 DISALLOW_COPY_AND_ASSIGN(TestConfigurator);
109 }; 110 };
110 111
111 } // namespace update_client 112 } // namespace update_client
112 113
113 #endif // COMPONENTS_UPDATE_CLIENT_TEST_CONFIGURATOR_H_ 114 #endif // COMPONENTS_UPDATE_CLIENT_TEST_CONFIGURATOR_H_
OLDNEW
« no previous file with comments | « components/update_client/configurator.h ('k') | components/update_client/test_configurator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698