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 DeltaUpdateOpFactory* CreateDeltaUpdateOpFactory() const OVERRIDE; |
48 virtual bool DeltasEnabled() const OVERRIDE; | 48 virtual bool DeltasEnabled() const OVERRIDE; |
49 virtual bool UseBackgroundDownloader() const OVERRIDE; | 49 virtual bool UseBackgroundDownloader() const OVERRIDE; |
50 virtual scoped_refptr<base::SequencedTaskRunner> GetSequencedTaskRunner() | 50 virtual scoped_refptr<base::SequencedTaskRunner> GetSequencedTaskRunner() |
51 const OVERRIDE; | 51 const OVERRIDE; |
52 virtual scoped_refptr<base::SingleThreadTaskRunner> | 52 virtual scoped_refptr<base::SingleThreadTaskRunner> |
53 GetSingleThreadTaskRunner() const OVERRIDE; | 53 GetSingleThreadTaskRunner() const OVERRIDE; |
54 | 54 |
55 typedef std::pair<CrxComponent*, int> CheckAtLoopCount; | 55 typedef std::pair<CrxComponent*, int> CheckAtLoopCount; |
56 void SetLoopCount(int times); | 56 void SetLoopCount(int times); |
57 void SetRecheckTime(int seconds); | 57 void SetRecheckTime(int seconds); |
58 void SetOnDemandTime(int seconds); | 58 void SetOnDemandTime(int seconds); |
59 void SetQuitClosure(const base::Closure& quit_closure); | 59 void SetQuitClosure(const base::Closure& quit_closure); |
60 void SetInitialDelay(int seconds); | 60 void SetInitialDelay(int seconds); |
61 | 61 |
62 private: | 62 private: |
63 int initial_time_; | 63 int initial_time_; |
64 int times_; | 64 int times_; |
65 int recheck_time_; | 65 int recheck_time_; |
66 int ondemand_time_; | 66 int ondemand_time_; |
67 | 67 |
68 scoped_refptr<net::TestURLRequestContextGetter> context_; | 68 scoped_refptr<net::TestURLRequestContextGetter> context_; |
69 base::Closure quit_closure_; | 69 base::Closure quit_closure_; |
70 | 70 |
71 DISALLOW_COPY_AND_ASSIGN(TestConfigurator); | 71 DISALLOW_COPY_AND_ASSIGN(TestConfigurator); |
72 }; | 72 }; |
73 | 73 |
74 } // namespace component_updater | 74 } // namespace component_updater |
75 | 75 |
76 #endif // CHROME_BROWSER_COMPONENT_UPDATER_TEST_TEST_CONFIGURATOR_H_ | 76 #endif // CHROME_BROWSER_COMPONENT_UPDATER_TEST_TEST_CONFIGURATOR_H_ |
OLD | NEW |