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 CHROME_BROWSER_COMPONENT_UPDATER_TEST_TEST_CONFIGURATOR_H_ | 5 #ifndef CHROME_BROWSER_COMPONENT_UPDATER_TEST_TEST_CONFIGURATOR_H_ |
6 #define CHROME_BROWSER_COMPONENT_UPDATER_TEST_TEST_CONFIGURATOR_H_ | 6 #define CHROME_BROWSER_COMPONENT_UPDATER_TEST_TEST_CONFIGURATOR_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <utility> | 9 #include <utility> |
10 | 10 |
(...skipping 26 matching lines...) Expand all Loading... |
37 virtual int OnDemandDelay() const OVERRIDE; | 37 virtual int OnDemandDelay() const OVERRIDE; |
38 virtual GURL UpdateUrl() const OVERRIDE; | 38 virtual GURL UpdateUrl() const OVERRIDE; |
39 virtual GURL PingUrl() const OVERRIDE; | 39 virtual GURL PingUrl() const OVERRIDE; |
40 virtual base::Version GetBrowserVersion() const OVERRIDE; | 40 virtual base::Version GetBrowserVersion() const OVERRIDE; |
41 virtual std::string GetChannel() const OVERRIDE; | 41 virtual std::string GetChannel() const OVERRIDE; |
42 virtual std::string GetLang() const OVERRIDE; | 42 virtual std::string GetLang() const OVERRIDE; |
43 virtual std::string GetOSLongName() const OVERRIDE; | 43 virtual std::string GetOSLongName() const OVERRIDE; |
44 virtual std::string ExtraRequestParams() const OVERRIDE; | 44 virtual std::string ExtraRequestParams() const OVERRIDE; |
45 virtual size_t UrlSizeLimit() const OVERRIDE; | 45 virtual size_t UrlSizeLimit() const OVERRIDE; |
46 virtual net::URLRequestContextGetter* RequestContext() const OVERRIDE; | 46 virtual net::URLRequestContextGetter* RequestContext() const OVERRIDE; |
47 virtual bool InProcess() const OVERRIDE; | 47 virtual scoped_refptr<OutOfProcessPatcher> CreateOutOfProcessPatcher() |
| 48 const OVERRIDE; |
48 virtual bool DeltasEnabled() const OVERRIDE; | 49 virtual bool DeltasEnabled() const OVERRIDE; |
49 virtual bool UseBackgroundDownloader() const OVERRIDE; | 50 virtual bool UseBackgroundDownloader() const OVERRIDE; |
50 virtual scoped_refptr<base::SequencedTaskRunner> GetSequencedTaskRunner() | 51 virtual scoped_refptr<base::SequencedTaskRunner> GetSequencedTaskRunner() |
51 const OVERRIDE; | 52 const OVERRIDE; |
52 virtual scoped_refptr<base::SingleThreadTaskRunner> | 53 virtual scoped_refptr<base::SingleThreadTaskRunner> |
53 GetSingleThreadTaskRunner() const OVERRIDE; | 54 GetSingleThreadTaskRunner() const OVERRIDE; |
54 | 55 |
55 typedef std::pair<CrxComponent*, int> CheckAtLoopCount; | 56 typedef std::pair<CrxComponent*, int> CheckAtLoopCount; |
56 void SetLoopCount(int times); | 57 void SetLoopCount(int times); |
57 void SetRecheckTime(int seconds); | 58 void SetRecheckTime(int seconds); |
58 void SetOnDemandTime(int seconds); | 59 void SetOnDemandTime(int seconds); |
59 void SetQuitClosure(const base::Closure& quit_closure); | 60 void SetQuitClosure(const base::Closure& quit_closure); |
60 void SetInitialDelay(int seconds); | 61 void SetInitialDelay(int seconds); |
61 | 62 |
62 private: | 63 private: |
63 int initial_time_; | 64 int initial_time_; |
64 int times_; | 65 int times_; |
65 int recheck_time_; | 66 int recheck_time_; |
66 int ondemand_time_; | 67 int ondemand_time_; |
67 | 68 |
68 scoped_refptr<net::TestURLRequestContextGetter> context_; | 69 scoped_refptr<net::TestURLRequestContextGetter> context_; |
69 base::Closure quit_closure_; | 70 base::Closure quit_closure_; |
70 | 71 |
71 DISALLOW_COPY_AND_ASSIGN(TestConfigurator); | 72 DISALLOW_COPY_AND_ASSIGN(TestConfigurator); |
72 }; | 73 }; |
73 | 74 |
74 } // namespace component_updater | 75 } // namespace component_updater |
75 | 76 |
76 #endif // CHROME_BROWSER_COMPONENT_UPDATER_TEST_TEST_CONFIGURATOR_H_ | 77 #endif // CHROME_BROWSER_COMPONENT_UPDATER_TEST_TEST_CONFIGURATOR_H_ |
OLD | NEW |