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

Side by Side Diff: components/component_updater/test/test_configurator.h

Issue 666133002: Standardize usage of virtual/override/final in components/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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_COMPONENT_UPDATER_TEST_TEST_CONFIGURATOR_H_ 5 #ifndef COMPONENTS_COMPONENT_UPDATER_TEST_TEST_CONFIGURATOR_H_
6 #define COMPONENTS_COMPONENT_UPDATER_TEST_TEST_CONFIGURATOR_H_ 6 #define COMPONENTS_COMPONENT_UPDATER_TEST_TEST_CONFIGURATOR_H_
7 7
8 #include <string> 8 #include <string>
9 #include <utility> 9 #include <utility>
10 #include <vector> 10 #include <vector>
(...skipping 18 matching lines...) Expand all
29 #define POST_INTERCEPT_HOSTNAME "localhost2" 29 #define POST_INTERCEPT_HOSTNAME "localhost2"
30 #define POST_INTERCEPT_PATH "/update2" 30 #define POST_INTERCEPT_PATH "/update2"
31 31
32 struct CrxComponent; 32 struct CrxComponent;
33 33
34 class TestConfigurator : public Configurator { 34 class TestConfigurator : public Configurator {
35 public: 35 public:
36 TestConfigurator( 36 TestConfigurator(
37 const scoped_refptr<base::SequencedTaskRunner>& worker_task_runner, 37 const scoped_refptr<base::SequencedTaskRunner>& worker_task_runner,
38 const scoped_refptr<base::SingleThreadTaskRunner>& network_task_runner); 38 const scoped_refptr<base::SingleThreadTaskRunner>& network_task_runner);
39 virtual ~TestConfigurator(); 39 ~TestConfigurator() override;
40 40
41 // Overrrides for Configurator. 41 // Overrrides for Configurator.
42 virtual int InitialDelay() const override; 42 int InitialDelay() const override;
43 virtual int NextCheckDelay() override; 43 int NextCheckDelay() override;
44 virtual int StepDelay() const override; 44 int StepDelay() const override;
45 virtual int StepDelayMedium() override; 45 int StepDelayMedium() override;
46 virtual int MinimumReCheckWait() const override; 46 int MinimumReCheckWait() const override;
47 virtual int OnDemandDelay() const override; 47 int OnDemandDelay() const override;
48 virtual std::vector<GURL> UpdateUrl() const override; 48 std::vector<GURL> UpdateUrl() const override;
49 virtual std::vector<GURL> PingUrl() const override; 49 std::vector<GURL> PingUrl() const override;
50 virtual base::Version GetBrowserVersion() const override; 50 base::Version GetBrowserVersion() const override;
51 virtual std::string GetChannel() const override; 51 std::string GetChannel() const override;
52 virtual std::string GetLang() const override; 52 std::string GetLang() const override;
53 virtual std::string GetOSLongName() const override; 53 std::string GetOSLongName() const override;
54 virtual std::string ExtraRequestParams() const override; 54 std::string ExtraRequestParams() const override;
55 virtual size_t UrlSizeLimit() const override; 55 size_t UrlSizeLimit() const override;
56 virtual net::URLRequestContextGetter* RequestContext() const override; 56 net::URLRequestContextGetter* RequestContext() const override;
57 virtual scoped_refptr<OutOfProcessPatcher> CreateOutOfProcessPatcher() 57 scoped_refptr<OutOfProcessPatcher> CreateOutOfProcessPatcher() const override;
58 bool DeltasEnabled() const override;
59 bool UseBackgroundDownloader() const override;
60 scoped_refptr<base::SequencedTaskRunner> GetSequencedTaskRunner()
58 const override; 61 const override;
59 virtual bool DeltasEnabled() const override; 62 scoped_refptr<base::SingleThreadTaskRunner> GetSingleThreadTaskRunner()
60 virtual bool UseBackgroundDownloader() const override;
61 virtual scoped_refptr<base::SequencedTaskRunner> GetSequencedTaskRunner()
62 const override; 63 const override;
63 virtual scoped_refptr<base::SingleThreadTaskRunner>
64 GetSingleThreadTaskRunner() const override;
65 64
66 void SetLoopCount(int times); 65 void SetLoopCount(int times);
67 void SetRecheckTime(int seconds); 66 void SetRecheckTime(int seconds);
68 void SetOnDemandTime(int seconds); 67 void SetOnDemandTime(int seconds);
69 void SetQuitClosure(const base::Closure& quit_closure); 68 void SetQuitClosure(const base::Closure& quit_closure);
70 void SetInitialDelay(int seconds); 69 void SetInitialDelay(int seconds);
71 70
72 private: 71 private:
73 scoped_refptr<base::SequencedTaskRunner> worker_task_runner_; 72 scoped_refptr<base::SequencedTaskRunner> worker_task_runner_;
74 scoped_refptr<base::SingleThreadTaskRunner> network_task_runner_; 73 scoped_refptr<base::SingleThreadTaskRunner> network_task_runner_;
75 74
76 int initial_time_; 75 int initial_time_;
77 int times_; 76 int times_;
78 int recheck_time_; 77 int recheck_time_;
79 int ondemand_time_; 78 int ondemand_time_;
80 79
81 scoped_refptr<net::TestURLRequestContextGetter> context_; 80 scoped_refptr<net::TestURLRequestContextGetter> context_;
82 base::Closure quit_closure_; 81 base::Closure quit_closure_;
83 82
84 DISALLOW_COPY_AND_ASSIGN(TestConfigurator); 83 DISALLOW_COPY_AND_ASSIGN(TestConfigurator);
85 }; 84 };
86 85
87 } // namespace component_updater 86 } // namespace component_updater
88 87
89 #endif // COMPONENTS_COMPONENT_UPDATER_TEST_TEST_CONFIGURATOR_H_ 88 #endif // COMPONENTS_COMPONENT_UPDATER_TEST_TEST_CONFIGURATOR_H_
OLDNEW
« no previous file with comments | « components/component_updater/request_sender.h ('k') | components/component_updater/test/test_installer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698