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

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

Issue 2206583007: Handle the case when the updates are disabled for a component. (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/action.cc ('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 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
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_
OLDNEW
« no previous file with comments | « components/update_client/action.cc ('k') | components/update_client/test_configurator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698