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